- 2
- Posts
- 11
- Years
- Seen May 11, 2014
I have created a pokemon battle script using the predefined scripts from pksv. I have made sure it is not conflicting with existing flags. While in game if i interact with the player event the emulator just starts glitching and i can't move at all. This is obviously something wrong with my script. I have other scripts of players talking that work, but this is not.
Here is my script.
Here is my script.
Spoiler:
#dyn 0x740000
#org @start
special 0x187
compare LASTRESULT 2
if == jump 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry DEOXYS 2
waitcry
pause 0x14
playsound 0x156 0x0
battle DEOXYS 0x32 NONE
setflag 0x807
special 0x138
waitspecial
clearflag 0x807
special2 0x800D 0xB4
compare LASTRESULT 1
if == jump 0x8162558
compare LASTRESULT 4
if == jump 0x8162561
compare LASTRESULT 5
if == jump 0x8162561
setflag 0x1001
release
end
#org @start
special 0x187
compare LASTRESULT 2
if == jump 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry DEOXYS 2
waitcry
pause 0x14
playsound 0x156 0x0
battle DEOXYS 0x32 NONE
setflag 0x807
special 0x138
waitspecial
clearflag 0x807
special2 0x800D 0xB4
compare LASTRESULT 1
if == jump 0x8162558
compare LASTRESULT 4
if == jump 0x8162561
compare LASTRESULT 5
if == jump 0x8162561
setflag 0x1001
release
end