• 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] Item that consumes after switch-in

6
Posts
7
Years
  • Age 24
  • Seen May 4, 2017
I wanted to create some items that at the start of the turn it consumes and increases some stat. How can i do that?
 
971
Posts
7
Years
  • Age 21
  • Seen Nov 28, 2022
Find Intimidate in PokeBattle_Battler and put your code in a new branch there. Look at other code for consuming items and effects and stuff. Had to do this by heart so I can't confirm.
 
6
Posts
7
Years
  • Age 24
  • Seen May 4, 2017
Ok, i tried it before but i was writting just ATTACK instead of PBStats::ATTACK :3c so.
Now it worked, thanks.
 
Back
Top