How do I check which character used the item that triggered a common event?
How do I check who used an item?
RPG Maker MZ Support$gameParty._targetActorId
Control Variables > Game Data > Last (Actor ID to Act).
Oh yeah, I forgot MZ added the last option for variable control. The script call works as well but you might want to use the variable method instead.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-check-who-used-an-item.137126/