- Joined
- Jun 10, 2013
- Messages
- 473
Hi all >
Hope your mothers had a good mother's day weekend. I'm trying to set up a system where if any player is human their townhall and peasants are replaced by my custom ones. Here's what i've got:
-
Free Peoples Race Setup
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set Group1 = (Units owned by (Picked player) of type Peasant)
-
Set Group2 = (Units owned by (Picked player) of type Town Hall)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Race of (Picked player)) Equal to Human
-
-
Then - Actions
-
Unit Group - Pick every unit in Group1 and do (Actions)
-
Loop - Actions
-
Unit - Replace (Picked unit) with a Worker - War Mode using The old unit's relative life and mana
-
-
-
Unit Group - Pick every unit in Group2 and do (Actions)
-
Loop - Actions
-
Unit - Replace (Picked unit) with a Stronghold Level 1 using The old unit's relative life and mana
-
-
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup (udg_Group1)
-
Custom script: call DestroyGroup (udg_Group2)
-
-