I'm trying to make a skill that only shows up when 3 specific states are on the user. I've using Yanfly's states plugin and have used a bit of code, which works if the user has 1 state on. I've tried changing it about and i'm not having one luck.
Code:
<Custom Show Eval>
if (user.isStateAffected(86)) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>That's the code im using if the user has one state on, the skill appears. Is there anyway to amend it to only appear if 3 states are on?
Thanks