Howdy, Stranger!

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

I'm having trouble setting up an inventory in Harlowe.

Hello all,

First off I'll admit that I'm very very new to working with Twine. I started yesterday to be exact.
I'm already enjoying it immensely but I've run into a snag.

The following tutorial explains exactly what it is that I'm trying to achieve.

http://gersande.com/blog/designing-inventories-in-twine-2-with-the-built-in-harlowe-macros/

My only problem is that when I use the SET macro, nothing appears in the inventory. I know I'm probably missing a step somewhere and I'll admit that I know nothing about coding at all, but I'm trying to learn.

I apologise for posting the whole tutorial here. I'd try to explain it but I'm afraid I'd just botch the whole thing.

All I end up with is "You're inventory is empty." and nothing else no matter what I do :/

Thank you in advance I really appreciate it.

Comments

  • You posted this a couple of weeks ago, so I'm hoping you already figured it out, but if not, would you mind posting your code so I can take a look at it and see if I can help?
  • Did you try using this?
    (set: $variable to (a: "object1"," object2"))
    You have $variable in your inventory
    
    This displays a copy of what is inside your inventory
    You can also use this to add more items to the inventory
    (set: $variable to it + (a: "object 3"))
    You have $variable in your inventory
    
Sign In or Register to comment.