Chaosy
Tutorial Reviewer
- Joined
- Jun 9, 2011
- Messages
- 13,239
hey nagarulez I did test a few thing and I can't seem to find i perfect way to do this.
firstly I tried to detect when the gather ability is cast that did not work. after that I tested a loop trigger where I check unit current order but at that point I don't know how long it is between the gathering time. its around 6 seconds I think but im not sure.
anyway this is how you do it.
if you want me to apply it so it starts when the unit starts to gather let me know. But then it will be more advanced ( hashtables) and I will need one more trigger I belive
firstly I tried to detect when the gather ability is cast that did not work. after that I tested a loop trigger where I check unit current order but at that point I don't know how long it is between the gathering time. its around 6 seconds I think but im not sure.
anyway this is how you do it.
-
easy way
-
Events
-
Time - Every 6.00 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units of type Acolyte) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Current order of (Picked unit)) Equal to (Order(harvest))
-
-
Then - Actions
-
Player - Add 10 to (Owner of (Picked unit)) Current lumber
-
-
Else - Actions
-
-
-
-
-