I'm working on a skill that has a chance to add increase the counter of a state when it hits then once that counter reaches a certain amount i'll have it explode dealing damage to the target and clearing the state. What I'm trying to figure out is if it's possible to get the element rate from a target to use in the damage formula for the state. I'm using yanfly's buffs and states and my code looks something like this:
<Custom Apply Effect>
target.removeState(Buildup State);
target.startAnimation(Explosion Animation);
target.gainHp(-50);
target.removeState(Explosion State);
</Custom Apply Effect>
I want to make the damage something like this: target.gainHp((Fire Element Rate / 100) * -50); Is this possible?
<Custom Apply Effect>
target.removeState(Buildup State);
target.startAnimation(Explosion Animation);
target.gainHp(-50);
target.removeState(Explosion State);
</Custom Apply Effect>
I want to make the damage something like this: target.gainHp((Fire Element Rate / 100) * -50); Is this possible?