HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need some help(gui)

09-23-2007, 12:30 PM#1
Steelgob
I made a countdowntimer that turn of revive trigger, but i need a trigger that make team with living units(hunter's here) win.. Tried to do:
Trigger:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Number of living Hunter units owned by (Random player from Player Group - Player 1 (Red))) Greater than or equal to 1
(Number of living Hunter units owned by (Random player from Player Group - Player 7 (Green))) Equal to 0
Collapse Then - Actions
Game - Display to (All players) the text: Team one has won th...
Collapse Else - Actions
Do nothing
even i can see that is wrong but.. found no other way >.<
09-23-2007, 05:27 PM#2
Pyrogasm
Change it to the following:
Trigger:
Set Team1Group = (Units in Playable Map Area matching ((Unit-type of (Matching unit) equal to Hunter) and (((Owner of (Matching Unit)) is an ally of Player 1 (Red)) equal to true)))
Set Team2Group = (Units in Playable Map Area matching ((Unit-type of (Matching unit) equal to Hunter) and (((Owner of (Matching Unit)) is an ally of Player 7 (Green)) equal to true)))
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Number of units in Team1Group) Greater than or equal to 1
(Number of units in Team2Group) Equal to 0
Collapse Then - Actions
Game - Display to (All players) the text: Team one has won th...
Else - Actions
Custom script: call DestroyGroup(udg_Team1Group)
Custom script: call DestroyGroup(udg_Team2Group)