How do I get an enemy to specifically attack an actor?

Well what the title says

More specifically, let's say that in a battle event when a certain percentage of an enemy's health drops, a text similar to "The enemy looks at actor X" will appear.

and in the next turn he attacks that actor

I'm looking to know how to do this because in my game I want to implement a "Sacrifice" skill where one actor can sacrifice themselves for another at that moment when an enemy attacks.

but I can't implement this without even knowing if the first thing can be done



Thank you very much in advance for any help.
More specifically, let's say that in a battle event when a certain percentage of an enemy's health drops, a text similar to "The enemy looks at actor X" will appear.
That's pretty easily done with a troop event.

and in the next turn he attacks that actor
That's more complicated. If you want it to happen in the normal order of taking actions, you'd have to use Yanfly's Battle AI.

If you don't care about it going off at the beginning of the next turn, you could go without a plugin and use script calls for force action.
as said above you'll need a plugin for an absolute guarantee.

without a plugin the method would be to increase that actor's target rate with states while reducing all other actor target rates. The target rate decides the probabillity of one actor being targeted, but it has limits in its operation and you usually only get to 99.9% instead of 100%

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-an-enemy-to-specifically-attack-an-actor.169535/