- 8
- Posts
- 11
- Years
- Seen Aug 30, 2017
I'm trying to create a script tile where when you step on it a guy walks up, talks and then leaves, here is the script and compile log
script:
as you can see in the log the text is as it should be but when i run the script, the script changes to this
and not only does the text change so does the number of movements.
i've tried to rewrite the script, changed the offset and tried to delete most of the text but [Ke]?????\h0A\h0A\h0A\h0A????????? keeps showing up.
any help would be appreciated
script:
Code:
'---------------
#org 0xE3D246
lockall
setvar 0x4011 0x1
applymovement 0x6 0x8E3D27A
waitmovement 0x0
msgbox 0x8E3D272 MSG_KEEPOPEN
closeonkeypress
applymovement 0x6 0x8E3D280
waitmovement 0x0
hidesprite 0x6
releaseall
end
'---------
' Strings
'---------
#org 0xE3D272
= I'm here warning all\nunsuspecting Trainers\nto be on the look out,\p six of my strongest POK?MON have gotten loose,\n and they're rather aggressive,\p if you happen to see them it's best to just stay clear,\n and get out of there quickly,\l and find me immediately.
'-----------
' Movements
'-----------
#org 0xE3D27A
#raw 0x56 'Exclamation Mark (!)
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xFE 'End of Movements
#org 0xE3D280
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements
Code:
eXtreme Script Editor v1.1.1
1986 - Pokemon Emerald (U)(TrashMan).gba...
Processing input script...
2 - #ORG
> lNewOffset = 0xE3D246
3 - (69) - LOCKALL [+1]
4 - (16) - SETVAR [+5]
> iWord = 0x4011
> iWord = 0x1
5 - (4F) - APPLYMOVEMENT [+7]
> iWord = 0x6
> pPointer = 0x8E3D27A
6 - (51) - WAITMOVEMENT [+3]
> iWord = 0x0
7 - (0F) - MSGBOX (native) [+8]
> pText = 0x8E3D272
> bType = 0x4
8 - (68) - CLOSEONKEYPRESS [+1]
9 - (4F) - APPLYMOVEMENT [+7]
> iWord = 0x6
> pPointer = 0x8E3D280
10 - (51) - WAITMOVEMENT [+3]
> iWord = 0x0
11 - (53) - HIDESPRITE [+3]
> iWord = 0x6
12 - (6B) - RELEASEALL [+1]
13 - (02) - END [+1]
19 - #ORG
> lNewOffset = 0xE3D272
20 - RAW TEXT [+260]
> sText = "I'm here warning all\nunsuspecting Trainers\nto be on the look out,\p six of my strongest POK?MON have gotten loose,\n and they're rather aggressive,\p if you happen to see them it's best to just stay clear,\n and get out of there quickly,\l and find me immediately."
26 - #ORG
> lNewOffset = 0xE3D27A
27 - #RAW
> bOut = 0x56
28 - #RAW
> bOut = 0x14
29 - #RAW
> bOut = 0x14
30 - #RAW
> bOut = 0x14
31 - #RAW
> bOut = 0xB
32 - #RAW
> bOut = 0xB
33 - #RAW
> bOut = 0xB
34 - #RAW
> bOut = 0xB
35 - #RAW
> bOut = 0xFE
37 - #ORG
> lNewOffset = 0xE3D280
38 - #RAW
> bOut = 0xA
39 - #RAW
> bOut = 0xA
40 - #RAW
> bOut = 0xA
41 - #RAW
> bOut = 0xA
42 - #RAW
> bOut = 0x9
43 - #RAW
> bOut = 0x9
44 - #RAW
> bOut = 0x9
45 - #RAW
> bOut = 0x9
46 - #RAW
> bOut = 0x9
47 - #RAW
> bOut = 0x9
48 - #RAW
> bOut = 0x9
49 - #RAW
> bOut = 0x9
50 - #RAW
> bOut = 0x9
51 - #RAW
> bOut = 0xFE
-------------------------------------
Cleaning up...
Closing output...
Finished processing input in 0.010 seconds.
as you can see in the log the text is as it should be but when i run the script, the script changes to this
Code:
'---------------
#org 0xE3D246
lockall
setvar 0x4011 0x1
applymovement 0x6 0x8E3D27A
waitmovement 0x0
msgbox 0x8E3D272 MSG_KEEPOPEN '"I'm here[Ke]?????\h0A\h0A\h0A\h0A?..."
closeonkeypress
applymovement 0x6 0x8E3D280
waitmovement 0x0
hidesprite 0x6
releaseall
end
'---------
' Strings
'---------
#org 0xE3D272
= I'm here[Ke]?????\h0A\h0A\h0A\h0A?????????\nut,\p six of my strongest POK?MON have gotten loose,\n and they're rather aggressive,\p if you happen to see them it's best to just stay clear,\n and get out of there quickly,\l and find me immediately.
'-----------
' Movements
'-----------
#org 0xE3D27A
#raw 0x56 'Exclamation Mark (!)
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org 0xE3D280
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements
and not only does the text change so does the number of movements.
i've tried to rewrite the script, changed the offset and tried to delete most of the text but [Ke]?????\h0A\h0A\h0A\h0A????????? keeps showing up.
any help would be appreciated