Warcraft III resources & community, 2003–2006 · archived

HELP CTF winning trigger

4 posts
#1

HELP CTF winning trigger

On my ctf map when a team gets 3 points from taking the flag back to there flag. the team wins the game but how do i make a trigger to end game with a winner when a team gets 3 points?????? :?
#2
Event:
Every 1 Second

Condition:
<none>

Action:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Team1Score Equal to 3
Then - Actions
Game - Victory Player X (Red) (Show dialogs, Show scores)
Else - Actions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Team2Score Equal to 3
Then - Actions
Game - Victory Player Y (Red) (Show dialogs, Show scores)
Else - Actions
#3
ummmm with the condition what type is it boolean comparison or integer or what?
#4
dont do that kind of trigger, it'll make it lag a bit more. Instead try running the victory trigger every time they score a point.

EX:
Events:Unit enters region
Conditions
Entering unit has (flag) equal to true.
Actions
Set team 1 points = team 1 points + 1
Run Victory Trigger

(this condition is boolean, but you select unit has item under it).

(Victory Trigger)
Events
(none)
Conditions
None
Action:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Team1Score Equal to 3
Then - Actions
Game - Victory Player X (Red) (Show dialogs, Show scores)
Else - Actions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Team2Score Equal to 3
Then - Actions
Game - Victory Player Y (Red) (Show dialogs, Show scores)
Else - Actions