I'm trying to restrict skills based on a state, using this formula
That formula (with Custom Equip Requirement Condition) works with Yanfly Equip Core restrictions, and the way the custom skill requirements look in the help for Skill Core it appears to me that it should function there too. But for some reason, it isn't working.
Has anyone else come up against this issue, or know what might be going on?
Code:
<Custom Requirement>
if (user.isStateAffected(36)) {
condition = false;
} else {
condition = true;
}
</Custom Requirement>
That formula (with Custom Equip Requirement Condition) works with Yanfly Equip Core restrictions, and the way the custom skill requirements look in the help for Skill Core it appears to me that it should function there too. But for some reason, it isn't working.
Has anyone else come up against this issue, or know what might be going on?