__fred__40
fred
- 277
- Posts
- 5
- Years
- mt silver
- Seen Mar 6, 2022
Hi,for a while now I've been trying to make a script for Fire Red where if I lose I get a specific script(not just a simple msg,that can be done using trainerbattle 0x9 i know)but an entire different script I mean if you lose the battle you go right if you win you go left,simple as that.I know this is possible in Emerald because when you are in the battle tower and you lose you get a different script than the one you would get if you'd have won.
So how can I do it in Fire Red?Is there maybe an ASM routine out there for it?
EDIT:never edited a post this quickly but yeah,thx to Lunos on discord for giving me the simple and obvious yet brilliant idea of using 0x800D
trainerbattle 0x9 0x1 0x0 @msgwin @msglose
special 0x0
compare 0x800D 0x0 '=win
if 0x1 goto @win
compare 0x800D 0x1 '=lose
if 0x1 goto @lose
So how can I do it in Fire Red?Is there maybe an ASM routine out there for it?
EDIT:never edited a post this quickly but yeah,thx to Lunos on discord for giving me the simple and obvious yet brilliant idea of using 0x800D
trainerbattle 0x9 0x1 0x0 @msgwin @msglose
special 0x0
compare 0x800D 0x0 '=win
if 0x1 goto @win
compare 0x800D 0x1 '=lose
if 0x1 goto @lose
Last edited: