1. Are you planning to upload your awesome map to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  5. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  6. The Secrets of Warcraft 3 have revealed interesting works. The RESULTS for Abelhawk's Mini-Mapping Contest #15 have come out!
    Dismiss Notice
  7. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  8. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  9. Night Rider gained several songs for his journey. The poll for the 12th Music Contest has started. Check it out!
    Dismiss Notice
  10. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  11. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Trigger Viewer

Wendigo Horror1.3.w3x
Variables
Init
Initialization
---------------------------
Show Difficulty Dialog
---------------------------
Choosing Difficulty
Missions
Run Missions
Multiboard
Create Multiboard
Player Leaves
Triggers
Scary Random Sounds
---------------------------
Survivor Death
Survivor Death Effect
---------------------------
Last Survivor Alert
---------------------------
Wendigo Bot Seek a target
Human Bot Run Away
---------------------------
Ghost Revive
Escape
EDIT HERE THE RESCUE TIME
Survive Timer Starts
Survive Timer Expires
---------------------------
Survive or Rescue Player
Winners and Losers
Why are you looking here?
function GetHost takes nothing returns nothing
    local gamecache g = InitGameCache("Map.w3v")
    call StoreInteger ( g, "Map", "Host", GetPlayerId(GetLocalPlayer ())+1)
    call TriggerSyncStart ()
    call SyncStoredInteger ( g, "Map", "Host" )
    call TriggerSyncReady ()
    set udg_Host = Player( GetStoredInteger ( g, "Map", "Host" )-1)
    call FlushGameCache( g )
    set g = null
endfunction
Name Type Is Array Initial Value
DiffDialog dialog No
DiffDialogButton button Yes
Difficulty integer No
Enemy player No
Host player No
LastSurvivor player No
Losers force No
Multiboard multiboard No
Multiboard_DeadColor string No
Multiboard_LeaveColor string No
Multiboard_List integer No
Multiboard_PlayerColors string Yes
Multiboard_PlayersAlive integer No
Multiboard_PlayerSpots integer Yes
Multiboard_WendigoKills integer Yes
Multiboard_WendigosAlive integer No
RescuePlane unit No
RescueZone rect Yes
ScarySounds sound Yes
SurviveTimer timer No
SurviveTimer_Window timerdialog No
Survivors force No
SurvivorsAlive group No
TempInteger integer No
TempLocation location No
TempPlayer player No
TempPlayer2 player No
TempUnit unit No
UnitType unitcode Yes
Wendigos force No
Winners force No
Initialization
  Events
    Map initialization
  Conditions
  Actions
    -------- Variables --------
    Set UnitType[1] = Survivor
    Set UnitType[2] = Wendigo
    Set UnitType[3] = Ghost
    Set ScarySounds[1] = ScarySound1 <gen>
    Set ScarySounds[2] = ScarySound2 <gen>
    Set ScarySounds[3] = ScarySound3 <gen>
    Set ScarySounds[4] = ScarySound4 <gen>
    Set ScarySounds[5] = ScarySound5 <gen>
    Set ScarySounds[6] = ScarySound6 <gen>
    -------- - --------
    Set RescueZone[1] = RescueZone1 <gen>
    Set RescueZone[2] = RescueZone2 <gen>
    Set RescueZone[3] = RescueZone3 <gen>
    Set RescueZone[4] = RescueZone4 <gen>
    Set RescueZone[5] = RescueZone5 <gen>
    -------- Volume --------
    Sound - Stop music Immediately
    Sound - Set volume of ScarySound1 <gen> to 75.00%
    Sound - Set volume of ScarySound2 <gen> to 75.00%
    Sound - Set volume of ScarySound3 <gen> to 75.00%
    Sound - Set volume of ScarySound4 <gen> to 75.00%
    Sound - Set volume of ScarySound5 <gen> to 75.00%
    Sound - Set volume of ScarySound6 <gen> to 75.00%
    Sound - Set volume of Introduction <gen> to 100.00%
    Sound - Set Music to 100%
    Game - Set the time of day to 22.00
    Game - Set time of day speed to 15.00% of the default speed
    -------- Precaching these guys --------
    Unit - Create 1 UnitType[1] for Neutral Passive at (Center of (Playable map area)) facing 270.00 degrees
    Unit - Remove (Last created unit) from the game
    Unit - Create 1 UnitType[2] for Neutral Passive at (Center of (Playable map area)) facing 270.00 degrees
    Unit - Remove (Last created unit) from the game
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        Trigger - Add to Player_Leaves <gen> the event ((Player((Integer A))) leaves the game)
    Environment - Create at (Playable map area) the weather effect Dungeon White Fog (Heavy)
    Trigger - Run Run_Missions <gen> (checking conditions)
Show Difficulty Dialog
  Events
    Time - Elapsed game time is 0.00 seconds
  Conditions
  Actions
    -------- Check if there are atleast one Wendigo playing --------
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Or - Any (Conditions) are true
          Conditions
            (Player 11 (Dark Green) slot status) Equal to Is playing
            (Player 12 (Brown) slot status) Equal to Is playing
      Then - Actions
        -------- Do nothing --------
      Else - Actions
        Player Group - Pick every player in (All players) and do (Actions)
          Loop - Actions
            Game - Defeat (Picked player) with the message: NO WENDIGOS!
        Skip remaining actions
    -------- Who is the Host? --------
    Custom script: call GetHost()
    Wait 0.02 game-time seconds
    Dialog - Create a dialog button for DiffDialog labelled EASY MODE
    Set DiffDialogButton[1] = (Last created dialog Button)
    Dialog - Create a dialog button for DiffDialog labelled HARD MODE
    Set DiffDialogButton[2] = (Last created dialog Button)
    Dialog - Change the title of DiffDialog to Chose the game difficulty.
    Game - Display to (All players) for 5.00 seconds the text: (The host is + (Name of Host))
    Dialog - Show DiffDialog for Host
    Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (0%, 0%, 0%) with 0% transparency
Choosing Difficulty
  Events
    Dialog - A dialog button is clicked for DiffDialog
  Conditions
  Actions
    Dialog - Hide DiffDialog for Host
    -------- Actions --------
    Cinematic - Turn cinematic mode On for (All players)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to DiffDialogButton[1]
      Then - Actions
        Set Difficulty = 1
        Game - Display to (All players) the text: |c0026DD00Easy|r Mode!
        Game - Display to (All players) the text: -Survivors must survive 10 minutes!
      Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to DiffDialogButton[2]
      Then - Actions
        Set Difficulty = 2
        Game - Display to (All players) the text: |c00B30000HARD|r Mode!
        Game - Display to (All players) the text: -Survivors must survive 15 minutes!
      Else - Actions
    Sound - Play 3dmThrill <gen>
    -------- - --------
    -------- - --------
    -------- Survivors and Wendigos --------
    Player Group - Pick every player in (All players matching ((((Matching player) is an ally of Player 1 (Red)) Equal to True) and (((Matching player) slot status) Equal to Is playing))) and do (Add (Picked player) to Survivors)
    -------- - --------
    Player Group - Pick every player in (All players matching ((((Matching player) is an enemy of Player 1 (Red)) Equal to True) and (((Matching player) slot status) Equal to Is playing))) and do (Add (Picked player) to Wendigos)
    -------- - --------
    -------- - --------
    Wait 2 game-time seconds
    -------- Introduction Text --------
    Game - Display to Survivors for 4.00 seconds the text: You wake up in a strange place, there is a radio saying that a plane will rescue you. But you hear scary beast screams, you'd better run! and wait for the rescue plane.
    Game - Display to Wendigos for 4.00 seconds the text: You are the "Wendigo", a bloodthirsty beast that has found fresh flesh. Kill the survivors and prevent them from escaping.
    Sound - Play WendigoScreamOrSomethingElse <gen>
    Wait 2.00 game-time seconds
    Cinematic - Fade in over 8.00 seconds using texture Black Mask and color (0%, 0%, 0%) with 0% transparency
    Sound - Play Introduction <gen>
    Wait 2.00 game-time seconds
    Sound - Play SpookyMusic <gen>
    Cinematic - Turn cinematic mode Off for (All players) over 1.00 seconds
    -------- Effects --------
    Environment - Create at (Entire map) the weather effect Northrend Blizzard
    Environment - Create at (Entire map) the weather effect Northrend Snow (Light)
    -------- Creating the units --------
    For each (Integer A) from 1 to 5, do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Player((Integer A))) slot status) Equal to Is playing
          Then - Actions
            Set TempLocation = (Random point in HumanSpawn2 <gen>)
            Unit - Create 1 UnitType[1] for (Player((Integer A))) at TempLocation facing 270.00 degrees
            Unit Group - Add (Last created unit) to SurvivorsAlive
            Custom script: call RemoveLocation( udg_TempLocation )
          Else - Actions
            Do nothing
    For each (Integer A) from 6 to 10, do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Player((Integer A))) slot status) Equal to Is playing
          Then - Actions
            Set TempLocation = (Random point in HumanSpawn1 <gen>)
            Unit - Create 1 UnitType[1] for (Player((Integer A))) at TempLocation facing 270.00 degrees
            Unit Group - Add (Last created unit) to SurvivorsAlive
            Custom script: call RemoveLocation( udg_TempLocation )
          Else - Actions
            Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Player 11 (Dark Green) slot status) Equal to Is playing
      Then - Actions
        Set TempLocation = (Random point in WendigoSpawn1 <gen>)
        Unit - Create 1 UnitType[2] for Player 11 (Dark Green) at TempLocation facing 270.00 degrees
        Custom script: call RemoveLocation( udg_TempLocation )
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Player 12 (Brown) slot status) Equal to Is playing
      Then - Actions
        Set TempLocation = (Random point in WendigoSpawn1 <gen>)
        Unit - Create 1 UnitType[2] for Player 12 (Brown) at TempLocation facing 270.00 degrees
        Custom script: call RemoveLocation( udg_TempLocation )
      Else - Actions
        Do nothing
    -------- - --------
    -------- This is optional! --------
    -------- - --------
    Set Enemy = Player 11 (Dark Green)
    Custom script: if (GetLocalPlayer() == udg_Enemy) then
    Environment - Set fog to style Linear, z-start 1000, z-end 8000, density 0.50 and color (100%, 50.00%, 50.00%)
    Custom script: endif
    -------- - --------
    Set Enemy = Player 12 (Brown)
    Custom script: if (GetLocalPlayer() == udg_Enemy) then
    Environment - Set fog to style Linear, z-start 300.00, z-end 8000, density 0.70 and color (100%, 50.00%, 50.00%)
    Custom script: endif
    -------- - --------
    -------- If you're playing with bots, they will go to a random place in the map --------
    Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Picked player) is in Survivors) Equal to True
          Then - Actions
            Set TempLocation = (Random point in (Playable map area))
            Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Order (Picked unit) to Move To TempLocation)
            Custom script: call RemoveLocation( udg_TempLocation )
          Else - Actions
            Set TempLocation = (Random point in (Playable map area))
            Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Order (Picked unit) to Attack-Move To TempLocation)
            Custom script: call RemoveLocation( udg_TempLocation )
    Trigger - Run Survive_Timer_Starts <gen> (checking conditions)
    Trigger - Run Create_Multiboard <gen> (checking conditions)
    Trigger - Run Wendigo_Bot_Seek_a_target <gen> (checking conditions)
    Player Group - Make Wendigos treat (Player group(Neutral Passive)) as an Enemy
Run Missions
  Events
  Conditions
  Actions
    Quest - Create a Required quest titled Survivor Goal with the description Survivor goal:-Escape from the wendigo.-Try to help the dead people., using icon path ReplaceableTextures\CommandButtons\BTNVillagerMan.blp
    Quest - Create a Required quest titled Ghost Goal with the description Ghost Goal:Well, you died, but it's not the end, you can revive looking for an altar. But the wendigos can break the altars!, so be careful., using icon path ReplaceableTextures\CommandButtons\BTNShade.blp
    Quest - Create a Required quest titled Wendigo Goal with the description Wendigo Goal:-Kill all the humans.-Don't let the humans escape!-Destroy the altars, so the ghosts can't revive., using icon path ReplaceableTextures\CommandButtons\BTNShade.blp
Create Multiboard
  Events
  Conditions
  Actions
    -------- Setting Up the Board --------
    Set Multiboard_PlayerColors[1] = |c00FF0303
    Set Multiboard_PlayerColors[2] = |c000042FF
    Set Multiboard_PlayerColors[3] = |c001CE6B9
    Set Multiboard_PlayerColors[4] = |c00540081
    Set Multiboard_PlayerColors[5] = |c00FFFC01
    Set Multiboard_PlayerColors[6] = |c00FEBA0E
    Set Multiboard_PlayerColors[7] = |c0020C000
    Set Multiboard_PlayerColors[8] = |c00E55BB0
    Set Multiboard_PlayerColors[9] = |c00959697
    Set Multiboard_PlayerColors[10] = |c007EBFF1
    Set Multiboard_PlayerColors[11] = |c00106246
    Set Multiboard_PlayerColors[12] = |c004E2A04
    Set Multiboard_DeadColor = |c00959595
    Set Multiboard_LeaveColor = |c003A3A3A
    -------- - --------
    Set Multiboard_PlayersAlive = (Number of players in Survivors)
    Set Multiboard_WendigosAlive = (Number of players in Wendigos)
    -------- Creating the Multiboard --------
    Set TempInteger = ((Multiboard_PlayersAlive + Multiboard_WendigosAlive) + 3)
    Multiboard - Create a multiboard with 3 columns and TempInteger rows, titled Wendigo Horror
    Set Multiboard = (Last created multiboard)
    -------- SETTING UP THE PEOPLE --------
    Multiboard - Set the text for Multiboard item in column 2, row 1 to SURVIVORS
    Multiboard - Set the text for Multiboard item in column 3, row 1 to Status
    -------- - --------
    For each (Integer A) from 1 to TempInteger, do (Actions)
      Loop - Actions
        Multiboard - Set the display style for Multiboard item in column 1, row (Integer A) to Hide text and Show icons
        Multiboard - Set the display style for Multiboard item in column 2, row (Integer A) to Show text and Hide icons
        Multiboard - Set the display style for Multiboard item in column 3, row (Integer A) to Show text and Hide icons
        Multiboard - Set the width for Multiboard item in column 1, row (Integer A) to 3.00% of the total screen width
        Multiboard - Set the width for Multiboard item in column 2, row (Integer A) to 10.00% of the total screen width
        Multiboard - Set the width for Multiboard item in column 3, row (Integer A) to 5.00% of the total screen width
    Multiboard - Set the display style for Multiboard item in column 1, row 1 to Hide text and Hide icons
    Set Multiboard_List = 2
    Player Group - Pick every player in Survivors and do (Actions)
      Loop - Actions
        Set Multiboard_PlayerSpots[(Player number of (Picked player))] = Multiboard_List
        Set TempPlayer = (Picked player)
        Multiboard - Set the text for Multiboard item in column 2, row Multiboard_List to (Multiboard_PlayerColors[(Player number of TempPlayer)] + ((Name of TempPlayer) + |r))
        Multiboard - Set the text for Multiboard item in column 3, row Multiboard_List to Alive
        Multiboard - Set the icon for Multiboard item in column 1, row Multiboard_List to ReplaceableTextures\CommandButtons\BTNPeasant.blp
        Set Multiboard_List = (Multiboard_List + 1)
    Multiboard - Set the display style for Multiboard item in column 1, row Multiboard_List to Hide text and Hide icons
    -------- Making the new section WENDIGOS --------
    Set Multiboard_List = (Multiboard_List + 1)
    Multiboard - Set the display style for Multiboard item in column 1, row 1 to Hide text and Hide icons
    Multiboard - Set the display style for Multiboard item in column 1, row Multiboard_List to Hide text and Hide icons
    Multiboard - Set the text for Multiboard item in column 2, row Multiboard_List to WENDIGOS
    Multiboard - Set the text for Multiboard item in column 3, row Multiboard_List to Kills
    Set Multiboard_List = (Multiboard_List + 1)
    Player Group - Pick every player in Wendigos and do (Actions)
      Loop - Actions
        Set Multiboard_PlayerSpots[(Player number of (Picked player))] = Multiboard_List
        Set TempPlayer = (Picked player)
        Multiboard - Set the text for Multiboard item in column 2, row Multiboard_List to (Multiboard_PlayerColors[(Player number of TempPlayer)] + ((Name of TempPlayer) + |r))
        Multiboard - Set the text for Multiboard item in column 3, row Multiboard_List to 0
        Multiboard - Set the icon for Multiboard item in column 1, row Multiboard_List to ReplaceableTextures\CommandButtons\BTNWendigo.blp
        Set Multiboard_List = (Multiboard_List + 1)
    Multiboard - Show Multiboard
Player Leaves
  Events
  Conditions
  Actions
    Set TempPlayer = (Triggering player)
    Game - Display to (All players) for 10.00 seconds the text: (Multiboard_PlayerColors[(Player number of TempPlayer)] + ((Name of TempPlayer) + |r has left the game.))
    Unit Group - Pick every unit in (Units owned by TempPlayer) and do (Actions)
      Loop - Actions
        Unit - Kill (Picked unit)
    Multiboard - Set the text for Multiboard item in column 2, row Multiboard_PlayerSpots[(Player number of TempPlayer)] to (Multiboard_LeaveColor + ((Name of TempPlayer) + |r))
Scary Random Sounds
  Events
    Time - Every (Random real number between 15.00 and 25.00) seconds of game time
  Conditions
  Actions
    Set TempLocation = (Position of (Random unit from SurvivorsAlive))
    Cinematic - Ping minimap for Wendigos at TempLocation for 2.00 seconds, using a Simple ping of color (100%, 0.00%, 0.00%)
    Custom script: call RemoveLocation( udg_TempLocation )
    Sound - Play ScarySounds[(Random integer number between 1 and 6)]
Survivor Death
  Events
    Unit - A unit Dies
  Conditions
    (Unit-type of (Triggering unit)) Equal to UnitType[1]
  Actions
    Set TempPlayer = (Owner of (Triggering unit))
    Multiboard - Set the icon for Multiboard item in column 1, row Multiboard_PlayerSpots[(Player number of TempPlayer)] to ReplaceableTextures\CommandButtons\BTNShade.blp
    Multiboard - Set the text for Multiboard item in column 2, row Multiboard_PlayerSpots[(Player number of TempPlayer)] to (Multiboard_DeadColor + ((Name of TempPlayer) + |r))
    Multiboard - Set the text for Multiboard item in column 3, row Multiboard_PlayerSpots[(Player number of TempPlayer)] to Dead
    Unit - Create 1 UnitType[3] for TempPlayer at (Position of (Triggering unit)) facing Default building facing degrees
    Set TempPlayer2 = (Owner of (Killing unit))
    Set TempInteger = (Player number of TempPlayer2)
    Set Multiboard_WendigoKills[TempInteger] = (Multiboard_WendigoKills[TempInteger] + 1)
    Multiboard - Set the text for Multiboard item in column 3, row Multiboard_PlayerSpots[(Player number of TempPlayer2)] to (String(Multiboard_WendigoKills[TempInteger]))
    Unit Group - Remove (Triggering unit) from SurvivorsAlive
    Game - Display to (All players) the text: ((Name of TempPlayer) + has been devoured!!)
    Player Group - Make (Player group(TempPlayer)) treat Survivors as an Ally
    Player Group - Make Survivors treat (Player group(TempPlayer)) as an Ally with shared vision
    Player Group - Add TempPlayer to Losers
    Sound - Play SurvivorDeath <gen>
    Trigger - Run Wendigo_Bot_Seek_a_target <gen> (checking conditions)
    Trigger - Run Human_Bot_Run_Away <gen> (checking conditions)
    Trigger - Run Survivor_Death_Effect <gen> (checking conditions)
    -------- Check if there are only one survivor! --------
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Number of units in SurvivorsAlive) Equal to 1
      Then - Actions
        Set LastSurvivor = (Owner of (Random unit from SurvivorsAlive))
        Trigger - Run Last_Survivor_Alert <gen> (checking conditions)
      Else - Actions
    -------- Check if everyone died! --------
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Number of units in SurvivorsAlive) Equal to 0
      Then - Actions
        Trigger - Run Winners_and_Losers <gen> (checking conditions)
      Else - Actions
Survivor Death Effect
  Events
  Conditions
  Actions
    Player Group - Pick every player in Survivors and do (Actions)
      Loop - Actions
        Set TempPlayer = (Picked player)
        Camera - Shake the camera for TempPlayer with magnitude 3
        Custom script: if GetLocalPlayer() == udg_TempPlayer then
        Cinematic - Fade out and back in over 2 seconds using texture White Mask and color (100.00%, 0%, 0%) with 50.00% transparency
        Custom script: endif
    Wait 1.00 game-time seconds
    Player Group - Pick every player in Survivors and do (Actions)
      Loop - Actions
        Camera - Stop swaying/shaking the camera for (Picked player)
Last Survivor Alert
  Events
  Conditions
  Actions
    Wait 1.00 game-time seconds
    Sound - Play LastSurvivor <gen>
    Game - Display to (All players) for 20.00 seconds the text: (Multiboard_PlayerColors[(Player number of LastSurvivor)] + ((Name of LastSurvivor) + |r |c00820000 |c00870000I|c008C0000S|c00910000 |c00960000T|c009C0000H|c00A10000E|c00A60000 |c00AB0000L|c00B00000A|c00B50000S|c00BA0000T|c00BF0000 |c00C40000S|c00C90000U|c00CF0000R|c00D40000V|c00D90000I|c00DE0000V|c00E30000O|c00E80000R|r))
    Sound - Play Tension <gen>
Wendigo Bot Seek a target
  Events
    Time - Every 60.00 seconds of game time
  Conditions
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Or - Any (Conditions) are true
          Conditions
            (Player 11 (Dark Green) controller) Equal to Computer
            (Player 12 (Brown) controller) Equal to Computer
      Then - Actions
        Player Group - Pick every player in Wendigos and do (Actions)
          Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                ((Picked player) controller) Equal to Computer
              Then - Actions
                Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
                  Loop - Actions
                    Unit - Order (Picked unit) to Attack-Move To (Position of (Random unit from SurvivorsAlive))
              Else - Actions
                -------- Nothing --------
      Else - Actions
Human Bot Run Away
  Events
    Time - Every 70.00 seconds of game time
  Conditions
  Actions
    Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Picked player) is in Survivors) Equal to True
          Then - Actions
            Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Order (Picked unit) to Move To (Random point in (Playable map area)))
          Else - Actions
            -------- Nope, thus is a wendigo --------
Ghost Revive
  Events
    Unit - A unit comes within 256 of Altar of Kings 0015 <gen>
    Unit - A unit comes within 256 of Altar of Kings 0012 <gen>
    Unit - A unit comes within 256 of Altar of Kings 0013 <gen>
    Unit - A unit comes within 256 of Altar of Kings 0014 <gen>
    Unit - A unit comes within 256 of Altar of Kings 0016 <gen>
  Conditions
    (Unit-type of (Triggering unit)) Equal to Ghost
  Actions
    Unit Group - Pick every unit in (Units within 512 of (Position of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Altar of Kings)) and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00))
    Set TempPlayer = (Owner of (Triggering unit))
    Game - Display to (All players) for 10.00 seconds the text: ((Name of TempPlayer) + revived.)
    Unit - Replace (Triggering unit) with a Survivor using The old unit's relative life and mana
    Cinematic - Ping minimap for (All players) at (Position of (Triggering unit)) for 1 seconds
    Multiboard - Set the icon for Multiboard item in column 1, row Multiboard_PlayerSpots[(Player number of TempPlayer)] to ReplaceableTextures\CommandButtons\BTNVillagerMan.blp
    Multiboard - Set the text for Multiboard item in column 2, row Multiboard_PlayerSpots[(Player number of TempPlayer)] to (Multiboard_PlayerColors[(Player number of TempPlayer)] + ((Name of TempPlayer) + |r))
    Multiboard - Set the text for Multiboard item in column 3, row Multiboard_PlayerSpots[(Player number of TempPlayer)] to Alive
    Unit Group - Add (Triggering unit) to SurvivorsAlive
Survive Timer Starts
  Events
  Conditions
  Actions
    -------- Rescue Time --------
    -------- 8 minutes or 10 minutes. --------
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Difficulty Equal to 1
      Then - Actions
        Countdown Timer - Start SurviveTimer as a One-shot timer that will expire in 600.00 seconds
      Else - Actions
        Countdown Timer - Start SurviveTimer as a One-shot timer that will expire in 900.00 seconds
    Countdown Timer - Create a timer window for SurviveTimer with title Rescue
    Set SurviveTimer_Window = (Last created timer window)
    Countdown Timer - Show SurviveTimer_Window
Survive Timer Expires
  Events
    Time - SurviveTimer expires
  Conditions
  Actions
    Countdown Timer - Destroy SurviveTimer_Window
    Unit - Create 1 Rescue Plane for Neutral Passive at (Center of RescueZone[(Random integer number between 1 and 5)]) facing (Random angle) degrees
    Set RescuePlane = (Last created unit)
    Game - Display to (All players) for 20.00 seconds the text: The Rescue Plane achieved the rescue zone!!, find the plane!
    Trigger - Turn off Scary_Random_Sounds <gen>
    Trigger - Turn off Wendigo_Bot_Seek_a_target <gen>
    Trigger - Turn off Human_Bot_Run_Away <gen>
    -------- - --------
    Trigger - Add to Survive_or_Rescue_Player <gen> the event (A unit comes within 256 of RescuePlane)
    Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Picked player) is in Survivors) Equal to True
          Then - Actions
            Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Order (Picked unit) to Move To (Position of RescuePlane))
          Else - Actions
            Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Order (Picked unit) to Attack-Move To (Position of RescuePlane))
    For each (Integer A) from 1 to 5, do (Actions)
      Loop - Actions
        Cinematic - Ping minimap for (All players) at (Center of RescueZone[(Integer A)]) for 5.00 seconds, using a Warning ping of color (0.00%, 100%, 0.00%)
Survive or Rescue Player
  Events
  Conditions
    (Unit-type of (Triggering unit)) Equal to UnitType[1]
  Actions
    Sound - Play Rescue <gen>
    Game - Display to (All players) for 10.00 seconds the text: ((Name of (Owner of (Triggering unit))) + escaped!)
    Cinematic - Ping minimap for (All players) at (Position of (Triggering unit)) for 1.00 seconds, using a Flashy ping of color (25.00%, 25.00%, 100%)
    Unit - Remove (Triggering unit) from the game
    Player Group - Add (Owner of (Triggering unit)) to Winners
    Player Group - Make (Player group((Owner of (Triggering unit)))) treat Survivors as an Ally with shared vision
    Trigger - Run Winners_and_Losers <gen> (checking conditions)
Winners and Losers
  Events
  Conditions
  Actions
    Wait 1.00 game-time seconds
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Number of units in SurvivorsAlive) Equal to 0
      Then - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Number of players in Winners) Greater than 0
          Then - Actions
            Player Group - Pick every player in Wendigos and do (Add (Picked player) to Losers)
          Else - Actions
            Player Group - Pick every player in Wendigos and do (Add (Picked player) to Winners)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Player 12 (Brown) is in Winners) Equal to True
            (Number of players in Winners) Less than or equal to 2
          Then - Actions
            Game - Display to (All players) for 10.00 seconds the text: The Wendigos devoured every human!
          Else - Actions
            Game - Display to (All players) the text: Some players escaped and the other were eaten by the Wendigos!
        Sound - Play LastSurvivor <gen>
        Wait 2.00 game-time seconds
        Cinematic - Fade out over 5.00 seconds using texture Black Mask and color (0%, 0%, 0%) with 0% transparency
        Wait 4.00 game-time seconds
        Player Group - Pick every player in Winners and do (Actions)
          Loop - Actions
            Game - Victory (Picked player) (Show dialogs, Show scores)
        Player Group - Pick every player in Losers and do (Actions)
          Loop - Actions
            Game - Defeat (Picked player) with the message: You losed!
      Else - Actions