metapod23
Hardened Trainer
- 673
- Posts
- 16
- Years
- Seen Aug 18, 2016
Ok yea i saw that and fixed it since my last post, but im glad to say i now got the script to work where the trainer comes to me when i step on the script tile, he battles me but after he is supposed to say a line and walk away. He does not say anything and is just facing me, can't talk to him, only can walk away and back onto the script tile then he says see ya later and walks away..
Is there anyway to fix this new problem....im almost there!
My new script!
Spoiler:
#Dynamic 0x71A3B0
#ORG @Main
Lockall
showsprite 0x3
applymovement 0xFF @move
waitmovement 0x0
applymovement 0x3 @move2
waitmovement 0x0
textcolor 0x0
msgbox @before msg_normal
trainerbattle 0x3 0x001 0x0 @defeat
msgbox @test msg_normal
applymovement 0x3 @move3
waitmovement 0x0
hidesprite 0x3
setvar 0x4099 0x1
release
end
#org @move
#raw 0x62
#raw 0x0
#raw 0xFE
#org @move2
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1
#raw 0x1E
#raw 0xFE
#org @move3
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE
#org @before
= hey lets battle!
#org @defeat
= You taught me!
#org @test
= Well I have to go!
Changes in bold. Use trainerbattle 0x3 to continue the script.
Also, obviously if flag 0x1008 isn't set, the script will end abruptly after the trainer battle as well. I don't see the point for the flag at all, in fact, so I just removed it from the script all together.
Are you using an older version of XSE? You shouldn't need to use any boxset commands with the latest version.