Yanfly Battle AI Core - Target enemy name

Hi guys, i've a question about this plugin.
How can i set the code, for heal a precisely enemy?

Example, i've 3 enemies.
Two of them, will heal the boss on this conditions. When it reach <=50, the two of them will cure it.

<AI Priority>
HP% param <= 50%: Skill 8, Highest MaxHP
</AI Priority>

but in this way, every enemy that reach 49%, will be cured by the two...
I must connect another condition with "+++" and add a target name condition. How can i do it?

Thank you soo much!
HP% Param <= 50% && target.name() === ‘Boss Name’: Skill 8

Try this in the notetags. Just make sure to replace Boss Name with the name of the enemy to target.
I've tried now but it gives me errors in console (attachment...)

Thank you for the help. What is wrong?
I believe you need to put "Eval" before target.name(). Like so:

HP% param <= 50% +++ Eval target.name() === 'Insert Boss Name Here': Skill 8

The plugin doesn't have a default way to check for the target's name, so it needs a Javascript evaluation (in this case, target.name()) to do it.
Hi, tried now... but it gives me another error:
HP% param <= 50% && Eval target.name() === 'Insert Boss Name Here': Skill 8

The plus signs should be 2 ampersands.

Or maybe the problem is your naming convention. Judging from the error, there's a dash in the name, which the code may struggle with. Try changing it temporarily to see if it works then. Or, judging from the context of the plugin page, the name needs an A after it. If that's the case, this code may work better:

HP% param <= 50% && Eval target.enemyId() === 'Enemy ID Number': Skill 8

This way, it checks the ID of the enemy instead of the name.
It doesn't works T_T i've tried to change the name and the new code with target.enemyid. Nothing... it doesn't work... What can i do? This is crazy...
First, 32 shouldn't be in quotes in this case. It's a number, not a string. Maybe if The "Eval" part of the code is removed. Just the word Eval. I'm not certain that it's needed if there's a piece of code before it.
YES!!! YES! NOW IT WORKS! I've used just like you've said, this:

HP% param <= 50% && target.enemyId() === 32: Skill 8

without the Eval and without the quotes. I know about numbers and quotes, i've tried without quotes but i've not tried without Eval word. Damnnnn, thank you soo much guys, all of you <3

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-ai-core-target-enemy-name.83226/