OK then, baby steps.
1. Open Advance Map and wed it with XSE.
Quote:
|
Advance Map > Settings > Choose Script Editor > XSE.exe
|
2. Open Route 1
3. There should be 2 people there. One with a script that will give you potion and one with a script that will give you advice that you can jump down a ledge.
Quote:
|
If you can't see any NPC, click the EVENTS tab just below the MAGNIFIER icon
|
3. Click the NPC with a script that will give you advice. Then look at the very right part of Advance Map.
4. This is the details of the NPC that you clicked. And one of those is
Script Offset.
Quote:
|
Script offset is the location within your ROM that will tell the game where to look when you interact with this NPC. The script should be $167F52
|
5. So if you want to edit what will this NPC do when you interact with it, you need to insert a new script here.
6. Open its script with XSE.
Quote:
Look at the right part of Advance Map, There should be Open Script button
It should open a new window in XSE and you will see :
#org 0x167F52
msgbox 0x81833B9 MSG_FACE '"See those ledges along the road?\p..."
end
'---------
' Strings
'---------
#org 0x1833B9
= See those ledges along the road?\pIt's a bit scary, but you can jump\nfrom them.\pYou can get back to Pallet Town\nquicker that way.
|
7. Delete all of them and input your new script, here is the example :
Quote:
#dynamic 0x800000
#org @start
msgbox @test MSG_FACE
end
#org @test
= I like train.
|
8. Compile it, then XSE will automatically repoints the offsets into your ROM.
9. Pay attention to the detail of
XSE Compiler Output. At the bottom of it, you will see
Dynamic Offsets
10. Copy the first offset and put it in the NPC Script Offset in the Advance Map.
Quote:
|
If your ROM is clean and this is your first script, the offset should start at 800000
|
11. After you have replaced
$167F52 with
$800000. Save it.
12. Test your ROM ingame, the NPC should tell you that he likes train instead to tell you to jump off a ledge.