It looks like you're new here. If you want to get involved, click one of these buttons!
::inventory (in a passage titled "inventory")
<<set $_i to 0>><ul><<inventory_>></ul>
::inventory_ (in a passage titled "inventory_")
<<if $_i lt $inventory.length>>\
<li><<print $inventory[$_i]>></li>\
<<set $_i to $_i + 1>><<inventory_>>
<<endif>>
Comments
::inventory means "in a passage titled 'inventory'". If you're compiling directly to twee rather than using the Twine application, that's how you designate a passage.
So if I was implementing this code in Twine, I would just enter these pieces of code in 2 separate passages as described
Yes.
When reading a twee file the :: indicates the start of a new passage, the word(s) after the :: is the Title of the passage. The line of text may end with one or more words between a set of open / close [] square brackets, these words indicate the passages' tags.
eg.