• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Winning Trigger

Status
Not open for further replies.
Level 3
Joined
Jun 23, 2005
Messages
24
Mastif helped me make a winning trigger for my map. It works fine but i dont want people to still be able to play the game. Is there anyway to force them to exit or something?
 
Level 21
Joined
Jan 5, 2005
Messages
3,515
erm yes there is.... i dunno u use want this but heres how i would do it

Code:
Untitled Trigger 001
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Name of (Player((Integer A)))) Not equal to your name here
                    Then - Actions
                        Game - Defeat (Player((Integer A))) with the message: Defeat!
                    Else - Actions
                        Do nothing
 

Ralle

Owner
Level 77
Joined
Oct 6, 2004
Messages
10,101
I used something similar to that when I made the BETA system look:
Code:
BetaMode
    Events
        Time - Elapsed game time is 10.00 seconds
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Name of Player 1 (Red)) Equal to 40k_ralle89
                        (Name of Player 1 (Red)) Equal to Darkkeijp
                        (Name of Player 1 (Red)) Equal to 40k_Mastif
                        (Name of Player 1 (Red)) Equal to 40k_GST_Nemisis
            Then - Actions
            Else - Actions
                Player Group - Pick every player in (All players) and do (Game - Defeat (Picked player) with the message: This is a BETA)
 
Status
Not open for further replies.
Top