PHO - Pokémon Hackers Online

PHO - Pokémon Hackers Online (
-   Guides & Documentation (
-   -   Help with scripting (

zapherian 11th November 2015 06:01 AM

Help with scripting
Well, i am working on a script where a npc adds an amount of EV to a pokemon. I think I am almost there the only problem I am having is that the given EV by passes the 512 max EV cap and can be given till all stat has 252 EV. I am using JPANs fire red hacked engine which also allows to add subtract variables. (VarMaths) which i dont know how to use. Can any one give me an example of math variables.

What i want to do is :
Take total EV of pokemon and campare if its greater or = 510 (max ev allowed) and if true then cancle the addition if EV or add EV if false.
Thanks in advance.

All times are GMT. The time now is 06:50 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).

Green Charizard Christos TreeckoLv100