Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Inventory not working

Twine version 2.1.3 / Sugarcube 2.18.0

Hey all,
I'm trying to get an inventory to work. ANY inventory and all of the ones I've attempted, fail.

Currently trying the:
System as it seems the simplest.

I have:

macros.initInv = {
handler: function(place, macroName, params, parser) { = [];


Inventory (passage):
Usage: <<inv>>
macros.inv = {
handler: function(place, macroName, params, parser) {
if ( == 0) {
new Wikifier(place, 'nothing');
} else {
new Wikifier(place,','));


And when I start the game, I get an error:
Error [StoryInit]: macro <<initInv>> does not exist.

I'm new to coding. VERY and don't understand the nuances of where to put macros. I've read a bunch (I think) on inventories and can't seem to get it to work.

Any advice is appreciated.



Sign In or Register to comment.