MZ How to check which actor uses Attack action?

Hello everyone.

I've tried googling and looking through other forums and can't seem to get an answer to my question.

I am looking to see if there is a way to check if a specific actor uses the Attack Action in battle. I had an idea to try and use conditional branches in my Common Event set inside my Attack Action to make it so that the Attack Action functions a little bit differently for each character.

I tried flipping through the conditional branches and it looks like there's only a way to check if a character has a skill, but not if its currently being used.


If it helps, I am using Visustella's plugins as well.
a way to check if a character has a skill, but not if its currently being used. If it helps, I am using Visustella's plugins as well.
You can with VS notetags, but...

make it so that the Attack Action functions a little bit differently for each character.
what are you trying to do when you say that? cause depending on what that is, it might be better to make the attack skills separate skills per actor
Another option: MZ has Control Variables -> Game Data -> Last -> Subject Actor ID. You could use that to store the actor ID in a variable, then check that variable in your event.
You can with VS notetags, but...


what are you trying to do when you say that? cause depending on what that is, it might be better to make the attack skills separate skills per actor
I am trying use timed button inputs with Visustella's QTE triggers. I am looking to make the Attack action do different QTE triggers based on which Actor is using it.

Another option: MZ has Control Variables -> Game Data -> Last -> Subject Actor ID. You could use that to store the actor ID in a variable, then check that variable in your event.
I think I might be missing something here. Would you be willing to go a bit more in depth on how that variable works for me, and how we can use it?
I think I might be missing something here. Would you be willing to go a bit more in depth on how that variable works for me, and how we can use it?
once you use the command to set the variable to the id of the last actor to act, you can make conditional branches based on its value.
so if you use actors 1-4 for your game, youd have 4 if statements where one checks for 1, the next checks for 2, etc.
once you have all 4 branches, you'd use whatever command youd need to use for each actor in each of branches
once you use the command to set the variable to the id of the last actor to act, you can make conditional branches based on its value.
so if you use actors 1-4 for your game, youd have 4 if statements where one checks for 1, the next checks for 2, etc.
once you have all 4 branches, you'd use whatever command youd need to use for each actor in each of branches
Awesome! This is working out perfectly, and doing exactly what I am looking for. Thank you very much!
The wording on the variable confused me a bit and made me think it was checking the actor ID in a different way (Previous turn vs. most recent actor to input the data).

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-which-actor-uses-attack-action.178138/