I'm trying to figure out how create a skill that deals damage while decreasing the max HP of the target based on the amount of damage dealt, but attempting to actually change this value only throws errors.
Example: x = a.atk * 4 - b.def * 2; x; x / 4 -= b.mhp
This formula is a basic attack that reduces maximum HP by 25% or 1/4 of the damage dealt. It doesn't work of course...
I can think of a few reasons as to why this is, but the point is that I need to get this or something similar to work.
Example: x = a.atk * 4 - b.def * 2; x; x / 4 -= b.mhp
This formula is a basic attack that reduces maximum HP by 25% or 1/4 of the damage dealt. It doesn't work of course...
I can think of a few reasons as to why this is, but the point is that I need to get this or something similar to work.