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

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
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
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

Original thread: https://forums.rpgmakerweb.com/threads/use-item-on-an-ally-common-event-how-to-target-the-ally.77146/