- 670
- Posts
- 7
- Years
- He/Him
- Michigan
- Seen today
I'm trying to have a stationary legendary battle, I can initiate it just fine, but when I try to get the sprite that initiates the battle, it will just reappear after walking a step, am I doing something wrong?
Here's the uncompiled script I am using to initiate a battle with Entei:
Here's the uncompiled script I am using to initiate a battle with Entei:
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
setwildbattle 0xF4 0x32 0x0
setflag 0x8C1
special 0x13B
waitstate
clearflag 0x8C1
special2 LASTRESULT 0xB7
compare LASTRESULT 0x1
if 0x1 goto @captured
compare LASTRESULT 0x4
if 0x1 goto @fail
compare LASTRESULT 0x5
if 0x1 goto @fail
release
end
#org @captured
setflag 0x1BC
goto @battleend
#org @fail
setvar 0x8004 0xFA
goto @fade
#org @battleend
fadescreen3 0x1
hidesprite LASTTALKED
fadescreen3 0x0
release
end
#org @fade
fadescreen3 0x1
hidesprite LASTTALKED
fadescreen3 0x0
bufferpokemon 0x0 0x8004
msgbox @fled MSG_KEEPOPEN //"The [buffer1] flew away!"
release
end
#org @fled
= The [buffer1] flew away!
#org @start
lock
faceplayer
setwildbattle 0xF4 0x32 0x0
setflag 0x8C1
special 0x13B
waitstate
clearflag 0x8C1
special2 LASTRESULT 0xB7
compare LASTRESULT 0x1
if 0x1 goto @captured
compare LASTRESULT 0x4
if 0x1 goto @fail
compare LASTRESULT 0x5
if 0x1 goto @fail
release
end
#org @captured
setflag 0x1BC
goto @battleend
#org @fail
setvar 0x8004 0xFA
goto @fade
#org @battleend
fadescreen3 0x1
hidesprite LASTTALKED
fadescreen3 0x0
release
end
#org @fade
fadescreen3 0x1
hidesprite LASTTALKED
fadescreen3 0x0
bufferpokemon 0x0 0x8004
msgbox @fled MSG_KEEPOPEN //"The [buffer1] flew away!"
release
end
#org @fled
= The [buffer1] flew away!