PokeHacker Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Seth's XSE Tutorial

+5
.:Sandro:.
God of War
riolu 9
KhaosKnight
RaiRai-kun
9 posters

Go down

Seth's XSE Tutorial Empty Seth's XSE Tutorial

Post by RaiRai-kun Tue Aug 05, 2008 10:13 pm

Welcome!
This is my XSE tutorial.
It will cover most all the commands.
Don't take this without my permission.
Credit to Darthatron for the overview and basic tut. on XSE.
Credit to -Hackmew- for making XSE.
Credit to everybody that supports XSE!

Part 1: Simple Script Components
First, I will teach you the basic parts.

Sample Script:
Spoiler:

OK so you probably have no idea what these words mean, right?
I will explain everything here:
Spoiler:


"\" commands

\p-- Used to make a message go to a new box, skipping a line.
\n-- Used to make a message go to a new line
\h-- Used for hex symbols such as:

Spoiler:


\l--Used to make a message go to a new line AFTER \n is used.
\c--Used for making a message colored, put it before the message with NO spaces
Here is a list of the colors for firered:

Spoiler:

\v-- Used for displaying certain names, such as (rival) and (player) and var values that you set using setvar command, which I will explain later.
The commands that you cannot change are
(player)-- \v\h01
(rival)-- \v\h06

Part 2: Other Message Scripts

For this part of the tutorial, I will teach you some more message scripts.

How about we start with a yes or no message? Sounds good to me.
Here is an example:

Spoiler:

Ok, a few new commands, eh? Well here are the explanations:
Spoiler:

Well, that went well. I guess it's time I taught you about flags.

Flags

Flags are what tell the game if an event has happened or not.

Example Script:
Spoiler:

The new commands are right here:
Spoiler:

Here is a list of commonly used flags (or flags built into the game, whatever you like to call them)
Spoiler:

That is it for flags. Let's talk about givepokemon and giveitem now. Sounds ok?

Part 4: Giving pokemon and items

It's about time. Anyways here are some commands you need to know before we get started:

givepokemon
It does what it says.
setflag 0x828
Activates the Pokemon menu
giveitem
Once again, It does what it says.

Example script:
Spoiler:

That's the script in it's simplest form. But to get it to work once, look back at the Flag section.

Now, the givepokemon command is kinda weird looking, aint it?
Here is a detailed description:
givepokemon (the command) 0x(pokemon's pokedex number translated into hex) 0x(level) 0x(item number in hex) 0x0 0x0 0x0 (<--- you need these)

Now, here is a list of the pokemons' hex numbers:
Spoiler:

That's all for givepokemon. Now let's discuss giveitem.


Last edited by Seth on Tue Aug 05, 2008 10:27 pm; edited 3 times in total
RaiRai-kun
RaiRai-kun
Site Admin
Site Admin

Male Number of posts : 97
Age : 28
Location : The one that always has a funny avatar.
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue100 / 100100 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-02

https://pokehackerforums.forumakers.com

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by RaiRai-kun Tue Aug 05, 2008 10:12 pm

Example script:
Spoiler:

Here is a list of the item numbers (not in hex):
Spoiler:

And that's it for giveitem.

And now we move on to "Other Commands"

Part 5: Other Commands

This section will cover "checkgender", "warp", "pokemart", "giveegg"

Let's go in order, shall we?

Checkgender Example:

Spoiler:

By The Way: in checkgender, 0x0 means "if boy" and 0x1 means "if girl".

Warp time!

Example:
warp 0x(map bank) 0x(map number) 0x(warp number)

Time for a trip to the pokemart!

Here is the example:
[/spoiler]
#Dynamic 0xoffset

#org @start
lock
faceplayer

pokemart @values
release
end

#org @values

binary 0x(number) . . . 0x0
[/spoiler]

Here are the pokemart item codes:

* Master Ball 0x1
* Ultra Ball 0x2
* Great Ball 0x3
* Poké Ball 0x4
* Safari Ball 0x5
* Net Ball 0x6
* Dive Ball 0x7
* Nest Ball 0x8
* Repeat Ball 0x9
* Timer Ball 0xA
* Luxury Ball 0xB
* Premier Ball 0xC
* Parlyz Heal 0x13
* Full Restore 0x14

And that's it for pokemart!

Now for "giveegg"!

Giveegg is yet another command.

The script:
giveiegg 0x(pokedex number shown above in hex (four digits) reversed) 0x(the 00

The real script:
giveegg 0x19 0x00 (that would be a pikachu egg)

That's all for now. I'll update this post when I have more info.
RaiRai-kun
RaiRai-kun
Site Admin
Site Admin

Male Number of posts : 97
Age : 28
Location : The one that always has a funny avatar.
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue100 / 100100 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-02

https://pokehackerforums.forumakers.com

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by KhaosKnight Tue Aug 05, 2008 10:18 pm

Seth wrote:#dynamic 0xoffset
(don't worry about what the "#dynamic means, just make sure you put it there)
offset-- this is the number of the free space you are using for the script.

At that part change it to this:

Seth wrote:#dynamic 0xoffset
Dynamic-- this tells the compiler where the offset is to start the search.

offset-- this is the number where XSE begins to search for free space for your script, generaly we use 800000 or similar.

It makes you sound more professional
KhaosKnight
KhaosKnight
Admin
Admin

Male Number of posts : 236
Age : 31
Location : In on your modem, stealing your Internetz
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue70 / 10070 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-05

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by riolu 9 Thu Aug 07, 2008 10:08 pm

i dont understand the give pokemon script and how do you make the peoople move
riolu 9
riolu 9
Moderator
Moderator

Male Number of posts : 46
Age : 30
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue69 / 10069 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-03

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by KhaosKnight Thu Aug 07, 2008 10:53 pm

to make people move you need to use the applymovement command like so:

applymovement 0x1 @pointer to movements
waitmovement 0x0


#org @pointer to movements
#Raw 0x1 0x2 0x3 0x4 0xfe <------0xfe ends the movements
KhaosKnight
KhaosKnight
Admin
Admin

Male Number of posts : 236
Age : 31
Location : In on your modem, stealing your Internetz
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue70 / 10070 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-05

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by God of War Wed Aug 13, 2008 3:44 pm

Totally helped me learn. You've done it again Seth! :wink:
God of War
God of War
Pokehacker
Pokehacker

Male Number of posts : 68
Age : 29
Location : I ... Don't ... Know ...
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue20 / 10020 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-11

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by .:Sandro:. Sat Aug 16, 2008 6:46 am

Dude Are u gonna continue with this... Or when we go to another forum???
.:Sandro:.
.:Sandro:.
Super Moderator/Graphic Designer
Super Moderator/Graphic Designer

Male Number of posts : 152
Age : 31
Location : No where...
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue75 / 10075 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-05

http://pcclinic.forumakers.com

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by .Iramet Mon Aug 18, 2008 11:45 am

I don't think I'm cut out for scripting because i looked at it like three times and all i can end up doing is making them talk.
.Iramet
.Iramet
Assastant Admin
Assastant Admin

Male Number of posts : 224
Age : 30
Location : I'm not quite sure
Warning :
Seth's XSE Tutorial Left_bar_bleue10 / 10010 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue45 / 10045 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-05

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by KhaosKnight Wed Oct 08, 2008 10:35 pm

Anyone can script, it just takes time and patience. With the right motivation and teachings it come be really easy and you can pick it up easily too. Just take it in steps. Dont go from making talk scripts to walking-camera moving scripts. It is a process.
KhaosKnight
KhaosKnight
Admin
Admin

Male Number of posts : 236
Age : 31
Location : In on your modem, stealing your Internetz
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue70 / 10070 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2008-08-05

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by Prince Uchiha Sun Oct 18, 2009 1:32 am

I don't know how to script! so pls help..

Prince Uchiha
Newbie
Newbie

Male Number of posts : 3
Age : 28
Location : India
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2009-10-18

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by Schiffy Fri Sep 24, 2010 4:09 pm

2 small problems/questions:
1. the line "boxset 0x6" is coming up as an unknown command.
2. how to add the full script to a rom via AdvanceMap?

Schiffy
Newbie
Newbie

Male Number of posts : 1
Age : 30
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2010-09-24

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by Rasyd_Ral Fri Sep 07, 2012 6:46 am

please i dont understand confused
Rasyd_Ral
Rasyd_Ral
Newbie
Newbie

Male Number of posts : 1
Age : 24
Warning :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Reputation :
Seth's XSE Tutorial Left_bar_bleue0 / 1000 / 100Seth's XSE Tutorial Right_bar_bleue

Registration date : 2012-09-07

Back to top Go down

Seth's XSE Tutorial Empty Re: Seth's XSE Tutorial

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum