single-target protect

Hi again,

I'm getting back into rpg making, and I've spent a lot of time googling lately but haven't found a solution to this one: it seems relatively simple to transfer damage taken by party members to a "tank" actor via the Substitute special flag option, but is there an easy way to do that with just one targeted party member?

Actor 1 uses skill 'Protect'

Actor 1 targets Actor 2

Enemy attacks Actor 2 -> damage goes to Actor 1

I'll have another more detailed look at damage formulae, but perhaps you'll be faster than me.

Thanks!

edit: Similar to one of my other questions, I suppose this could be done with a state on Actor 2 and skills that check for that state, but if someone knows a simpler way, I'd be interested in hearing it.
I think you'll need a script for this one - make a thread in RGSS3 Script Requests.

Original thread: https://forums.rpgmakerweb.com/threads/single-target-protect.42813/