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:
If anyone has any insight it would be greatly appreciated.
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.