• 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!
  • 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] how to check a pokemon if it has a certain move and remove that move

Code:
pokemon.pbDeleteMove(:HYPERBEAM)
Deletes Hyper Beam from the Pokemon if they have it. Ignores it if they don't.



Code:
pokemon.pbDeleteMoveAtIndex(2)
Deletes the third (the numbering starts at 0) move in the Pokemon's list.



Do not get the two functions confused.
 
Back
Top