I'm having trouble checking which character has used a skill. I have this mechanic called "weapon crash", which will break a weapon if that weapon's unique skill is used. The process for this involves unequipping the character's weapon, then removing that item from the available equipment after that skill is used. Unfortunately, I've ran into the problem that if two party members have the same weapon equipped, the process can't distinguish which party member has used the skill and therefore won't know whose weapon to destroy. I have racked my brain and can't figure out how to implement this mechanic. Sorry if I haven't explained the problem clearly enough, please let me know if there's something I can elaborate on.
Checking which character used skill
RPG Maker MZ SupportYour profile says MV but the section is MZ. The suggestion changes a little depending on which youre using, but you can use a plugin like yanfly's skill core, action sequences or their visustella counterparts for MZ. they provide a direct reference to the use user as theyre acting, so itll be easy to unequip them automatically when they use the skill with the script call for it.
If you are using MZ, it also should be possible write the user's id into a variable and then use script within the common event to unequip them there too.
If you are using MZ, it also should be possible write the user's id into a variable and then use script within the common event to unequip them there too.
Welcome to the forum!
If you are really using MZ, have you explored using the Game Data (Under Control Variables)? There is an option for Last Actor ID to Act as shown in this screenshot. Once you have that ID, you can use it as @Robro33 was referencing.

If you are really using MZ, have you explored using the Game Data (Under Control Variables)? There is an option for Last Actor ID to Act as shown in this screenshot. Once you have that ID, you can use it as @Robro33 was referencing.

Original thread: https://forums.rpgmakerweb.com/threads/checking-which-character-used-skill.174550/