Hello,
I would like to make an element resistance query for the skill fomula, where the opponent dies immediately if he does not have this element resistance.
I've already cobbled one together, but it doesn't work.
As an example for Darkness (standard 9 in the element list):
b.elementRate(9) <- 0.5 ? b.hp - 0
What would be the correct code for this?
Edit: In my example, instant death should occur at equal to or below 50% Darkness ressistance.
I would like to make an element resistance query for the skill fomula, where the opponent dies immediately if he does not have this element resistance.
I've already cobbled one together, but it doesn't work.
As an example for Darkness (standard 9 in the element list):
b.elementRate(9) <- 0.5 ? b.hp - 0
What would be the correct code for this?
Edit: In my example, instant death should occur at equal to or below 50% Darkness ressistance.