- 3
- Posts
- 5
- Years
- Seen Nov 25, 2019
I am trying to, for the purposes of my problem, debug part of a script that generates a random shiny to battle. The game immediately crashes when after waitcry. I have no idea why this is or how to fix this. Anyone try working with random numbers on wildbattle here before? Will I have to do each individual pokemon or will this have a workaround. I made an account to ask this question, im somewhat new to actually romhacking but not new to the concepts in it.
#org @gen2
callasm 0x9C0B21
setvar 0x8003 0x1
random 0x60
addvar LASTRESULT 0x97
cry LASTRESULT 0x0
waitcry
wildbattle LASTRESULT 0x32 0x0
setflag 0x930
release
end
#org @gen2
callasm 0x9C0B21
setvar 0x8003 0x1
random 0x60
addvar LASTRESULT 0x97
cry LASTRESULT 0x0
waitcry
wildbattle LASTRESULT 0x32 0x0
setflag 0x930
release
end
Last edited: