thank you for making this for people who can't do it themselves :) just tried 2 of them for now and it's good :) is it similar to make a skill to check enemies weakness,?
Viewing post in (FREE) MZ Action Sequences - The Basics comments
Thanks for the comment! Elemental weakness is a little tricky. Here's a different solution (thanks to Moogle Rampage:
if you're using VS Status core, can I suggest: Create Element Traits instead of assigning weaknesses directly to enemies. Each Element Trait has Passive State X You can then check for the Passive State and return the applicable weaknesses when present.
Checking for states is not hard: Use a conditional and do if script:
BattleManager._target.states().includes($dataStates[State#])
Another solution (quite complicated but thanks to Nate the Bard is the following:
for (index =0; index<target.traits.length; index++){ if (target.traits[index].code == 11 && target.traits[index].dataId == (id of the element in database) && target.traits[index].value > 1) { do stuff, like call another common event, or flip a switch to trigger other effects}}