- 242
- Posts
- 7
- Years
- Seen Apr 3, 2023
Ok so I have a script tile with this script attached (I left out text message and movement commands)
, what happens is, if you lose the battle and come back, the OW's are gone and the script tiles doesn't run again, which confuses me because the script is supposed to terminate once you faint right?
Meaning the setflag and setvar commands never should execute but it seems like they do anyways.
So yeah does anyone have experience with this lol for now I'll probably just separate the script into two parts where the story part happens on the script tile, and then you have to talk to the NPC for the battle.
, what happens is, if you lose the battle and come back, the OW's are gone and the script tiles doesn't run again, which confuses me because the script is supposed to terminate once you faint right?
Meaning the setflag and setvar commands never should execute but it seems like they do anyways.
So yeah does anyone have experience with this lol for now I'll probably just separate the script into two parts where the story part happens on the script tile, and then you have to talk to the NPC for the battle.
Spoiler:
#org @start
lockall
msgbox @text 0x6
msgbox @text2 0x6
fadescreen 0x1
pause 0xA
fadescreen 0x0
applymovement 0x3 @faceright
applymovement 0xB @faceleft
waitmovement 0x0
msgbox @text3 0x6
applymovement 0x3 @facedown
applymovement 0xB @facedown
waitmovement 0x0
msgbox @text4 0x6
fadescreen 0x1
hidesprite 0x3
hidesprite 0xB
fadescreen 0x0
msgbox @text5 0x6
applymovement 0x9 @qst
waitmovement 0x0
msgbox @text6 0x6
applymovement 0x9 @silvermove
waitmovement 0x0
trainerbattle 0x3 0x51 0x0 @defeat
msgbox @text7 0x6
applymovement 0x1 @1move
waitmovement 0x0
applymovement 0x6 @2move
waitmovement 0x0
applymovement 0xC @3move
waitmovement 0x0
applymovement 0x9 @4move
waitmovement 0x0
msgbox @text8 0x6
applymovement 0x1 @5move
applymovement 0x6 @5move
applymovement 0xC @5move
applymovement 0x9 @5move
waitmovement 0x0
hidesprite 0x1
hidesprite 0x6
hidesprite 0xC
hidesprite 0x9
setflag 0x17E
setvar 0x4051 0x9
releaseall
end
lockall
msgbox @text 0x6
msgbox @text2 0x6
fadescreen 0x1
pause 0xA
fadescreen 0x0
applymovement 0x3 @faceright
applymovement 0xB @faceleft
waitmovement 0x0
msgbox @text3 0x6
applymovement 0x3 @facedown
applymovement 0xB @facedown
waitmovement 0x0
msgbox @text4 0x6
fadescreen 0x1
hidesprite 0x3
hidesprite 0xB
fadescreen 0x0
msgbox @text5 0x6
applymovement 0x9 @qst
waitmovement 0x0
msgbox @text6 0x6
applymovement 0x9 @silvermove
waitmovement 0x0
trainerbattle 0x3 0x51 0x0 @defeat
msgbox @text7 0x6
applymovement 0x1 @1move
waitmovement 0x0
applymovement 0x6 @2move
waitmovement 0x0
applymovement 0xC @3move
waitmovement 0x0
applymovement 0x9 @4move
waitmovement 0x0
msgbox @text8 0x6
applymovement 0x1 @5move
applymovement 0x6 @5move
applymovement 0xC @5move
applymovement 0x9 @5move
waitmovement 0x0
hidesprite 0x1
hidesprite 0x6
hidesprite 0xC
hidesprite 0x9
setflag 0x17E
setvar 0x4051 0x9
releaseall
end