Use item on an ally > Common Event > how to target the ally ?

Antera

Villager
Member
Joined
Jan 15, 2017
Messages
38
Reaction score
5
First Language
EN & FR
Primarily Uses
Hello,

I created a simple item :
- Scope : 1 ally (let's call this ally "BOBBY"), occasion : Menu screen, Effect : calls a common event

The common event :
- Choose :
1. Learn Skill ABC
or
2. Increase HP

In this common event, how do I target BOBBY to make him learn the skill or increase his HP ?

Thanks for your help
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
in the item, have it apply a new (and invisible) state "target" to the targeted ally.
In the common event, make one conditional branch for each actor, checking for 'Actor has state <target> applied'

If the actor has the state, make the effect and remove the state
 

Antera

Villager
Member
Joined
Jan 15, 2017
Messages
38
Reaction score
5
First Language
EN & FR
Primarily Uses
in the item, have it apply a new (and invisible) state "target" to the targeted ally.
In the common event, make one conditional branch for each actor, checking for 'Actor has state <target> applied'

If the actor has the state, make the effect and remove the state
This is very smart and efficient ! Thanks for this solution
Problem will be I have 20 allies, summons etc. :-(

PS : I can do Javascript easy on the Web but never did in RMMV yet
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,231
Members
137,607
Latest member
Maddo
Top