As title says.
I wanted a skill that would only be usable while under "negative" states via YEP's Skill Core. A forum search shows how to make one while under a specific state, but I need a skill where it becomes usable while under any of the states listed as "negative" ones. Below is where I hit a dead end:
TIA
I wanted a skill that would only be usable while under "negative" states via YEP's Skill Core. A forum search shows how to make one while under a specific state, but I need a skill where it becomes usable while under any of the states listed as "negative" ones. Below is where I hit a dead end:
Code:
<Custom Requirement>
var debuffCheck = [];
debuffCheck.push(22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35);
for (var j = 0; j < debuffCheck.length; ++j) {
var id = debuffCheck[j]
if (!user.isStateAffected(id)) {
value = false;
}
}
</Custom Requirement>
TIA