- 7
- Posts
- 9
- Years
- Seen Feb 28, 2019
Hello, I have a problem with wildbattle script.
I found lots sample scripts on google, that were supposed to play single combat then have pokemon gone from map forever, but none of them is working as it's supposed to- after battle pokemon is removed from map, but he is back after map resets (flag is somehow cleared).
For example, if I will place a battle in Oldale Town, beat pokemon first time I'm there, then it will respawn after I defeat May and come back to Oldale (and it will probably respawn more often in the future).
Is there any way to have flag stay set even after map resets?
code of my script
Thanks for help.
I found lots sample scripts on google, that were supposed to play single combat then have pokemon gone from map forever, but none of them is working as it's supposed to- after battle pokemon is removed from map, but he is back after map resets (flag is somehow cleared).
For example, if I will place a battle in Oldale Town, beat pokemon first time I'm there, then it will respawn after I defeat May and come back to Oldale (and it will probably respawn more often in the future).
Is there any way to have flag stay set even after map resets?
code of my script
Spoiler:
#dynamic 0xE3D0DA
#org @start
lock
cry 315 1
msgbox @1 0x6
pause 0x20
wildbattle 315 3 0
setflag 0x1234
hidesprite 5
release
end
#org @1
= meow
#org @start
lock
cry 315 1
msgbox @1 0x6
pause 0x20
wildbattle 315 3 0
setflag 0x1234
hidesprite 5
release
end
#org @1
= meow
Thanks for help.