How to check what actor is using a skill in Action Sequences?

Okay so right now I'm trying to make a Magick Burst spell from Dragon Quest in my game. I already have the formula down as I did something similar for my Dragon Arts skills which drain all AP and does damage based on how much AP was expended. So it basically goes like ((base damage) * (current MP / max AP) = final damage). I do all of this using variables, which I set up in a common event that plays as part of an action sequence. However, Dragon Arts work so well because they are exclusive to one character, while Magick Burst can possibly be used by everyone. In the common event, it checks for the dragon arts character's max MP and current MP and goes from there. However, since Magick Burst can be learned by anyone, I will need a way to check for which actor is preforming this skill. I tried doing this with a variable which goes from 1-5 and was supposed to be based on who is currently using the attack from any of the 5 party members, but I got stuck when I realized I needed to way to check if an actor is currently using the skill. I know how to check if the actor KNOWS the skill, but not if they are currently PERFORMING the skill. I looked into the help file of all three Action Sequence plugins and couldn't find anything that would help me. What would probably help me has something to do with JavaScript but since I don't know any JavaScript I will need help on that front.

P.S. If you are wondering why I don't know JavaScript already when I ask so many things relating to it, that's because there are literally no JavaScript classes in my area and I can't learn it online because on the website they force you to use JavaScript to solve calculus in only lesson 4. It's all C++ and Python these days as all the zoomers want to get into AI so the robots destroy us faster or to make crappy mobile "apps" (more like casinos) to get rich quick and live the good life.
I think you are overthinking this. This can be done in the damage formula box. When you want to do damage based on a stat, such as:

a.mp

then 'a' refers to the user. So your formula would be:

(base DMG) * (a.mp / a.mmp) = final DMG

Of course, in your damage formula you wrote 'maxAP' and I assuming you meant maxMP. If you're using maxTP then you would replace a.mmp with 100 because default maxTP is 100.
I'm still not entirely sure what you're trying to do, but you can store the actor ID of whoever uses a skill/item into a variable by adding this line to an action sequence:

Code:
eval: $gameVariables.setValue(35, this._subject.isActor() ? this._subject.actorId() : 0);

So then, you could make an action sequence like this

Code:
<Target Action>
</Target Action>
<Whole Action>
perform action
eval: $gameVariables.setValue(35, this._subject.isActor() ? this._subject.actorId() : 0);
if ($gameVariables.value(35) === 1)
  animation 5: targets
else if ($gameVariables.value(35) === 2)
  animation 6: targets
else
  action animation: targets
end
wait for animation
action effect: targets
death break
perform finish
</Whole Action>

So if Harold uses it, animation 5 is performed instead of the normal animation. If Therese uses it, animation 6 is used instead. If anyone else uses it, the skill's default animation is used.

PS: You don't need a class to learn javascript. I didn't actually know anything about it (or its sibling, AS3) until I decided to sit down and learn them. This might be a good starting point: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-what-actor-is-using-a-skill-in-action-sequences.122867/