Is it possible to get a target's element rate with a script call?

● ARCHIVED · READ-ONLY
Started by zarroc407 3 posts View original ↗
  1. 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?
  2. Hey there,

    If I'm not terribly mistaken it should just be
    target.elementRate(Element ID)
    (100% equates to 1.0 here, so you don't have to divide the result by 100)