- Joined
- Jun 2, 2009
- Messages
- 1,233
my map based on melee game but only player slots chooses hero and fights but players must be defeated when his ally (computers) buildings is destroyed (teams is not fixed with forces)
This trigger is for the Computer and works well
but for the players not works
here is the trigger
This trigger is for the Computer and works well
-
Untitled Trigger 001 Copy
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to Computer) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units owned by (Picked player) matching ((((Matching unit) is A structure) Equal to True) and (((Matching unit) is alive) Equal to True)))) Equal to 0
-
-
Then - Actions
-
Game - Defeat (Picked player) with the message: Defeat!
-
-
Else - Actions
-
-
-
-
-
but for the players not works
here is the trigger
-
Untitled Trigger 001 Copy Copy
-
Events
-
Time - Every 5.00 seconds of game time
-
-
Conditions
-
Actions
-
Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of players in (All allies of (Picked player))) Equal to 0
-
-
Then - Actions
-
Game - Defeat (Picked player) with the message: Defeat!
-
-
Else - Actions
-
-
-
-
-