- Joined
- Nov 14, 2004
- Messages
- 159
I'm trying to remove hero and barrack if they are not filled in from Map Initalization.
I'm still newb in this thing, what I have is here.
Then I test the map, every players units are still in there. I tried vary ways to do this, none of them work. Can any of you show the correct way to do this?
I'm still newb in this thing, what I have is here.
Code:
Map Init
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Set (Picked player) Current gold to 350
Player - Turn Gives bounty On for (Picked player)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) slot status) Equal to Is unused
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Remove (Picked unit) from the game)
Else - Actions
Do nothing
Then I test the map, every players units are still in there. I tried vary ways to do this, none of them work. Can any of you show the correct way to do this?