I have a skill where an actor can heal an ally's HP at the cost of damaging his own HP a little. The formula is like this:
a.hp-=(a.hp/20); 250 + a.mat
That formula works as I intend. However, I also have a skill where I want the character to remove a state, but at the cost of damaging the ally in the same sort of way. So I reused part of the formula like this.
b.hp-=(b.hp/20)
with the removal of the various states in the effects box, variance set to zero, and no critical.
However, this formula takes all the ally's HP, so killing them.
Clearly I have misunderstood something pretty badly. Could anyone tell me where I'm going wrong?
Thanks.
a.hp-=(a.hp/20); 250 + a.mat
That formula works as I intend. However, I also have a skill where I want the character to remove a state, but at the cost of damaging the ally in the same sort of way. So I reused part of the formula like this.
b.hp-=(b.hp/20)
with the removal of the various states in the effects box, variance set to zero, and no critical.
However, this formula takes all the ally's HP, so killing them.
Clearly I have misunderstood something pretty badly. Could anyone tell me where I'm going wrong?
Thanks.