- Joined
- Jul 14, 2011
- Messages
- 3,213
-
Untitled Trigger 001
-

Events
-

Conditions
-

Actions
-


Custom script: set bj_wantDestroyGroup = true
-


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



If - Conditions
-




(Number of units in (Units in WoodsEasy <gen> matching (((Unit-type of (Matching unit)) Equal to Bear (Black Spider)) or ((Unit-type of (Matching unit)) Equal to Wolf)))) Greater than 2
-




Or - Any (Conditions) are true
-





Conditions
-






(Unit-type of A) Equal to Bear (Black Spider)
-






(Unit-type of A) Equal to Wolf
-
-
-
-



Then - Actions
-




Unit - Change ownership of A to Neutral Passive and Change color
-




Unit - Replace A with a WoodCreeps[(Random integer number between 1 and 6)] using The new unit's default life and mana
-




Game - Display to (All players) the text: Unit Replaced! <- Debug Msg
-
-



Else - Actions
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-

If - Conditions
-


(Number of units in (Units in WoodsEasy <gen> matching (((Unit-type of (Matching unit)) Equal to Bear (Black Spider)) or ((Unit-type of (Matching unit)) Equal to Wolf)))) Greater than 2
-
-
What am I doing? It's a wood region which has neutral creeps (which turn hostile when hit) and hostile creeps (which are aggresive), but I just want to have 2 aggresive creeps at the same time (Wolves and Bears), so, if the unit created is a bear/wolf and there's already 2 wolf or bears (or both) in the region, change the unit for a passive one.












