Hello, everyone!
I'm making a skill that applies a state to the selected enemy. Once the state expires, it should damage the enemy, and if a critical strike lands, it should do that dmg. The thing is that it seems that I'm ignoring something in the formula in the state's notetag. It looks like this:
<Custom Leave Effect>
user.startAnimation(14);
user.gainHp((a.mat - b.mdf));
</Custom Leave Effect>
It looks like this, but I don't know what I'm doing wrong. Also, how can I check if a critical strike lands and apply that dmg?
Thanks!!!
I'm making a skill that applies a state to the selected enemy. Once the state expires, it should damage the enemy, and if a critical strike lands, it should do that dmg. The thing is that it seems that I'm ignoring something in the formula in the state's notetag. It looks like this:
<Custom Leave Effect>
user.startAnimation(14);
user.gainHp((a.mat - b.mdf));
</Custom Leave Effect>
It looks like this, but I don't know what I'm doing wrong. Also, how can I check if a critical strike lands and apply that dmg?
Thanks!!!