I want to create a skill that has a damage scales with the remaining turns of a specific state. For example, the more turns of sleep remaining an enemy has, the higher the damage it will receive from a skill like "Dream Eater".
I know how to deal extra damage to an enemy with a specific state, it's like "(b.state?(6) ? 8 : 4) * a.mat / b.mdf". However, I can't seem to figure out how to get the remaining turns of a state in the damage formula.
Does anyone know if it is possible to do so in the damage formula? Or must I edit some script? And how?
Thank you.
I know how to deal extra damage to an enemy with a specific state, it's like "(b.state?(6) ? 8 : 4) * a.mat / b.mdf". However, I can't seem to figure out how to get the remaining turns of a state in the damage formula.
Does anyone know if it is possible to do so in the damage formula? Or must I edit some script? And how?
Thank you.