• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Battle✓] Fire Red: Battle where losing doesn't cause whiteout? (without Oak's tutorial text)

17
Posts
5
Years
    • Seen Sep 23, 2020
    I'm trying to let a script continue even if the player loses the battle.

    The only way I know how is to put 0x9 and 0x3 for the bolded values:
    trainerbattle 0x9 0x148 0x3 @rivalWinText @rivalLoseText

    But an unwanted effect of this is that Oak's battle tutorial text is displayed.

    How can I allow the player to lose without displaying Oak's tutorial?
     
    Last edited:
    990
    Posts
    4
    Years
  • To remove the Oak text, replace the 8 bytes at 080484 with "00". Or, if you want too run an entirely different script upon winning or losing, use this in your script:

    Code:
    trainerbattle 0x9 0x1 0x0 @msgwin @msglose
    special 0x0
    compare 0x800D 0x0 '=win
    if 0x1 goto @win
    compare 0x800D 0x1 '=lose
    if 0x1 goto @lose
    ↑ I'm sure Lunos mentioned this somewhere, so credits too him.
     
    17
    Posts
    5
    Years
    • Seen Sep 23, 2020
    To remove the Oak text, replace the 8 bytes at 080484 with "00". Or, if you want too run an entirely different script upon winning or losing, use this in your script:

    Code:
    trainerbattle 0x9 0x1 0x0 @msgwin @msglose
    special 0x0
    compare 0x800D 0x0 '=win
    if 0x1 goto @win
    compare 0x800D 0x1 '=lose
    if 0x1 goto @lose
    ↑ I'm sure Lunos mentioned this somewhere, so credits too him.

    Thanks a ton!

    I couldn't get the code you posted to work at first.
    When I lost the fight, I still whited out and was taken to the last heal location.

    But the solution was easy!
    I had to both remove Oak's tutorial text like you described,
    and then change the third argument of "trainerbattle" from 0x0 to 0x3.
    No matter what I do, it seems like the third argument needs to be 0x3, or it would white me out when losing.
     
    Back
    Top