- 4
- Posts
- 2
- Years
- Seen Jul 17, 2023
Hey, all! Fairly new to all of this, and had an issue. Basically, I have been using setflag + hidesprite to get rid of one time trainer encounters in the overworld. In the below script, I set flag 227, which is also the person ID of a Whitney and Chansey sprite. Upon execution of the below script, the Whitney sprite successfully disappears. However, the Chansey sprite remains on its own. Any idea how to get a single script to successfully hide multiple sprites?
#dynamic 0x800000
'---------------
#org @start
lock
faceplayer
msgbox @4 0x6
trainerbattle 0x1 0x1DB 0x0 @before @after @later
end
#org @before
= Okay, here we go!
#org @after
= Oof! You're awesome!
#org @later
msgbox @1 0x6
giveitem 0x44 0x5 0x0
closeonkeypress
msgbox @3 0x4
closeonkeypress
fadescreen 0x1
hidesprite 0x800F
fadescreen 0x0
setflag 0x227
release
end
#org @1
= Well, looks like Chansey is\nfinally moving again. I guess\lwe can all be on our way.\lYou better take these before my\lChansey gets a hold of it.
#org @3
= Aaand we're off!\nLet's go, Chansey.
#org @4
= S-sorry!\nAre we in the way?\lMy Chansey is in food coma.\lI've been trying to get her up\lfor the past two hours.\lI apologize, but I don't\lthink anyone can leave unless my\lChansey gets up.\lHey! I got an idea!\lWhy don't we battle?\lI'm sure that will energize\lmy Chansey to move!
#dynamic 0x800000
'---------------
#org @start
lock
faceplayer
msgbox @4 0x6
trainerbattle 0x1 0x1DB 0x0 @before @after @later
end
#org @before
= Okay, here we go!
#org @after
= Oof! You're awesome!
#org @later
msgbox @1 0x6
giveitem 0x44 0x5 0x0
closeonkeypress
msgbox @3 0x4
closeonkeypress
fadescreen 0x1
hidesprite 0x800F
fadescreen 0x0
setflag 0x227
release
end
#org @1
= Well, looks like Chansey is\nfinally moving again. I guess\lwe can all be on our way.\lYou better take these before my\lChansey gets a hold of it.
#org @3
= Aaand we're off!\nLet's go, Chansey.
#org @4
= S-sorry!\nAre we in the way?\lMy Chansey is in food coma.\lI've been trying to get her up\lfor the past two hours.\lI apologize, but I don't\lthink anyone can leave unless my\lChansey gets up.\lHey! I got an idea!\lWhy don't we battle?\lI'm sure that will energize\lmy Chansey to move!