Skill User Actor ID

I have been trying a lot of different ways that I've seen posted in the past but. I'm trying to pull the Actor ID of the skill user. I've tried using the damage formula, i've tried using a.id, BattleManager.actor.id, User.actorID, User.ID

Are there any other suggestions I could try?
Control Variables > Game Data > Last | Last Actor ID to Attack
It would help us help you if you explained where you're trying to do this.

As coyote points out, there's an event command to obtain that. If the timing of where you need the information doesn't work for running an event, then the method you're looking for is userId()

If that's in the damage formula, then a.userId() will work, so long as no enemies use that skill.

If it's someplace else, then it depends on the plugin you're using to execute the code.

I have been trying a lot of different ways that I've seen posted in the past but.
I can't speak to what you looked at, but when I Google "rpg maker mz script call user id" the top results are several threads here with the correct answer.

It also produces the MZ Script Call list, which will have the correct syntax as well.

Good luck!
It would help us help you if you explained where you're trying to do this.

As coyote points out, there's an event command to obtain that. If the timing of where you need the information doesn't work for running an event, then the method you're looking for is userId()

If that's in the damage formula, then a.userId() will work, so long as no enemies use that skill.

If it's someplace else, then it depends on the plugin you're using to execute the code.


I can't speak to what you looked at, but when I Google "rpg maker mz script call user id" the top results are several threads here with the correct answer.

It also produces the MZ Script Call list, which will have the correct syntax as well.

Good luck!
Sorry about that. Basically I am using the set variable to script, and trying the script there. I tried doing it in the damage field, but from what I had been seeing, if I put it there and the attack misses it doesn't run the code. I'm currently going through the RPGMaker MZ Script calls you had sent. Hopefully I can get it to work.
It would help us help you if you explained where you're trying to do this.

As coyote points out, there's an event command to obtain that. If the timing of where you need the information doesn't work for running an event, then the method you're looking for is userId()

If that's in the damage formula, then a.userId() will work, so long as no enemies use that skill.

If it's someplace else, then it depends on the plugin you're using to execute the code.


I can't speak to what you looked at, but when I Google "rpg maker mz script call user id" the top results are several threads here with the correct answer.

It also produces the MZ Script Call list, which will have the correct syntax as well.

Good luck!
That link had the solution for me, thank you so much!
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!
@AlyssSable101 please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/skill-user-actor-id.159555/