Hi ORK community,
I've got a game mechanic that I want to try and implement and I can't seem to find the right way to do it. Basically, I want damage from an attack to deplete one status value (say Stamina), and when that status value reaches 0 then any damage remaining from that attack to be applied to another status value (say Health).
So if you have 10 Stamina and an attack deals 15 damage, the remaining 5 points of damage is subtracted from your Health.
What would be the way to accomplish this, if there is a way?
Thanks in advance.