- Joined
- Dec 29, 2008
- Messages
- 3,361
So, I made a trigger that replaces the shade into a militia. My problem is, when the user is out of resources, it still trains. Fix the trigger plox.
also, if someone had sparetime, can someone make me a.....
use farm as dummy unit
every 20 seconds, peasant will spawn in the farm
and when town hall is built, it will be reduced into 15 seconds
-
peasant to militia
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Barracks
-
(Unit-type of (Trained unit)) Equal to Shade
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Triggering unit)) Current gold) Less than 30
-
((Owner of (Triggering unit)) Current lumber) Less than 30
-
-
Then - Actions
-
Unit - Order (Triggering unit) to Stop
-
Unit - Replace (Trained unit) with a Peasant using The new unit's default life and mana
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: We don't have enoug...
-
-
Else - Actions
-
Player - Add -30 to (Owner of (Triggering unit)) Current gold
-
Player - Add -30 to (Owner of (Triggering unit)) Current lumber
-
Unit - Replace (Trained unit) with a Militia using The new unit's default life and mana
-
-
-
-
also, if someone had sparetime, can someone make me a.....
use farm as dummy unit
every 20 seconds, peasant will spawn in the farm
and when town hall is built, it will be reduced into 15 seconds
Last edited: