So, here's what I'm getting at. I want players to be able to stack potions, but I dont want the stack to exceed 10 charges. Here's how I'm doing.
-
LesserHealingPotion
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to [|cff7777aaLvl 1|r] Lesser Healing Potion
-
-

Actions
-


For each (Integer A) from 1 to 6, do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






Or - Any (Conditions) are true
-







Conditions
-








(Charges remaining in (Item carried by (Triggering unit) in slot (Integer A))) Equal to 10
-
-
-
-





Then - Actions
-






Do nothing
-
-





Else - 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 (Item being manipulated))
-








(Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
-
-







Then - Actions
-








Item - Set charges remaining in (Item carried by (Triggering unit) in slot (Integer A)) to ((Charges remaining in (Item carried by (Triggering unit) in slot (Integer A))) + (Charges remaining in (Item being manipulated)))
-








Item - Remove (Item being manipulated)
-
-







Else - Actions
-
-
-
-
-
-
-




