• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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

824
Posts
8
Years
  • 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