Question About Item Common Event

So I'm wanting an item to have a different effect depending on which character is using it. I know I'll need to have the item call a common event and have conditionals for each character, I'm just not certain what I need to enter into the script to check the item's user.

For context, I've tried "if $subject = $gameActors.actor(1);" but that didn't seem to work since the test I had in the else branch didn't happen when actor 2 used the item (a message that said "It worked", instead it still triggered the first branch's effect).

Any help is appreciated, thank you! 👋
Easiest ways to go about it imo would be to use a plugin to add notetags to skills during execution to do the effects, or to add one to log the id of the last actor who acted into a variable and use that in the common event. However, your profile says you use MV and this is the MZ section.

MZ can do the latter as a native feature, but MV needs a plugin to do it. the dlc folder contains one to do it. You could use an invisible state as your way to see what actor used the item on MV, but without your item being self scope or dealing damage, i cant think of another way to apply it to the user without a plugin. For the first approach though, youd be ale to use yanfly's skill core for MV, or either visustella battle core or Turan's Eval tags for MZ
Easiest ways to go about it imo would be to use a plugin to add notetags to skills during execution to do the effects, or to add one to log the id of the last actor who acted into a variable and use that in the common event. However, your profile says you use MV and this is the MZ section.

MZ can do the latter as a native feature, but MV needs a plugin to do it. the dlc folder contains one to do it. You could use an invisible state as your way to see what actor used the item on MV, but without your item being self scope or dealing damage, i cant think of another way to apply it to the user without a plugin. For the first approach though, youd be ale to use yanfly's skill core for MV, or either visustella battle core or Turan's Eval tags
Sorry, I thought I had updated my profile to MZ. Fixed.

Logging the ID of the last actor in a variable would probably be the easiest way to achieve it. Would I need to do that in a script command before the conditional branch, or when you say native feature is that a command I’ve overlooked in the comment event editor?
or when you say native feature is that a command I’ve overlooked in the comment event editor?
MZ has a feature over MV where you can assign the last actor to act's ID to a variable. you'd just assign it at the start of your common event and run your conditions from there
1719549166959.png
is that a command I’ve overlooked in the comment event editor?
The screenshot above is the game data section of control variable, the one that defaults to "map ID" but has literally hundreds of other options.
MZ has a feature over MV where you can assign the last actor to act's ID to a variable. you'd just assign it at the start of your common event and run your conditions from there
View attachment 309755
Awe sick! Okay thank you! That makes this way easier

Original thread: https://forums.rpgmakerweb.com/threads/question-about-item-common-event.169856/