• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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
    6
    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:
    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.
     
    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