• 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!
  • Akari, Selene, Mint, Solana - 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] Check what pokémon is battling

  • 32
    Posts
    9
    Years
    How do i check in a script what pokémon is battling?
    like an if $Trainer.party.something check?
     
    Last edited by a moderator:
    Because i'd like to make a counter on how many battles a mon has battled together with the player and tie a variable to it, kinda like the happiness system.
     
    You could always have add that as an instance variable for the class that holds pokemon, and then in battle (when sent out for the first time), add to it
     
    Sorry but i have very limited knowledge in the essentials script system, i don't actually know how to do it, but i'm a fast learner, could you please put more detail in it? thanks.
     
    Back
    Top