Healing Items and skill that only effect certain Characters

Hey guys, I have a question about healing in RPG maker mz, I have several playable characters in my game, however, 2 are different in the term that they are robots, with more like them on the way.

how can I make it so normal healing items and skills like potions have no effect on them while adding healing items that exclusively heal these characters like robot repair kits, mechanic skills, and/or such?

any methods are fine be it plugins, raw javascript, or eventing.
make the healing skill a magic element, set the robots to be affected by heal at 0% and the other element at 100%, the reverse on the rest of the characters.
On the damage setting of the item or spell, choose HP Recovery.

In the formula box type:
Code:
b.actor().meta.Robot ? 0 : 100
Change 100 to whatever your healing formula is.

In the actor database, whoever is a Robot, enter in the notebox:
Code:
<Robot>

If the actor has the <Robot> notetag, the spell/item will do zero healing. If the actor does not have the notetag, it will heal 100, or whatever amount or formula you replace it with.

For Spells/items to heal robots, change the code to this:
Code:
b.actor().meta.Robot ? 100 : 0
If the actor has the <Robot> notetag, it will heal 100, or whatever amount or formula you replace it with. If the actor does not have the notetag, the spell/item will do zero healing.
both of your methods work for items with only one effect, however I also need a solution for items and skills with 2 or more effects
What do you mean by 2 effects?

If you're using Visustella Battle Core, you can fully customise items and skills through Action Sequences.

Create a skill/item, link it to a common event.
One example may be to:
Have that common event check for the target being applied to; if it matches the robot, apply whatever effects you desire.
@NaosoX yes I am using Visustella Battle Core,
How would I check for the target in a common event?
Ok, that's a general question; and so without knowing the details such as the "effects" you were talking about(as you didn't reply about that), I'll provide a general answer.

How would I check for the target in a common event?
There are a few ways to do this, but it depends on what you want to achieve and what methods you feel comfortable with.

I'll provide one small example:

Control Variable > Game Data > Last > Last Target Actor ID
I think the easiest/most universal way to do all of the things you're asking about would be to use the targeting controls in VisuStella's Battle Core.

Just use
Code:
<JS Targets>
targets=$gameParty.members().filter(member => member.meta.Robot);
</JS Targets>

That will only allow the skill to target party members with the <Robot> notetag, so you don't need to worry about coding each skill to act differently whether they're a robot or not.

For healing things, you can either use the damage formula solution from above, or just do the opposite:
Code:
<JS Targets>
targets=$gameParty.members().filter(member => !member.meta.Robot);
</JS Targets>
@ATT_Turan thank you for the suggestion I will try that now.
@ATT_Turan It does not work I am still able to use normal items on the robots and robot items on normal actors
bump. I am looking for this exact thing. Items that can only target specific characters and will NOT allow you to target characters that have no use for that healing item. Has anyone figured this out? Any plugins out there for MZ? I've searched far and wide.
I've searched far and wide.
There have been many threads about this in the past three years.

@thenerdmansion, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/healing-items-and-skill-that-only-effect-certain-characters.142541/