Trigger
Healing Salve Carried
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Healing Salve
Actions
Set Unit = (Triggering unit)
Set Item[1] = (Item being manipulated)
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set Item[2] = (Item carried by Unit in slot (Integer A))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item[2] Not equal to Item[1]) and ((Item-type of Item[2]) Equal to Healing Salve)
Then - Actions
Set Item[3] = Item[2]
Else - Actions
Custom script: if udg_Item[3] != null then
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in Item[3]) Equal to 0
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in Item[1]) Equal to 0
Then - Actions
Item - Set charges remaining in Item[3] to 2
Else - Actions
Item - Set charges remaining in Item[3] to (1 + (Charges remaining in Item[1]))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in Item[1]) Equal to 0
Then - Actions
Item - Set charges remaining in Item[3] to ((Charges remaining in Item[3]) + 1)
Else - Actions
Item - Set charges remaining in Item[3] to ((Charges remaining in Item[3]) + (Charges remaining in Item[1]))
Hero - Drop Item[1] from Unit
Item - Remove Item[1]
Custom script: set udg_Item[3] = null
Custom script: endif