User Tools

Site Tools


twine2:add_an_inventory_system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
twine2:add_an_inventory_system [2017/02/10 21:06]
ateyourlembas
twine2:add_an_inventory_system [2017/10/09 20:39] (current)
Line 18: Line 18:
 // 2. In a passage, check if there'​s an item in the inventory.. // 2. In a passage, check if there'​s an item in the inventory..
 // ...if so, give the user a choice to progress to a new passage: // ...if so, give the user a choice to progress to a new passage:
-// <<if $inventory.indexOf("​The Golden Key"​) ​== -1>>​[[Unlock the door.]]<<​endif>>​+// <<if $inventory.indexOf("​The Golden Key"​) ​!= -1>>​[[Unlock the door.]]<<​endif>>​
 // //
 // 3. To add an "​Inventory"​ link in your sidebar menu, create a passage named "​StoryMenu"​. // 3. To add an "​Inventory"​ link in your sidebar menu, create a passage named "​StoryMenu"​.
twine2/add_an_inventory_system.txt ยท Last modified: 2017/10/09 20:39 (external edit)