• 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!
  • 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.

[Eventing Question] Help me! How do I make sure that every time I enter a map, there is a small percentage of an event happening?

You can do something like this:

[PokeCommunity.com] Help me! How do I make sure that every time I enter a map, there is a small percentage of an event happening?


As soon as the player enters the map, the Autorun trigger kicks in and this event activates. It generates a random number between 0 - 99 and stores it in Variable 001 (you can choose a different variable if you want). Then the Conditional Branch checks if Variable 001 is less than 5, which means a 5% chance (again, you can change this value). The text inside the Conditional Branch is whatever your event is, and after that you need "Erase Event" so that the event will not trigger again until the player leaves and reenters the map.
 
You can do something like this:

[PokeCommunity.com] Help me! How do I make sure that every time I enter a map, there is a small percentage of an event happening?


As soon as the player enters the map, the Autorun trigger kicks in and this event activates. It generates a random number between 0 - 99 and stores it in Variable 001 (you can choose a different variable if you want). Then the Conditional Branch checks if Variable 001 is less than 5, which means a 5% chance (again, you can change this value). The text inside the Conditional Branch is whatever your event is, and after that you need "Erase Event" so that the event will not trigger again until the player leaves and reenters the map.

thank youuuuu!
 
Back
Top