Healing Items and skill that only effect certain Characters

Titanor

Veteran
Veteran
Joined
Jul 22, 2013
Messages
44
Reaction score
6
First Language
english
Primarily Uses
N/A
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.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,571
Reaction score
1,616
First Language
Spanish
Primarily Uses
RMVXA
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.
 

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
356
Reaction score
186
First Language
English
Primarily Uses
RMMZ
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.
 
Last edited:

Titanor

Veteran
Veteran
Joined
Jul 22, 2013
Messages
44
Reaction score
6
First Language
english
Primarily Uses
N/A
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
 

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
356
Reaction score
186
First Language
English
Primarily Uses
RMMZ
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.
 
Last edited:

Titanor

Veteran
Veteran
Joined
Jul 22, 2013
Messages
44
Reaction score
6
First Language
english
Primarily Uses
N/A
@NaosoX yes I am using Visustella Battle Core,
How would I check for the target in a common event?
 

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
356
Reaction score
186
First Language
English
Primarily Uses
RMMZ
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
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
3,156
Reaction score
1,866
First Language
English
Primarily Uses
RMMV
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>
 

Titanor

Veteran
Veteran
Joined
Jul 22, 2013
Messages
44
Reaction score
6
First Language
english
Primarily Uses
N/A
@ATT_Turan thank you for the suggestion I will try that now.
 

Titanor

Veteran
Veteran
Joined
Jul 22, 2013
Messages
44
Reaction score
6
First Language
english
Primarily Uses
N/A
@ATT_Turan It does not work I am still able to use normal items on the robots and robot items on normal actors
 

Latest Threads

Latest Posts

Latest Profile Posts

People laughed at me when I said that Activision Blizzard would get bought up by another company if they didn't fire their execs. Now their value has dipped so much Microsoft is willing to buy the company, likely followed by some heavy terminations if they want to purify the current toxic image of Activision Blizzard.
Pro tip: don't be this person.1642536788532.png
ok hear me out here: if the only way my brain can describe things is like with colors is this normal? Like I've described a smell as "dark green and fuzzy" and a taste as "dark blue" like is this a normal thing that happens to people or am I just going insane?? o.0
I'm sitting here, programming, when suddenly, in the distance, I hear a deep booming shout, "Dovahkiin". In an instant, my mind and body is pulling me away, my fingers twitch and notepad++, almost by itself, turns off. The Steam starts to rise and a big green play button appers and I am teleported to Skyrim, because, I am, the Dragonborn! 200 hours played last three weeks, omg o_O

Forum statistics

Threads
118,487
Messages
1,116,317
Members
155,473
Latest member
bomjamboree
Top