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,255
Reaction score
7,632
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

Hey everyone! Not sure how many people know about Cafofo Music on Itch.io, but I highly recommend their Sound Effects! It is amazing quality AND quantity and best of all, they are having a 50% sale! I can't express how much I love sales.
Wow.... My last map GIF got 47 likes, 16 retweet and 2,105 views on Twitter in 24 hours. My game thread here's only got 3k views in 6-7 months. I guess building my Twitter was insanely worth it. :LZSexcite:
working hard working hard working hard >:)
Do you have an audio you want me to animate? If so send me the youtube link and I’ll animate it.
Okay, so I'm working on Draft 2 of my game's script.
Will try to keep you guys posted, if you're interested!

Forum statistics

Threads
105,593
Messages
1,014,860
Members
137,258
Latest member
WhimsicalFae
Top