• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

[Script] After losing battle in scripted event, the event still completes wtf?

  • 242
    Posts
    7
    Years
    • Seen Apr 3, 2023
    Ok so I have a script tile with this script attached (I left out text message and movement commands)
    , what happens is, if you lose the battle and come back, the OW's are gone and the script tiles doesn't run again, which confuses me because the script is supposed to terminate once you faint right?
    Meaning the setflag and setvar commands never should execute but it seems like they do anyways.

    So yeah does anyone have experience with this lol for now I'll probably just separate the script into two parts where the story part happens on the script tile, and then you have to talk to the NPC for the battle.

    Spoiler:
     
    I couldn?t tell you why your script doesn?t rerun, but your overworlds are likely disappearing because of the hidesprite commands you have before the trainer battle. Hidesprite automatically sets the flag of whatever NPC it?s used on.
     
    I think the trainer battle type is the same type used when you battle Gary, after that, Professor oak encourages you and heals you pokemon and the game continues. You could use this script to make a defeat happen that's important to the plot (like in the first golden sun game). Set pokemon that the player can't beat at that level and point the win to the same place as the loss just incase... not that you were asking for that, but it's an interesting idea.
     
    Back
    Top