- Joined
- Dec 29, 2009
- Messages
- 928
I looked in the tutorials section for help on how to make an item stacking system and I found this. https://www.hiveworkshop.com/forums...s-incredible-item-stacking-system-doom-20961/
I'm trying to get it to work with items bought from a shop. Here is what I have.
I thought this would work, but it doesn't do anything... The potion is bought, and a non-runic potion is added to the hero/placed on the ground however when you purchase another one, it doesn't add to the charges, instead it makes a completely new one, with one charge.
Is there something I'm doing wrong?
I'm trying to get it to work with items bought from a shop. Here is what I have.
-
ItemStack1
-

Events
-


Unit - A unit Sells an item (from shop)
-
-

Conditions
-


(Item-type of (Sold Item)) Equal to Lesser Healing Potion (R)
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Triggering unit) has an item of type Lesser Healing Potion) Equal to True
-
-



Then - Actions
-




Item - Set charges remaining in (Item carried by (Buying unit) of type Lesser Healing Potion) to ((Charges remaining in (Item carried by (Buying unit) of type Lesser Healing Potion)) + 1)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Triggering unit) has an item of type Lesser Healing Potion) Equal to False
-
-





Then - Actions
-






Hero - Create Lesser Healing Potion and give it to (Buying unit)
-
-





Else - Actions
-
-
-
-
-
I thought this would work, but it doesn't do anything... The potion is bought, and a non-runic potion is added to the hero/placed on the ground however when you purchase another one, it doesn't add to the charges, instead it makes a completely new one, with one charge.
Is there something I'm doing wrong?
Key(R) - "Runic Potion"







