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,575
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
188
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
188
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
188
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,210
Reaction score
1,899
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

Guarii wrote on TSR's profile.
I want to create a OneShot style inventory. Without having the weapons and armor sections. Just the items. How can I do this?
images
I had to wrote for my job so called document "Annual Rate", based on this document employees will recieve pay raise. I wrote whole truth how I feel about my work and this is how I would summary my document:
Gonna take a break from helping people with resource requests, it has been too much of a disappointment lately.
whats the easiest way to add an on-map command in RPG Maker? like when you press a button the character just jumps or runs when its held? should i get an ABS plugin and customize?
Thinking of doing a crowdfunding kind of thing on my ko-fi page, but i don't have an audience :kaoswt2: and i don't want to go to the big crowdfinding sites cause i can't guarantee that i'll complete the project. It's just for fun but i still need some more tools. Anyone else in the same boat? :kaodes:

Forum statistics

Threads
118,700
Messages
1,118,016
Members
155,824
Latest member
nikoslam
Top