- 510
- Posts
- 12
- Years
- Seen May 4, 2025
I have a legendary event with Mew (that I've posted here before) which works as intended except for a small detail: whenever I catch or defeat it and return to the game he's still there until a fadescreen happens at wich point he's removed from the map. Is there a way to make it gone as soon as I defeat/catch it like every other legendary?
Here's the script:
Spoiler:'---------------
#org 0x7404A7
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x8740523
special 0x188
lock
faceplayer
checksound
cry 0x97 0x2
msgbox 0x8740562 MSG_FACE '"Mew!"
waitcry
pause 0x14
playsong 0x156 0x0
waitkeypress
setflag 0x2FF
setwildbattle 0x97 0x3 0x0
setflag 0x807
special 0x138
waitstate
clearflag 0x807
special2 LASTRESULT 0xB4
compare LASTRESULT 0x7
if 0x1 goto 0x8740526
compare LASTRESULT 0x1
if 0x1 goto 0x8740530
compare LASTRESULT 0x4
if 0x1 goto 0x8740530
setflag 0x201
fadescreen 0x1
setflag 0x2FF
hidesprite LASTTALKED
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox 0x8740569 MSG_KEEPOPEN '"The [buffer1] flew away!"
release
end
'---------------
#org 0x740523
release
end
'---------------
#org 0x740526
setflag 0x201
goto 0x874053C
'---------------
#org 0x740530
setvar 0x8004 0x97
goto 0x8740549
'---------------
#org 0x74053C
fadescreen 0x1
setflag 0x2FF
hidesprite LASTTALKED
fadescreen 0x0
release
end
'---------------
#org 0x740549
fadescreen 0x1
setflag 0x2FF
hidesprite LASTTALKED
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox 0x8740569 MSG_KEEPOPEN '"The [buffer1] flew away!"
release
end
'---------
' Strings
'---------
#org 0x740562
= Mew!
#org 0x740569
= The [buffer1] flew away!
Could anyone help? I've tried the suggestion made above, but it still didn't work.