• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

[Scripting Question] Event Triggered By Beating all players

  • 65
    Posts
    12
    Years
    • Seen Jan 4, 2022
    It is as it sounds. How do I make it so that when all trainers in an area are defeated a new event is triggered?
     
    Set a variable inside the Trainer Conditional branch and increase by +1 before self switch A is on and count the no of trainer and set in event

    Example:
    In the route have 6 trainers then you have to Set the variable in event greater than or equal to 6 then only the event trigger's
     
    OK so Ive been trying to figure this out, But I don't think I fully understand. Do I create a conational branch and set that branch greater or equal to the amount of trainers based on the variable for defeating the trainers. Then as I battle a trainer and they are defeated it adds 1 number towards that variable? or am I missing something? Also how to I create the event properly the way I did it I set Auto run to the conditional branch but since the condition wasn't met the character just gets stuck. I'm not really sure how to do this.
     
    Last edited:
    Back
    Top