Hey guys i am back and i have a question for you
Why in this trigger the gold doesnt work? Everything works properly here but the add gold only doesnt,this trigger allows the hero to not to carry more than 1 item of same item.
Also i tried with item being manipulated but still nothing, i dont get the gold back of the item price
Why in this trigger the gold doesnt work? Everything works properly here but the add gold only doesnt,this trigger allows the hero to not to carry more than 1 item of same item.
Trigger:
- Item Carry
- Events
- Unit - A unit Acquires an item
- Conditions
- Actions
- Set Integer = 0
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Multiple FunctionsIf (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))
- Then - Actions
- Set Integer = (Integer + 1)
- Else - Actions
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Integer Greater than or equal to (>=) 2
- Then - Actions
- Hero - Drop (Item being manipulated) from (Triggering unit)
- Player - Add (Custom value of (Last dropped item)) to (Owner of (Triggering unit)) Current gold
- Item - Remove (Last dropped item)
- Game - Display to (All players) for 3.00 seconds the text: You can't buy this ...
- Else - Actions
- If - Conditions
- Do Multiple ActionsFor each (Integer A) from 1 to 6, do (Actions)
- Set Integer = 0
- Events
Also i tried with item being manipulated but still nothing, i dont get the gold back of the item price
Player - Add (Custom value of (Last dropped item)) to (Owner of (Triggering unit)) Current gold