Item triggering common event with its scope

Hi all,

I was trying to create an item that would have a random effect on the user, and so when the item is consumed it triggers a common event. The item itself is allowed to have a scope, e.g. The user, that it will effect. However within the common event I'm not sure how I would go about accessing this information.

RPGMakerMV_CommonEventImage.png


1681214919615.png
You can't. The common workaround is to use the item Effects to put a useless state on the target, then use event commands to check each party member for that targeting state, execute the rest of your stuff on that target, then remove the state again.
I would have this item also add a state. The person who used the item will have a state added like ‘temp state’.

Then your common event can check which actor is affected by this state. Apply the random item effect to that actor. And remove the state.
Thank you both for your replies,

I added it in and it worked perfectly! Thanks very much!

Original thread: https://forums.rpgmakerweb.com/threads/item-triggering-common-event-with-its-scope.156580/