applymovement 1 $walk
$walk 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0xFE
applymovement 1 $r
$r 1 ; #binary 0x13 0x13 0x13 0xFE
$talk 1 = \v\h06: \v\h01!\pI knew you would be here!\pIt's a great place for a battle\pAnd it's perfect to test out your skills\ndon't you think?
trainerbattle 0x03 0x0001 $win
$win 1 = No! I lost again!
$afterwards 1 = That was great\pLet's do that again sometime\hb0\pYou raised your Pokémon good\nThay have powerful moves\ltoo, and I now you can do it\hb0\pYou can win the next bage.\p\v\h01! I forgot to till you\nthat I got 3 bages,\pit was hard I now.
$bye 1 = \v\h06: but now this, you\pa trainer will be powerfull.\pJust count on it.
applymovement 1 $getout
$getout 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE
setvar 0x6000 0x0001
Can I see the script? It sounds like the first time you battle him he just doesn't disappear because you had a setflag change the beginning of the script so he wouldn't be there in the first place. A setflag will junk up the script if the checkflag is right behind the setflag.
Hay I was waking on a script that make's a person walk up to you and battle and then leave, also remove the sprite when it's done but when I walk to the next spot where you put the person to do the event he's still there after the event.And when I leave the rout and come back he's not there, he's suppose to be gone when the event is over why.