• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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 79
Joined
Oct 6, 2004
Messages
10,182
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