Substitute Mechanic

I would like to know how I would change the parameters for how the Substitute Mechanic works (where one actor takes damage in place of another one)

I want to make the mechanic more reliable, but I've no idea on how to do that. I'd prefer not simply workaround it by using a Taunt mechanic.
When an actor has 10% HP, the person with the state substitute will protect them.

Original thread: https://forums.rpgmakerweb.com/threads/substitute-mechanic.54504/