Changing the element of a skill based on the actor using it.

Okay, I am looking to have a skill similar to Oricorio's Revelation Dance, where the typing of the move depends on the Oricorio form using it. I tried this, but it didn't work.

<JS Pre-Damage>

// If actor ID 1 uses this, change element to 2 (Fire)

if (user.actorId() === 1) {

this.setElement(11);

}

// If actor ID 2 uses this, change element to 3 (Ice)

else if (user.actorId() === 8) {

this.setElement(2);

}

</JS Pre-Damage>
this.setElement(11);
unless you have a plugin thats meant to add that, that isnt a function.

I am looking to have a skill similar to Oricorio's Revelation Dance
If its actor based, then why not have them be different skills and just give each actor their own? It'd be easy and doesnt require any plugins.

if you have yanfly's element core and battle engine core, you can use the action sequence commands provided by the former to make the skill pick an element based on the user. Additionally, this would be one of the times where changing the $dataSkills' entry's element would work out if you set it before every use like with a <custom execution> notetag from the skill core. Im not too sure if <Pre-Damage Eval>s are ran before the damage calculation or just before damage execution
Makes sense. And the skill is granted by a shared weapon. I do have both plugins btw. I shouldn't have trusted Google AI.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-element-of-a-skill-based-on-the-actor-using-it.182807/