Winter Wonderland
Puts the fun in dysfunctional
- 305
- Posts
- 13
- Years
- Florida
- Seen Jan 25, 2017
Okay, so I'm trying to make this sprite disappear after a battle. It works, up until I decide to take a step anywhere, then it reappears. It's on Fire Red. Here's the script, can anyone tell me what's wrong with it?
Code:
#dynamic 0x800000
#org @start
checkflag 0x829
if 0x0 goto @done
checkflag 0x1000
if 0x1 goto @done
applymovement 0x03 @move1
waitmovement 0x0
trainerbattle 0x1 0x1AA 0x0 @before @after @later
end
#org @before
= Hey, [PLAYER]! We never tested out our\nPokemon! We should battle, like\lright now!
#org @after
= Damn! Your Pokemon is pretty good!
#org @later
msgbox @3 0x6
giveitem 0x4 0x05 MSG_OBTAIN
closeonkeypress
applymovement 0x03 @move2
waitmovement 0x0
hidesprite 0x03
setflag 0x1000
release
end
#org @done
release
end
#org @3
= Wow! Your Totodile is pretty\nstrong! You know, there's a gym in\lSky Slate City. Why don't you go\lcheck it out? Also, you should\ltake these. It will help you fill\lout the PokeDex. I'll see you\llater, friend!
#org @4
= You received the PokeBalls!
#org @move1
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0xFE
#org @move2
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE