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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  6. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  7. 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

(4) My little Warfare.w3x
Variables
Initialization
Tree Respawn
Melee Initialization
Gold Mine No Collapse
Player1 Gold Mine
Player2 Gold Mine
Gold Mine 3
Player4 Gold Mine
Player5 Gold Mine
Gold Mine 6
Spys
Human Spys
Orc Smart One
Undead Wraith
Elf Tree Former
Last Murlock
Make Bridge
Murloc Buttons
Show Swap
dont swap
Do Swap
---Unused Crap---
Chronoswap
Chronoswap Timer
Chronoswap Ready
Chronoswap Shot 1
Chronoswap Shot 2
Rage Missle
RageMissle Timer
RageMissle Ready
RageMissle Shot
TreeCannon
TreeCannon Timer
TreeCannon Ready
TreeCannon Shot
Killing Tree Cannon
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.

		
Name Type Is Array Initial Value
Chronoswap unit No
ChronoSwap_Timer timer No
Chronoswapper_position location Yes
ChronoSwappers unit Yes
Do_swap button No
Dont_swap button No
RageMissle unit No
RageMissle_Group group No
RageMissle_Timer timer No
RageMissle_Unit_Ownership player No
SpecialEffect effect Yes
Sunken_Tree_Wall destructablecode No ZTtw
SuperWeapons_Timer_Window timerdialog Yes
Swap_Murloc dialog No
Swapper_1 unit No
Swapper_2 unit No
TreeCannon_Killed unit No
TreeCannon_Timer timer No
TreeConnon unit No
Wraith unit Yes
Tree Respawn
  Events
    Time - Every 5.00 seconds of game time
  Conditions
  Actions
    Destructible - Pick every destructible in (Playable map area) and do (Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation)
Default melee game initialization for all players
Melee Initialization
  Events
    Map initialization
  Conditions
  Actions
    Melee Game - Use melee time of day (for all players)
    Melee Game - Limit Heroes to 1 per Hero-type (for all players)
    Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
    Melee Game - Set starting resources (for all players)
    Melee Game - Remove creeps and critters from used start locations (for all players)
    Melee Game - Create starting units (for all players)
    Melee Game - Run melee AI scripts (for computer players)
    Melee Game - Enforce victory/defeat conditions (for all players)
Player1 Gold Mine
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Neutral Building - Add 100 gold to (Random unit from (Units in Gold_Mine_1 <gen>))
Player2 Gold Mine
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Neutral Building - Add 100 gold to (Random unit from (Units in Gold_Mine_2 <gen>))
Gold Mine 3
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Neutral Building - Add 100 gold to (Random unit from (Units in Gold_Mine_3 <gen>))
Player4 Gold Mine
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Neutral Building - Add 100 gold to (Random unit from (Units in Gold_Mine_4 <gen>))
Player5 Gold Mine
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Neutral Building - Add 100 gold to (Random unit from (Units in Gold_Mine_5 <gen>))
Gold Mine 6
  Events
    Time - Every 1.00 seconds of game time
  Conditions
  Actions
    Neutral Building - Add 100 gold to (Random unit from (Units in Gold_Mine_6 <gen>))
Human Spys
  Events
    Unit - A unit Is attacked
  Conditions
    (Unit-type of (Attacking unit)) Equal to Spy
  Actions
    Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
    Unit - Remove (Attacking unit) from the game
Orc Smart One
  Events
    Unit - A unit Is attacked
  Conditions
    (Unit-type of (Attacking unit)) Equal to The Smart One
  Actions
    Unit - Change ownership of (Triggering unit) to (Owner of (Attacking unit)) and Change color
    Unit - Remove (Attacking unit) from the game
Undead Wraith
  Events
    Unit - A unit Is attacked
  Conditions
    (Unit-type of (Attacking unit)) Equal to Wraith
  Actions
    Unit - Change ownership of (Triggering unit) to (Owner of (Attacking unit)) and Change color
    Unit - Remove (Attacking unit) from the game
Elf Tree Former
  Events
    Unit - A unit Is attacked
  Conditions
    (Unit-type of (Attacking unit)) Equal to Tree Former
  Actions
    Unit - Change ownership of (Triggering unit) to (Owner of (Attacking unit)) and Change color
    Unit - Remove (Attacking unit) from the game
Make Bridge
  Events
    Unit - A unit enters Bridge_maker <gen>
  Conditions
  Actions
    Destructible - Resurrect Long Natural Bridge 0172 <gen> with (Max life of Long Natural Bridge 0172 <gen>) life and Show birth animation
Murloc Buttons
  Events
    Map initialization
  Conditions
  Actions
    Dialog - Create a dialog button for Swap_Murloc labelled Swap for creature
    Set VariableSet Do_swap = (Last created dialog Button)
    Wait 2 seconds
    Dialog - Create a dialog button for Swap_Murloc labelled Dont swap
    Set VariableSet Dont_swap = (Last created dialog Button)
    Unit - Make (Random unit from (Units in Swap_2 <gen>)) Invulnerable
Show Swap
  Events
    Unit - A unit enters Swap_1 <gen>
  Conditions
    (Unit-type of (Triggering unit)) Not equal to Wraith
    ((Triggering unit) is A flying unit) Equal to False
  Actions
    Dialog - Show Swap_Murloc for (Owner of (Triggering unit))
    Set VariableSet Swapper_1 = (Triggering unit)
    Set VariableSet Swapper_2 = (Random unit from (Units in Swap_2 <gen>))
    Trigger - Turn off (This trigger)
dont swap
  Events
    Dialog - A dialog button is clicked for Swap_Murloc
  Conditions
    (Clicked dialog button) Equal to Dont_swap
  Actions
    Trigger - Turn on Show_Swap <gen>
Do Swap
  Events
    Dialog - A dialog button is clicked for Swap_Murloc
  Conditions
    (Clicked dialog button) Equal to Do_swap
  Actions
    Unit - Pause Swapper_1
    Lightning - Create a Drain Life lightning effect from source (Position of Swapper_2) to target (Position of Swapper_1)
    Wait 5.00 seconds
    Unit - Make Swapper_2 Vulnerable
    Unit - Make Swapper_1 Invulnerable
    -------- Swapping --------
    Unit - Move Swapper_1 instantly to (Center of Swap_2 <gen>)
    Unit - Move Swapper_2 instantly to (Center of Swap_1 <gen>)
    Lightning - Destroy (Last created lightning effect)
    Unit - Unpause Swapper_2
    Unit - Change ownership of Swapper_2 to (Owner of Swapper_1) and Change color
    Wait 2.00 seconds
    Trigger - Turn on Show_Swap <gen>
Chronoswap Timer
  Events
    Unit - A unit Finishes construction
  Conditions
    (Unit-type of (Constructed structure)) Equal to Chronoswap
  Actions
    Set VariableSet Chronoswap = (Triggering unit)
    Countdown Timer - Start ChronoSwap_Timer as a One-shot timer that will expire in 90.00 seconds
    Countdown Timer - Create a timer window for (Last started timer) with title Chronoswap
    Countdown Timer - Show (Last created timer window)
    Set VariableSet SuperWeapons_Timer_Window[0] = (Last created timer window)
Chronoswap Ready
  Events
    Time - ChronoSwap_Timer expires
  Conditions
  Actions
    Game - Display to (All players) the text: Chronoswap Ready
    Trigger - Turn on Chronoswap_Shot_1 <gen>
Chronoswap Shot 1
  Events
    Unit - A unit Is attacked
  Conditions
    (Unit-type of (Attacking unit)) Equal to Chronoswap
  Actions
    Unit - Order Chronoswap to Stop.
    Wait 0.50 seconds
    Set VariableSet ChronoSwappers[0] = (Attacked unit)
    Set VariableSet Chronoswapper_position[0] = (Position of ChronoSwappers[0])
    Wait 5.00 seconds
    Game - Display to (All players) the text: second shot ready
    Trigger - Turn off (This trigger)
    Trigger - Turn on Chronoswap_Shot_2 <gen>
Chronoswap Shot 2
  Events
    Unit - A unit Is attacked
  Conditions
    (Unit-type of (Attacking unit)) Equal to Chronoswap
  Actions
    Set VariableSet ChronoSwappers[1] = (Attacked unit)
    Set VariableSet Chronoswapper_position[1] = (Position of ChronoSwappers[1])
    Wait 0.50 seconds
    Unit - Order Chronoswap to Stop.
    Countdown Timer - Start ChronoSwap_Timer as a One-shot timer that will expire in 90.00 seconds
    Lightning - Create a Drain Mana lightning effect from source (Position of Swapper_1) to target (Position of Swapper_2)
    Wait 3.00 seconds
    Lightning - Destroy (Last created lightning effect)
    Unit - Move ChronoSwappers[0] instantly to Chronoswapper_position[1]
    Unit - Move ChronoSwappers[1] instantly to Chronoswapper_position[0]
    Trigger - Turn off (This trigger)
RageMissle Timer
  Events
    Unit - A unit Finishes construction
  Conditions
    (Unit-type of (Constructed structure)) Equal to D.U.M.B. Missle
  Actions
    Set VariableSet RageMissle = (Last created unit)
    Countdown Timer - Start RageMissle_Timer as a One-shot timer that will expire in 10.00 seconds
    Countdown Timer - Create a timer window for (Last started timer) with title D.U.M.B. Missle
    Countdown Timer - Show (Last created timer window)
    Set VariableSet TreeCannon_Timer = (Last started timer)
RageMissle Ready
  Events
    Time - RageMissle_Timer expires
  Conditions
  Actions
    Game - Display to (All players) the text: D.U.M.B. Missle Ready
    Trigger - Turn on RageMissle_Shot <gen>
RageMissle Shot
  Events
    Unit - A unit Is attacked
  Conditions
    (Unit-type of (Attacking unit)) Equal to D.U.M.B. Missle
  Actions
    Wait 0.50 seconds
    Unit - Order RageMissle to Stop.
    Set VariableSet RageMissle_Group = (Units within 512 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Not equal to (Owner of RageMissle)).)
    Unit Group - Pick every unit in (Units within 512 of (Position of (Attacked unit)) matching ((Owner of (Picked unit)) Not equal to (Owner of RageMissle)).) and do (Actions)
      Loop - Actions
        Set VariableSet RageMissle_Unit_Ownership = (Owner of (Picked unit))
        Unit - Change ownership of (Picked unit) to Neutral Passive and Retain color
        Unit - Add Wander (Neutral) to (Picked unit)
        Wait 30.00 seconds
        Unit - Change ownership of (Picked unit) to RageMissle_Unit_Ownership and Change color
        Unit - Remove Wander (Neutral) from (Picked unit)
    Countdown Timer - Start RageMissle_Timer as a One-shot timer that will expire in 90.00 seconds
    Trigger - Turn off (This trigger)
TreeCannon Timer
  Events
    Unit - A unit Finishes construction
  Conditions
    (Unit-type of (Constructed structure)) Equal to Tree Cannon
  Actions
    Set VariableSet TreeConnon = (Triggering unit)
    Countdown Timer - Start TreeCannon_Timer as a One-shot timer that will expire in 90.00 seconds
    Countdown Timer - Create a timer window for (Last started timer) with title TreeCannon
    Countdown Timer - Show (Last created timer window)
    Set VariableSet TreeCannon_Timer = (Last started timer)
TreeCannon Ready
  Events
    Time - TreeCannon_Timer expires
  Conditions
  Actions
    Game - Display to (All players) the text: TreeCannon Ready
    Trigger - Turn on TreeCannon_Shot <gen>
TreeCannon Shot
  Events
    Unit - A unit Is attacked
  Conditions
    (Unit-type of (Attacking unit)) Equal to Tree Cannon
  Actions
    Wait 0.50 seconds
    Unit - Order TreeConnon to Stop.
    Wait 0.50 seconds
    Set VariableSet TreeCannon_Killed = (Attacked unit)
    Countdown Timer - Start TreeCannon_Timer as a One-shot timer that will expire in 90.00 seconds
    Trigger - Turn off (This trigger)
    Trigger - Turn on Killing_Tree_Cannon <gen>
Killing Tree Cannon
  Events
    Time - Every 2 seconds of game time
  Conditions
  Actions
    Unit - Set life of TreeCannon_Killed to ((Percentage life of TreeCannon_Killed) - 10.00)%
    Animation - Change (Picked unit)'s size to ((Percentage life of (Picked unit))%, (Percentage life of (Picked unit))%, (Percentage life of (Picked unit))%) of its original size