XSE Episode 1: Basic Talk Script
For this tutorial, you'll need:
- AdvanceMap
- XSE (obviously)
- Winrar
- Open Advancemap (Through WinRar)
- Click "File"
- Look for you rom.
- Click it.
- Click "Open".
Alright, here is the path for most of the towns:
The rom opened here is Pokemon Fire Red.
For Emerald:
From header >>> 1 >>> Select Town/ City
Now we'll return to both versions.
Look for a desired sprite. Once you CLICK on it, you will see this:
on the right bar.
Look for the Script Offset and change it to a VALID OFFSET. (let''s say $80000)
Then, open XSE and your rom in it.
Here is the full script:
We will go through them one by one.
#dynamic 0x80000
As you can see, 800000 is the offset I gave the chosen person.
Now, #dynamic will always appear on the same line and all the scripts you create.
Format:
#dynamic 0x(offset given)
#org @start
After @ is a name.
You can change it to anything, as long as it doesn't have spaces.
Valid names:
usuck, potatoman, seacucumber, gmorninmaranaw
INVALID names:
u suck, potato man, sea cucumber, dont even try
Format:
#org @(any name without spaces)
lock
Lock means that when you are talking to the NPC assigned to this script, the world will stop. As in, anything moving on the background will stop so you can talk to the NPC.
faceplayer
The name says it all.
msgbox @talk1 0x6
Alright, we will go with each part.
msgbox @talk1
The @ thing is the same as #org.
0x6
0x6 is the message type. This means that the script should have lock, faceplayer and release commands.
0x2 is for a type without lock, faceplayer and release.
0x3 is for signposts.
0x4 is the same as 0x2, but closeonkeypress is required to close it.
0x5 is for yes/no questions.
Script format
msgbox @(any name without any spaces) (message type)
release and end
End ends all infinite loops. Anyway, all you need to know is that end is VERY important.
#org @talk1
This #org has to follow msgbox since the code defines the first part of the text box. This one defines the second, which is the text.
The text adjuster
If you saw on the photo, there was a textbox named "Text Adjuster". To access it, you need to do Ctrl + T.
- To go to the next extbox, you need to hit enter twice.
Note: This post will be continued in some hours.
Comments
Post a Comment