1. Are you planning to upload your awesome map to Hive? Please review the rules here.
    Dismiss Notice
  2. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  3. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  4. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  5. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  6. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  7. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  8. 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

The peasant - The Cave.w3x
Variables
Video
Begin
Go on1
Go on2
Go on3
Spider
Go on4
Go on5
Go on6
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
Spider integer No
Spidermonster unit No
Begin
  Events
    Time - Elapsed game time is 0.00 seconds
  Conditions
  Actions
    Cinematic - Turn cinematic mode On for (All players)
    Cinematic - Fade out over 0.00 seconds using texture White Mask and color (0%, 0%, 0%) with 0% transparency
    Unit Group - Pick every unit in (Units in Skeletts <gen> matching ((Unit-type of (Matching unit)) Not equal to Villager (Male 2))) and do (Hide (Picked unit))
    Camera - .Apply. gg_cam_C1 for Player 1 (Red) over 0 seconds
    Wait 0.10 seconds
    Cinematic - Fade in over 2.00 seconds using texture White Mask and color (0%, 0%, 0%) with 0% transparency
    Wait 1.50 seconds
    Camera - .Apply. gg_cam_C2 for Player 1 (Red) over 4.00 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display What a foggy and dark cave!. Modify duration: Set to 2.50 seconds and Wait
    Wait 0.10 seconds
    Unit - Make Villager 0000 <gen> face 234.00 over 0.20 seconds
    Camera - .Apply. gg_cam_C3 for Player 1 (Red) over 2.00 seconds
    Wait 0.20 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display Hmmm.. it smells like... hmmmm.... Bones..... Modify duration: Set to 3.00 seconds and Wait
    Camera - .Apply. gg_cam_C4 for Player 1 (Red) over 3.00 seconds
    Unit - Make Villager 0000 <gen> face 180.00 over 0.20 seconds
    Wait 0.20 seconds
    Unit - Make Villager 0000 <gen> face 0.00 over 0.20 seconds
    Wait 0.20 seconds
    Animation - Play Giant Skeleton Warrior 0002 <gen>'s birth (animationname) animation
    Unit - Unhide Giant Skeleton Warrior 0002 <gen>
    Wait 0.20 seconds
    Animation - Play Giant Skeleton Warrior 0001 <gen>'s birth (animationname) animation
    Unit - Unhide Giant Skeleton Warrior 0001 <gen>
    Wait 0.20 seconds
    Animation - Play Giant Skeleton Warrior 0004 <gen>'s birth (animationname) animation
    Unit - Unhide Giant Skeleton Warrior 0004 <gen>
    Wait 0.20 seconds
    Animation - Play Giant Skeleton Warrior 0003 <gen>'s birth (animationname) animation
    Unit - Unhide Giant Skeleton Warrior 0003 <gen>
    Wait 0.20 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display Oh, noes!. Modify duration: Set to 1.20 seconds and Wait
    Cinematic - Send transmission to (All players) from Giant Skeleton Warrior 0001 <gen> named Skeleton: Play No sound and display We arrrr hungrrrrry!. Modify duration: Set to 2.00 seconds and Wait
    Unit - Order Giant Skeleton Warrior 0002 <gen> to Attack.Villager 0000 <gen>
    Unit - Order Giant Skeleton Warrior 0001 <gen> to Attack.Villager 0000 <gen>
    Unit - Order Giant Skeleton Warrior 0004 <gen> to Attack.Villager 0000 <gen>
    Unit - Order Giant Skeleton Warrior 0003 <gen> to Attack.Villager 0000 <gen>
    Wait 0.20 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display I think, I must go..... Ahhhh!!!. Modify duration: Set to 1.20 seconds and Wait
    Unit - Order Villager 0000 <gen> to Move To.(Center of AA1 <gen>)
    Wait 0.10 seconds
    Camera - .Apply. gg_cam_C5 for Player 1 (Red) over 0 seconds
    Wait 4.00 seconds
    Camera - .Apply. gg_cam_C6 for Player 1 (Red) over 0 seconds
    Wait 4.00 seconds
    Camera - .Apply. gg_cam_C7 for Player 1 (Red) over 0 seconds
Go on1
  Events
    Unit - A unit enters AA1 <gen>
  Conditions
    (Entering unit) Equal to Villager 0000 <gen>
  Actions
    Trigger - Turn off (This trigger)
    Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Giant Skeleton Warrior)) and do (Actions)
      Loop - Actions
        Unit - Order (Picked unit) to Move To.(Center of Skeletts <gen>)
    Unit - Make Villager 0000 <gen> face 180.00 over 0.20 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display I think, the skeletons are gone... Modify duration: Set to 3.00 seconds and Wait
    Unit - Make Villager 0000 <gen> face 200.00 over 0.20 seconds
    Wait 0.20 seconds
    Unit - Make Villager 0000 <gen> face 220.00 over 0.20 seconds
    Wait 0.20 seconds
    Unit - Make Villager 0000 <gen> face 240.00 over 0.20 seconds
    Wait 0.20 seconds
    Unit - Make Villager 0000 <gen> face 260.00 over 0.20 seconds
    Wait 0.20 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display What a mysterious cave.... Modify duration: Set to 4.00 seconds and Wait
    Camera - .Apply. gg_cam_Camera_Scenary for Player 1 (Red) over 0 seconds
    Wait 2.00 seconds
    Camera - .Apply. gg_cam_C8 for Player 1 (Red) over 7.00 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display I had to go, the skeletons are guarding the only exit.... Modify duration: Set to 4.00 seconds and Wait
    Unit - Order Villager 0000 <gen> to Move To.(Center of Spikes <gen>)
Go on2
  Events
    Unit - A unit enters Spikes <gen>
  Conditions
  Actions
    Trigger - Turn off (This trigger)
    Wait 0.20 seconds
    For each (Integer A) from 1 to 6, do (Actions)
      Loop - Actions
        Unit - Make Villager 0000 <gen> face ((Facing of Villager 0000 <gen>) + 80.00) over 0.20 seconds
        Wait 0.40 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display Dangerous spikes. I must find a way over this sparky spikes!. Modify duration: Set to 3.00 seconds and Wait
    Unit - Make Villager 0000 <gen> face (Position of Lever 0294 <gen>) over 0.20 seconds
    Wait 0.30 seconds
    Animation - Play Villager 0000 <gen>'s stand,four (animationname) animation
    Wait 0.30 seconds
    Unit - Make Villager 0000 <gen> face (Position of Dungeon Spikes 0275 <gen>) over 0.20 seconds
    Animation - Play Villager 0000 <gen>'s stand,four (animationname) animation
    Wait 0.30 seconds
    Unit - Make Villager 0000 <gen> face (Position of Lever 0294 <gen>) over 0.20 seconds
    Animation - Play Villager 0000 <gen>'s stand,four (animationname) animation
    Wait 0.30 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display I don't know what this lever is for, but I have no choice.. Modify duration: Set to 3.00 seconds and Wait
    Animation - Play Villager 0000 <gen>'s attack (animationname) animation
    Wait 0.30 seconds
    Destructible - Kill Lever 0294 <gen>
    Wait 0.10 seconds
    Unit - Add Storm Crow Form to Villager 0000 <gen>
    Unit - Remove Storm Crow Form from Villager 0000 <gen>
    Special Effect - Create a special effect at (Position of Villager 0000 <gen>) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
    Special Effect - Create a special effect attached to the of Villager 0000 <gen> using Abilities\Spells\Human\FlameStrike\FlameStrikeEmbers.mdl
    Animation - Change Villager 0000 <gen> flying height to 1500.00 at 500.00
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display AHHHHHHHHH!!!!!!. Modify duration: Set to 1.00 seconds and Wait
    Camera - .Apply. gg_cam_C9 for Player 1 (Red) over 1.00 seconds
    Animation - Play Villager 0000 <gen>'s stand (animationname) animation
    Wait 2.00 seconds
    Unit - Move Villager 0000 <gen> instantly to (Center of Spikes_behind <gen>)
    Animation - Change Villager 0000 <gen> flying height to 0.00 at 500.00
    Wait 2.85 seconds
    Special Effect - Destroy (Last created special effect)
    Special Effect - Create a special effect at (Position of Villager 0000 <gen>) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    Special Effect - Create a special effect at (Position of Villager 0000 <gen>) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
    Special Effect - Create a special effect at (Position of Villager 0000 <gen>) using Abilities\Weapons\Bolt\BoltImpact.mdl
    Animation - Play Villager 0000 <gen>'s death (animationname) animation
    Wait 0.50 seconds
    Cinematic - Fade out over 1.00 seconds using texture White Mask and color (0%, 0%, 0%) with 0% transparency
    Wait 1.00 seconds
    Camera - .Apply. gg_cam_C9 for Player 1 (Red) over 0 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display Ouch, this hurts! But it was very funny.. Modify duration: Set to 3.00 seconds and Wait
    Cinematic - Fade in over 1.00 seconds using texture White Mask and color (0%, 0%, 0%) with 0% transparency
    Animation - Play Villager 0000 <gen>'s stand (animationname) animation
    Wait 1.00 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display Wow, very, very big spidereggs. I hope they don't hatch out.. Modify duration: Set to 3.00 seconds and Wait
    Unit - Order Villager 0000 <gen> to Move To.(Center of AKS <gen>)
    Camera - .Apply. gg_cam_C10 for Player 1 (Red) over 2.00 seconds
Go on3
  Events
    Unit - A unit enters AKS <gen>
  Conditions
  Actions
    Trigger - Turn off (This trigger)
    Destructible - Kill Egg Sack 0286 <gen>
    Unit - Create 1.Spider for Neutral Passive at (Position of Egg Sack 0286 <gen>) facing Default building facing degrees
    Wait 0.10 seconds
    Destructible - Kill Egg Sack 0280 <gen>
    Unit - Create 1.Spider for Neutral Passive at (Position of Egg Sack 0280 <gen>) facing Default building facing degrees
    Wait 0.10 seconds
    Destructible - Kill Egg Sack 0281 <gen>
    Unit - Create 1.Spider for Neutral Passive at (Position of Egg Sack 0281 <gen>) facing Default building facing degrees
    Wait 0.10 seconds
    Destructible - Kill Egg Sack 0278 <gen>
    Unit - Create 1.Spider for Neutral Passive at (Position of Egg Sack 0278 <gen>) facing Default building facing degrees
    Wait 0.10 seconds
    Destructible - Kill Egg Sack 0284 <gen>
    Unit - Create 1.Spider for Neutral Passive at (Position of Egg Sack 0284 <gen>) facing Default building facing degrees
    Wait 0.30 seconds
    Unit - Make Villager 0000 <gen> face (Position of Barrel 0291 <gen>) over 0.20 seconds
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display Oh shit.... Modify duration: Set to 1.00 seconds and Wait
    Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Spider)) and do (Actions)
      Loop - Actions
        Unit - Order (Picked unit) to Move To.(Center of Rect_005 <gen>)
Spider
  Events
    Unit - A unit enters Rect_005 <gen>
  Conditions
    (Unit-type of (Entering unit)) Equal to Spider
  Actions
    Unit - Explode (Entering unit).
    Set VariableSet Spider = (Spider + 1)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        Spider Equal to 5
      Then - Actions
        Camera - .Apply. gg_cam_C11 for Player 1 (Red) over 1.00 seconds
        Unit - Create 1.Brood Mother for Neutral Passive at (Center of Rect_005 <gen>) facing 0.00 degrees
        Set VariableSet Spidermonster = (Last created unit)
        Trigger - Run Go_on4 <gen> (ignoring conditions)
      Else - Actions
Go on4
  Events
  Conditions
  Actions
    Trigger - Turn off (This trigger)
    Cinematic - Send transmission to (All players) from Villager 0000 <gen> named (Name of Player 1 (Red)): Play No sound and display What a bad luck today!. Modify duration: Set to 1.50 seconds and Wait
    Camera - .Apply. gg_cam_C12 for Player 1 (Red) over 2.00 seconds
    Unit - Order Spidermonster to Attack.Villager 0000 <gen>
    Unit - Order Villager 0000 <gen> to Move To.(Center of End <gen>)
Go on5
  Events
    Unit - A unit enters End <gen>
  Conditions
  Actions
    Trigger - Turn off (This trigger)
    Unit - Set life of Villager 0000 <gen> to 1.00
Go on6
  Events
    Unit - Villager 0000 <gen> Dies
  Conditions
  Actions
    Cinematic - Fade out over 1.00 seconds using texture White Mask and color (0%, 0%, 0%) with 0% transparency
    Wait 1.00 seconds
    Cinematic - Send transmission to (All players) from Spidermonster named Very evil spider, who killed the poor peasant...: Play No sound and display Quiiiiieeeeeezzzzzz!!!!Tooooo.... beeeeeee.... continueeeeedddd!!!!. Modify duration: Set to 5.00 seconds and Wait
    Game - Victory Player 1 (Red) (Skip dialogs, Skip scores)