Jump to content

Kirstend

Member
  • Content count

    1
  • Joined

  • Last visited

  1. Hello, Can anyone who knows javascript help me? I'm new to javascript and am probably doing this wrong. I am trying to figure out how I can display the keyItem inventory menu ONLY when one or more keyItem's are in the inventory. Otherwise, I want only the regular inventory to show. I tried this: if($gameVariables.value(20 ≥ 1)){ this.addCommand(TextManager.keyItem, 'keyItem'); }; but it didn't work. Perhaps I cannot use $gameVariables on RPG_windows.js ? I inserted it at line 1893, and commented this out from line 1892 this.addCommand(TextManager.keyItem, 'keyItem'); }; If anyone can help I would appreciate it so much! Thank you :)
×