Check element

Hi, guys!

Is there a way to check the element of skills being used?

I want to make a state that stacks when water element skills are used.
You can use elementId i guess (Using yanfly Skill core, Element core and State and Buff Core). You can try something like:

Code:
var water = X;
if (this.item().damage.elementId === water) {
--- Insert code here ---
}

To stack states can do:

Code:
var water = WaterID;
if (this.item().damage.elementId === water) {
  var stateId = StateID;
  target.addState(stateId);
}

If by stacks you mean the turn count you can use:
Code:
target.addStateCounter(stateId, x);

Original thread: https://forums.rpgmakerweb.com/threads/check-element.93085/