• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Im trying to make something that only works on a certain turn

  • 3
    Posts
    4
    Years
    • Seen May 5, 2021
    Im making an ability that only works on the first turn in a battle, but I have no clue how to see what turn it is. Can someone help me?
     
    You use battler.turnCount==1 for the first turn. You could even do something like battler.turnCount%2==0 for the ability to trigger every other turn.
    Note that this is for the BATTLER's first turn, not the overall first turn of the entire battle. So switching out and in again will reset the ability. You can probably use @battle.turnCount for the entire battle's turn count.
     
    Back
    Top