Hey y'all. Having an issue with the show/hide tags in Skills and States core. I need
<JS Skill Visible>
code
code
visible = code;
</JS Skill Visible>
to show a skill x once skill y is learned, but stop showing skill x once skill z is learned.
Any help is appreciated!
EDIT: Managed to get the code working. I used this:
<JS Skill Visible>
code
code
visible = code;
</JS Skill Visible>
to show a skill x once skill y is learned, but stop showing skill x once skill z is learned.
Any help is appreciated!
EDIT: Managed to get the code working. I used this:
<JS Skill Visible>
let x = 0
if (user.isLearnedSkill(SKILL ID A) && user.isLearnedSkill(SKILL ID B)) {
x = 3;
} else if (user.isLearnedSkill(SKILL ID A)) {
x = 2;
}
visible = x === 2;
</JS Skill Visible>