- Joined
- Dec 8, 2007
- Messages
- 86
I'm working on a trigger that will (when buying an item/ability in the shop) the one who bought it will get the ability...
" If - Conditions
(Level of Mend Wounds for (Hero manipulating item)) Equal to 0"
with?
-
Mend Wounds
-

Events
-


Unit - A unit Uses an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to Mend Wounds
-
-

Actions
-


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



If - Conditions
-




(Level of Mend Wounds for (Hero manipulating item)) Equal to 0
-
-



Then - Actions
-




Set GoldSpent[(Player number of (Owner of (Hero manipulating item)))] = (GoldSpent[(Player number of (Owner of (Hero manipulating item)))] + 400)
-




Unit - Add Mend Wounds to (Hero manipulating item)
-




Unit - Set level of Mend Wounds for (Hero manipulating item) to 1
-
-



Else - Actions
-




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





If - Conditions
-






(Level of Mend Wounds for (Hero manipulating item)) Less than 10
-
-





Then - Actions
-






Unit - Increase level of Mend Wounds for (Hero manipulating item)
-
-





Else - Actions
-






Game - Display to (Player group((Owner of (Hero manipulating item)))) for 4.00 seconds the text: You have already ma...
-






Player - Add 400 to (Owner of (Hero manipulating item)) Current gold
-
-
-
-
-
-
" If - Conditions
(Level of Mend Wounds for (Hero manipulating item)) Equal to 0"
with?









