Make enemy attack always target one character?

Hey guys I've got a battle scene with 2 people in the party and I want the boss character to only use a certain attack on one of the party members but never on the other. Does anyone know if there's a simple way to do this?

Can't see it in any of the skill or enemy parameters and havn't been able to find any scripts that do this. Would have thought there'd be an option to be like only use skill on index 2 or something like that but no dice from what i can see.
As far as I am aware, this cannot be done by default. You'll need a script.

The one I used for this is Hime's Scope Conditions which can be found here.
What I did was to give the person who should be hit with the skill a state at the beginning of the battle against that particular enemy. That state had no name or icon so that the player was unaware of it. The skill is set to "All enemies". However, in the note box you put a restriction so that it only hits the character with that state. Here is my note tag
Code:
<scope condition: b.state?(139)/>
Obviously you would change 139 to the id of the state you are using.

I've moved this thread to RGSS3 Script Requests. Thank you.

Sweet! Thanks for that, got it working great 🙂

I did however have a bit of trouble at first where the enemy just wouldn't attack at all and didn't know what was going on.

Turns out the state was removing itself during the battle despite "remove at battle end" and "none" being clicked on the auto removal timing.

Luckily by pumping up the "duration in turns" to a stupid amount of turns it works fine. Not the 100% ideal fix seeing as theoretically it will bug out but if it takes you over 1000 turns to kill the first boss then you've got more problems than having to see an enemy skip an attack!

(Using Moghunter's ATB battle system so not sure if its conflicting with that somehow, just thought I'd put in my little work around fix in case anyone else uses this info)

Original thread: https://forums.rpgmakerweb.com/threads/make-enemy-attack-always-target-one-character.120479/