MV YEP-Weapon Unleash Switch Statement

Hello all!

I've search though here for a bit and haven't found anyone with my exact problem. I'm using Yanfly's Weapons Unleashed plugin and it's amazing for what I need it for, but I can't find a way to check for a specific actor using the Lunatic Mode. I'm awful at JavaScript.

Every character can equip an orb that acts as their weapon. For some it works like daggers, for others it's an axe. I have a powered up state while the character has enough MP, where their basic attack is replaced by a stronger version. Is it possible to use a switch case statement to check which actor is equipped with the orb before it grants the unique move? I want to avoid having to make over 2000 weapons if I can just have one work for all characters. I'm thinking something like:

JavaScript:
<Custom Replace Attack>
if (user.mp > 2) {
  switch(I don't know what goes here) {
    case actor.actorId = 1:
      id = 11;
      break;
    case actor.actorId = 2:
      id = 12;
      break;
   case actor.actorId = 3:
      id = 3;
      break;
    default:
      id = 0;
  }
} else {
  id = 0;
}
</Custom Replace Attack>

If anyone has any insight it would be greatly appreciated.
JavaScript:
if (user.mp > 2) {
  switch(user.actorId()) {
    case 1:
      id = 11;
      break;
    case 2:
      id = 12;
      break;
   case 3:
      id = 3;
      break;
    default:
      id = 0;
  }
} else {
  id = 0;
}
</Custom Replace Attack>

Now I dont know if actor.actorId is a thing as well and the string number "3"
can maybe also be just 3, but no idea though.

this is just a guess, but it might work.

Edit:
code modified by ATT_Turans suggestion for you
Now I dont know if actor.actorId is a thing as well
It isn't.

If anyone has any insight it would be greatly appreciated.
Your switch would be evaluating user.actorId()

You had it right at the top, looking at user for the mp, I don't know why your brain skipped tracks to actor 😉

Then your cases all use the wrong syntax. case only provides the expected/possible value of the switch evaluation.

So you would do:
Code:
case 1:
    id = 11;
    break;
case 2:
    id = 12;
    break;
etc.
Thank you both! I figured out a janky way to do it with a big long if statement, but this will be much cleaner. I appreciate the help!

Original thread: https://forums.rpgmakerweb.com/threads/yep-weapon-unleash-switch-statement.166938/