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,573
Reaction score
1,622
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
357
Reaction score
187
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
357
Reaction score
187
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
357
Reaction score
187
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,193
Reaction score
1,888
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 Profile Posts


The projectiles shown in this video are as follows:
1, Basic Triple
2, 30-Degree Arc
3, Randomized Blast Wave
4, 8-way
5, 8-way Double
6, 8-way Slowness
7, 120-Degree Arc Repetitive
8, Projective Triple
9, Split 8-way
10, 2-way Split Randomized Arc
11, HP-MP Split Arc
12, Split Laser
13, Shock
14, Cosine
Drop shadows and water reflections tests in RPG Maker VX Ace


BgI3F80.png
I'm doing a fairy tale project Little Red Riding Hood and the Woodsman. I'm almost done with the demo in my native language and I intend to make a demo version in English as well. I'm just going to use the translator because I don't know the pronunciations very well, I only know how to say "Hey" and nothing else.. :kaoswt2:

Forum statistics

Threads
118,616
Messages
1,117,344
Members
155,696
Latest member
SLUGG
Top