• 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] I want to create events that occur in battle.

  • 30
    Posts
    318
    Days
    • Seen Jul 1, 2025
    My idea is to have a trainer that uses Rain Dance and/or Perish Song (Not the Pokémon the trainer uses. But the trainer as a separate extra action).

    I've done a bit of coding but I'm really not sure how to get started on this. Because activating an ability requires (as far as I can tell) a lot of steps such as defining the target, the scene, the user, ect.

    It could occur once at the start of every battle. Every 3 turns. Every time a new pokemon switches in. Doesn't really matter what the trigger is.

    If anybody has any idea's for this it would be very much appreciated. Thank you.
     
    Back
    Top