Helo all
I'm trying to create a skill that increase the damage of the same skill every time is used. To do that, I want the skill to check for states and then do the damage that corresponds to that state. For example: Skill check for State 1, if the battler doesn't have that state, is does X damage and then recieve State 1, second time the skill is used, it check for State 2, if the battler doesn't have that state, but have the State 1, it does X+25% damage and add himself the State 2.
This was my failed attempt to do that:
Any ideas how to make that work?
I'm trying to create a skill that increase the damage of the same skill every time is used. To do that, I want the skill to check for states and then do the damage that corresponds to that state. For example: Skill check for State 1, if the battler doesn't have that state, is does X damage and then recieve State 1, second time the skill is used, it check for State 2, if the battler doesn't have that state, but have the State 1, it does X+25% damage and add himself the State 2.
This was my failed attempt to do that:
Code:
if (a.isStateAffected(330)) {((a.atk**1.7)/(b.def)) * 3;} else if (a.isStateAffected(329)) {a.addState(330);((a.atk**1.7)/(b.def)) * 2.75;} else if (a.isStateAffected(328)) {a.addState(329);((a.atk**1.7)/(b.def)) * 2.5;} else if (a.isStateAffected(327)) {a.addState(328);((a.atk**1.7)/(b.def)) * 2.25;} else if (a.isStateAffected(326)) {a.addState(327);((a.atk**1.7)/(b.def)) * 2;} else if (a.isStateAffected(325)) {a.addState(326);((a.atk**1.7)/(b.def)) * 1.75;} else if (a.isStateAffected(324)) {a.addState(325);((a.atk**1.7)/(b.def)) * 1.5;} else if (a.isStateAffected(323)) {a.addState(324);((a.atk**1.7)/(b.def)) * 1.25;} else if (a.isStateAffected(322)) {a.addState(323);((a.atk**1.7)/(b.def)) * 1;} else if (a.isStateAffected(321)) {a.addState(322); ((a.atk**1.7)/(b.def)) * 0.75}; else {a.addState(321); ((a.atk**1.7)/(b.def)) * 0.5};
Any ideas how to make that work?