Action Sequence That Works Like Knight's Code

Hello!
There is a relic in Final Fantasy VI called Knight's Code.
If you aren't familiar with it, basically if an actor has it equipped and one of the actor's on their team is close to death and being attacked. The actor will jump in front of the attack and take the hit for himself.
I have a character with the ability to summon his wolf pet, I would like it very much if whenever the actor who controls the wolf is badly hurt.. the wolf would take the blow for him. Sort of a sign of loyalty between the wolf and his master.
If anyone could walk me through how to do this it would be amazing.
Thanks in advance!
what engine are you using? I think I have an idea for how it could work in ace maybe
what engine are you using? I think I have an idea for how it could work in ace maybe
MV. 😅
Hey there, I haven't made anything like you're asking for but I may know a plugin, that I haven't used,🙂 that may help out here. I was thinking if you use Yanfly's Absorption Barrier It may be doable. With that I'd start with making a state that contains the info. The state would have the barrier point amount that the wolf can absorb, then add some sort of "if player hp is >= 20%" or something like that apply state. That would probably cover the mechanics of it. As for the animation, the barrier points run off of animations so you could make a custom wolf in front of you getting hit animation and switch the barrier point animation to that. I'm sure there's probably more ways to do it but there's one that I came up with. Hope it helps out, and good luck.🙂

Here's a link to the plugin if you want to take a look
http://yanfly.moe/2016/02/13/yep-70-absorption-barrier-rpg-maker-mv/

Original thread: https://forums.rpgmakerweb.com/threads/action-sequence-that-works-like-knights-code.79273/