The_Reaping
Member
- Reaction score
- 2
Okay. so i've tried to create a trigger that stacks items of the same type in the same slot.. But for some reason it doesn't seem to work :/ Here's the trigger at the moment.
The first time you buy either of those potions it gets deleted, and when you buy it again and then again they don't stack :/ Any ideas why?
Trigger:
- Potion Stacking
- Events
- Unit - A unit Sells an item (from shop)
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Item-type of (Sold Item)) Equal to Potion of Healing
- (Item-type of (Sold Item)) Equal to Potion of Mana
- Conditions
- Or - Any (Conditions) are true
- Actions
- For each (Integer B) from 1 to 6, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to (Item-type of (Sold Item))
- Then - Actions
- Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot (Integer B)) to ((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer B))) + (Charges remaining in (Item being manipulated)))
- Item - Remove (Item being manipulated)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer B) from 1 to 6, do (Actions)
- Events
The first time you buy either of those potions it gets deleted, and when you buy it again and then again they don't stack :/ Any ideas why?