Okay, so. I have a consumable item which calls a common event upon use. I want this item to to have different effects depending upon who it's used on. Is there ANY possible way to do this? I feel like there should be some kind of script call that can tell me what actor the item was used on...But I don't have the foggiest idea what it might be.
Item with different effects depending on user?
RPG Maker MZ SupportIn your event you can use the option under Control Variables > Game Data > Last to get the most recent target actor ID, then check that using a Conditional Branch, e.g.
Code:
◆Control Variables:#0010 actor ID = Last Target Actor ID
◆If:actor ID = 1
◆Text:None, None, Window, Bottom
: :Target was actor 1.
◆
:End
◆If:actor ID = 2
◆Text:None, None, Window, Bottom
: :Target was actor 2.
◆
:End
◆Comment:etc
Good lord, I feel like such an idiot for not realizing it was Right There. Thanks very much for the assist.
Original thread: https://forums.rpgmakerweb.com/threads/item-with-different-effects-depending-on-user.135422/