I've been scouring the threads and can't seem to find an answer for this.
It feels simple, and maybe I'm missing something obvious.
What I want to know is how to check for which Actor is currently casting the current skill (Any Skill).
Preferably, I'd like to know how to save an Actor ID who casts a skill to a variable.
Thanks!
that depends on when you want to check that, and which battlesystem (if not default) you're using.
The problem you're overloking is that "skill use" in itself can happen in several different context options, and if it is in battle then the timing is especially important. some solutions for example only work when the skills hit a target, not when it misses and so on.
So please tell us more as for what mechanic you want to use this info, and we will tell you if what you're planning is possible by default, with simple javascript code or only by a special plugin written exactly for this.
I believe you could do this in the damage formula:
$gameVariables.setValue(variableId, a._actorId); normal damage formula here
Replace variableId with the variable you want to set. Important to note is that Enemies don't have Actor IDs, so you will need more complex Javascript if you are trying to do this in a skill that can be used by Enemies.
I believe that should work, but if it doesn't, we may need to move your thread over to Learning Javascript to get you the right code line. Just @ me in your post so I can do it for you.