Is there a way to make a skill only appear on the learnable list if a certain weapon is equipped?

You are here:
< Back

Credit: Trihan

<Learn Show Eval>
possibleWeapons = [id1, id2, id3, id4 etc];
value = false;
possibleWeapons.forEach(function(weaponId) {
  if (user.equips().contains($dataWeapons[weaponId])) { 
    value = true;
</Learn Show Eval>

If it doesn’t work try this instead:

<Learn require eval>
Table of Contents