Have you tried setting the HP directly while dealing zero damage?
b.hp=1; 0
Hmm, "b.hp=1; 0" results in 0 damage dealt.
Hmm, my group is still at full HP.
actor.hp is actually a method used to retrieve the private number, you can't set it equal to something.
Try b._hp
Or just try b.gainHp(-b.hp +1).
Say your Guard state is State 9. Put as formula:
a.isStateAffected(9) ? ((b.hp - 1) * 2) : (b.hp - 1)
EDIT: I put the original formula in wrong. Should be
b.isStateAffected(9) ? ((b.hp - 1) * 2) : (b.hp - 1)
If the target is guarding, then the attack will deal double damage, hence canceling out the guard effect. If target is not guarding it will just do b.hp - 1. A bit roundabout but it should do the trick!
Wow, I certainly wanna thank you for updating your post.
Now it works and it's even better than before, because it actually shows the damage dealt on my sideview battlers as well rather than just reducing everyones HP to 1 and showing 0 damage.
If any of the battlers have an increased Guard rate, the doubling workaround won't work.
Sure, I will try that right now.
I guess there's a "(" missing just before the b.hp?
And what do you mean by "increased guard rate"?
The only thing my partymembers can do is to "defend".
What rate is there to increase?
Edit: It works, thank you (again)!
Really happy with the outcome, just what I needed.
You saved my day, really.