I'm not sure if I can do this in events or if I'll have to do this with javascript. Say I have var X and var Y. I want to increase var X by Y but Y is a percent. For example if I want Y to be a 20% increase and to increase X by Y so that if X is 10 then the returning number will be 12?
How this pertains to the game:
You have a stat (wisdom) that increases mana regeneration rate. It starts off at a base of 10 and increases as you level. But you can get talent points to increase this. So You have 3 levels on increase, a 20%, 40%, and 60% increase. So I save wisdom as var A, have total mana regen total as var X, and mana increase as Var Y. I want var A to be increased by the value in percent of var Y and stored as var X.
How this pertains to the game:
You have a stat (wisdom) that increases mana regeneration rate. It starts off at a base of 10 and increases as you level. But you can get talent points to increase this. So You have 3 levels on increase, a 20%, 40%, and 60% increase. So I save wisdom as var A, have total mana regen total as var X, and mana increase as Var Y. I want var A to be increased by the value in percent of var Y and stored as var X.