Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

2 questions regarding the Inventory system [Sugarcube]

$
0
0
I am currently using this inventory system: https://twinery.org/wiki/twine2:add_an_inventory_system

1.) I was wondering how to add items to an inventory if you allow for multiples of the same item? As an example:

I have 1 potion in my inventory, and then pick up another potion. The inventory should now have 2 potions.

2.) Is there a way to make two separate inventories using the code in the link above? This is because I'd like to make a separate inventory for special items that won't count toward the maximum amount you can have in the inventory. I know I can make a standard array for the special items inventory, but I would also like to use the InvWithLinks macro that would set up a new passage for every special item listed, and I don't know how to do that on my own. /sheepish

I'm using the latest Twine 2 and Sugarcube 2 updates. Thank you!

Viewing all articles
Browse latest Browse all 1844

Trending Articles