- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
pkmn = $Trainer.first_able_pokemon
if
pkmn.ev[:TOTAL] >510
pkmn = $Trainer.first_able_pokemon
pkmn.ev[:HP] = 0
pkmn.ev[:ATTACK] = 0
pkmn.ev[:DEFENSE] = 0
pkmn.ev[:SPECIAL_ATTACK] = 0
pkmn.ev[:SPECIAL_DEFENSE] = 0
pkmn.ev[:SPEED] = 0
else
endif
end
I need this script to check the first Pokemon in my party, check his number of EVs, and if it's illegally high it needs to reset them all to 0. But I'm still new to scripting in this language. How do I pull it off?
if
pkmn.ev[:TOTAL] >510
pkmn = $Trainer.first_able_pokemon
pkmn.ev[:HP] = 0
pkmn.ev[:ATTACK] = 0
pkmn.ev[:DEFENSE] = 0
pkmn.ev[:SPECIAL_ATTACK] = 0
pkmn.ev[:SPECIAL_DEFENSE] = 0
pkmn.ev[:SPEED] = 0
else
endif
end
I need this script to check the first Pokemon in my party, check his number of EVs, and if it's illegally high it needs to reset them all to 0. But I'm still new to scripting in this language. How do I pull it off?
Last edited: