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. Join the 6th Melee Mapping Contest for a chance to have your map featured in this year's Hive Cup!
    Dismiss Notice
  5. Shoot to thrill, play to kill. Sate your hunger with the 33rd Modeling Contest!
    Dismiss Notice
  6. Do you hear boss music? It's the 17th Mini Mapping Contest!
    Dismiss Notice
  7. Let your favorite entries duke it out in the 15th Techtree Contest Poll.
    Dismiss Notice
  8. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    Dismiss Notice
  9. 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

BattledawnV03062015_139.w3x
Variables
ItemsSkills
StoneofBloodnew
Untitled Trigger 002
Obfuscate effect
Untitled Trigger 002 Copy
glyph of chaos
CrownofKingspickup
CrownofKingsDitch
Mine
CmaskoftheDestroyer
CmaskoftheDestroyerDicth
CalloftheWild
owl form
owlformlimit2
starfallLimit
OwlScout
avatar
resurrection
raise dead
Starfall anim
Starfallstop
prayerofmight
prayerofmightend
inferno anim
InfernoFire effect
Earthquake effect
thunderclap effect
rainOfFire
Spirit of death start
Summon Spirit of Death
SpiritofDeathTownP
ultimateRetribution
orb of slow
orbs
moonstone
staff of mastery
Bloodstone
bloodstoneDitch
bagOfGold
fromtheAshes
MetamorphTest
demon
demonting
demondie
phoenix
tome of might
horn of the damned
heartofheroes
TNTblast
TNTPlant
Kaboooom
SpiritOfDeathWarning
Untitled Category
Untitled Category
AI_triggers
XPtimer
Alarm
AIhordeSpawn
AIhordeDragon
DragonRoam
AIalliance Dragon
AIallianceSpawn
hRoam
aRoam
hHero
aHero
hControlWaypoint1
hControlWaypoint3
hControlWaypoint2
aControlWaypoint1
aControlWaypoint2
aControlWaypoint3
forest
field
mountain
hSkills
aSkills
HeroDefenceTeleportH
HeroDefenceTeleportA
Escape
EscapeDragon
KeyChain
Completion
ChainQuestH
ChainQuestA
ChainQuest2H
ChainQuest2A
unlock
Key
KeyCarrierChange
TriumphDies
Orders
overview
overview Copy
theme
theme2
theme3
theme4
theme5
xp
hold
attack
retreat
players
effecttest
effecttest Copy
Miscellaneous
Untitled Trigger 001
Endgame
Endgame2
Endgame2 Copy
AutoRepair
oviewHuman
oviewOrc
oviewSpec
Cage
Cage2
Town Portal Altar
Town Gate Altar
portal
braportal1
braportal2
scoreboard
scoreboardUpdate
Quit detection
cleric
night
misc orders
patrolwyvern
patrolgriffon
tranquilGroveEnter
tranquilGroveEnterForsaken
tranquilGroveLeave
RangerGift
BeastmasterGift
Control Points
FieldsHcontrol
FieldsAcontrol
FieldsStay
ForestsHcontrol
ForestsAcontrol
ForestStay
MountainsHcontrol
MountainsAcontrol
MountainsStay
ForestsHSeize
ForestControlchange
hControlBatch
ReplenishGarrisonAlliance
ReplenishGarrisonHorde
Dominie
Dominiehealth
dominiedirtchUse
drain
dominiedirtchAquirehuman
dominieDitchHuman
dominiedirtchAquireOrc
dominieDitchOrc
Indestructible
Intro
move1
move2
cam1
startekamera
Skip
Leaver Message
allianceLeave
hordeLeave
Outro
castleFall
victoryHorde
fortressFall
GameOver
victoryAlliance
HeroDiesRevive
heroTealDies
heroLightBlueDies
heroGreenDies
heroDarkGreenDies
heroPurpleDies
heroGreyDies
heroBrownDies
heroOrangeDies
heroTealRevive
heroBlueRevive
heroGreenRevive
heroDarkGreenRevive
heroPurpleRevive
heroGreyRevive
heroOrangeRevive
heroBrownRevive
secondHero
WaypointsAlliance
Chokepoint1
Chokepoint2
Chokepoint3
waypointA1
waypointA2
waypointA3
waypointA4
waypointA5
waypointA6
waypointA7
waypointA8
waypointA9
waypointA10
waypointA11
waypointA12
waypointA13
waypointA13 Copy
rescuesavetownhall
WaypointsHorde
Chokecheck
chokepoint4
waypointH01
waypointH02
waypointH03
waypointH04
waypointH06
waypointH05
waypointH07
waypointH08
waypointH09
waypointH10
waypoinH11
waypointH12
waypointH13
waypointH14
Initialization
Begin
Hero experience
Item drop
Item drop Copy
quest
ForcesSlotCheck
SetHandicap
MiscStartup
Visibility
startkrig1
startkrig2
startkrig3
startkrig4
startkrig5
startkrig6
startkrig7
startkrig8
startkrig9
tips
tipsRemove
tipsAdd
tipNormal
tipSpecator
tips
Spectator Mode
noHeroes
HeroSelectionHuman
toMainMenuSelectingHuman
ChosenElementalist
ChosenPaladin
ChosenWizard
ChosenDemonHunter
ChosenWarrior
ChosenRanger
SelectedElementalist
SelectedWarrior
SelectedPaladin
SelectedWizard
SelectedDemonHunter
SelectedRanger
TeleportHuman
ClosePortal1
HeroSelectionOrc
toMainMenuSelectingOrc
AnimationShadowPriest
SelectedBeastmaster
SelectedTauren
SelectedNethermancer
SelectedDoomKnight
SelectedWitchDoc
SelectedBladeMaster
ChosenBeastMaster
ChosenBladeMaster
ChosenTauren
ChosenWitchDoc
ChosenNether
ChosenDoomknight
TeleportOrc
ClosePortal2
Warnings
Keep
BarracksHuman
TownHallHuman
GreatHallOrc
BarracksOrc
Stronghold
Income
Income
LumberIncome
MillDies
farmDies
townhallDies
WarMillDies
pigfarmDies
greathallDies
SpawnHumanUnits
middleKeep
easternKeep
bootcamp
castle
westBarracks
createBatchHuman
hBatch 1
hBatch 2
hBatch 3
hBatch 4
hBatch 5
hBatch 6
hBatch 7
hBatch 8
hBatch 9
hBatch 10
hBatch 11
hBatch 12
hBatch 13
SpawnOrcUnits
createBatchOrc
mainBarracks1
mainBarracks2
fortress
westStronghold
eastStronghold
oBatch 1
oBatch 2
oBatch 3
oBatch 4
oBatch 5
oBatch 6
oBatch 7
oBatch 8
oBatch 9
oBatch 10
oBatch 11
oBatch 12
CommandHumanBuildings
westForgeEnter
westForgeLeave
eastForgeEnter
eastForgeLeave
CommandOrcBuildings
eastWarMillEnter
eastWarMillLeave
westWarMillEnter
westWarmillLeave
Succubus Den
Succubus
succubus2
fight
Queens treasure
fel collar
Testplay
GainResources
SpawnMore
SpawnLess
SpawnMoreA
parameters
SpawnMoreH
SpawnLessH
SpawnLessA
fogofwar

		
Name Type Is Array Initial Value
AbilitiesAlliance abilcode Yes
AbilitiesHorde abilcode Yes
ActiveEastForge boolean No false
ActiveEastWarMill boolean No
ActiveForge boolean No false
ActiveWestWarMill boolean No
AI_Alliance integer No
AI_Horde integer No
AI_IncomeFreqFactor real No 5.00
AIcreatepoint location No
AIcreateregion rect No
AIheros unit Yes
AIrandom integer No
AIroam_a group Yes
AIroam_h group Yes
AIskill integer No
AITempGroup group No
Alarm_Alliance boolean No
Alarm_Horde boolean No
bagsofgold group No
BannerForest unit No
BannerMountain unit No
BannerOverlook unit No
bersherkerdominiedeath boolean No
Bloodmagic group No
burneffect effect No
burning group No
Burningflag effect Yes
Caged unit No
callofthewild unitcode No
chainquestA boolean No
chainquestH boolean No
Chakra effect No
CloudRemove effect No
CloudRemove2 effect No
clouldremove effect No
ContestofWillsLvlHero integer No
ContestWillLvl integer No
CreateAt rect No
crown effect No
CrownofKingsEffect effect No
DamageCheck_H real No
deng group No
Dice integer No
DominieCarrier group No
DominieIndestructible group No
DominierevealAlliance fogmodifier No
DominierevealHorde fogmodifier No
effectpoint location No
Eidolons group No
Endgame timer No
Endgamecount integer No 12
endgametimer timerdialog No
FirestormSee fogmodifier No
Gain_startGold_Alliance real No 1500.00
Gain_startGold_Horde real No 1500.00
GainFactor_Gold_Alliance real No 1.00
GainFactor_Gold_Horde real No 1.00
GainFactor_XP_Alliance real No 7.00
GainFactor_XP_Horde real No 7.00
GameOver integer No
Garrison group Yes
GlyphofChaos location No
GoldCastle real No 10.00
GoldControlPoint real No 10.00
GoldFarm real No 1.00
GoldTownHall real No 8.00
GroundZero location No
Guard group No
Guardian unit No
heroBrown unit No
heroDarkGreen unit No
heroGray unit No
heroGreen unit No
heroLightBlue unit No
heroOrange unit No
heroTeal unit No
heroViolet unit No
hornblowerA unit No
hornblowerH unit No
hornTornado effect No
humanSpawn integer No
humanWaypoint integer No
Income_Alliance integer No 65
Income_Horde integer No 65
InfernoFirepoint location No
Intro boolean No
Judgement effect No
key boolean No
keychainAlliance quest No
keychainHorde quest No
keychainitem item No
Lumber_Alliance integer No 25
Lumber_Horde integer No 25
mask effect No
maskaura effect No
maskFireTornado effect No
maskofdeatheffect effect No
metamorphAura effect No
metamortpSmoke effect No
moonbeam effect No
moonstonenebula effect No
moonstoneposition location No
orcSpawn integer No
orcWaypoint integer No
PlayersAlliance integer No
PlayersHorde integer No
prayerduration real No
QueueHuman force No
QueueOrc force No
resseffect effect No
ret unit No
reviveBrown timer No
reviveBrownW timerdialog No
reviveDarkGreen timer No
reviveDarkGreenW timerdialog No
reviveGreen timer No
reviveGreenW timerdialog No
reviveGrey timer No
reviveGreyW timerdialog No
reviveLightBlue timer No
reviveLightBlueW timerdialog No
reviveOrange timer No
reviveOrangeW timerdialog No
revivePurple timer No
revivePurpleW timerdialog No
reviveTeal timer No
reviveTealW timerdialog No
ReviveTime real No 10.00
SeizeForest boolean No
SeizeForestTimer timer No
SelectedBeastmaster force No
SelectedBersherker force No
SelectedBladeMaster force No
SelectedDeathKnight force No
SelectedDemonHunter force No
SelectedElementalist force No
SelectedMountainKing force No
SelectedNethermancer force No
SelectedPaladin force No
SelectedRanger force No
SelectedWitchDoc force No
SelectedWizard force No
selectHuman timer No
selectOrc timer No
sgeomancerexcl effect No
Spawnfreq_Alliance real No 75.00
SpawnFreq_heroA real No 2.50
SpawnFreq_heroH real No 2.50
Spawnfreq_Horde real No 75.00
Spectators force No
SpiriofDeathSummon location No
Spiritofdeathsmoke effect No
starfallsprites effect No
startHuman boolean No
startOrc boolean No
statueAppear integer No 0
StoneOfBlood effect No
Succubus group No
succubusQuest unit No
SuccubusVisit group No
sudacarexcl effect No
supportdelay_A integer No
supportdelay_H integer No
TEMP_Group group No
TEMP_Group2 group No
TEMP_Point location No
TEMP_Point2 location No
TEMP_Point3 location No
TEMP_SFX effect No
TEMP_Summonpoint location No
TEMP_Summonpoint2 location No
TempPlayergroup force No
testeteste fogmodifier No
TheAlliance force No
TheHorde force No
Time_minute integer No
timerHuman timerdialog No
TimerOrc timerdialog No
tips force No
TNT group No
townhallattacked boolean No
Triumph unit No
triumpheffekt effect No
visibilityBlue fogmodifier No
visibilityRed fogmodifier No
void effect No
WallOfStone destructable Yes
WallOfStone_point location No
xppurple integer No
xppurpleLVL integer No
StoneofBloodnew
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to The Stone of Blood (Legendary Item)
  Actions
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Hero manipulating item) using FireAura.mdx
    Set VariableSet StoneOfBlood = (Last created special effect)
    Hero - Modify Strength of (Hero manipulating item): Add 26.
    Hero - Modify Agility of (Hero manipulating item): Add 20.
    Wait 2.00 seconds
    Unit Group - Pick every unit in Bloodmagic and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 12.00))
    Wait 2.00 seconds
    Unit Group - Pick every unit in Bloodmagic and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 12.00))
    Wait 2.00 seconds
    Unit Group - Pick every unit in Bloodmagic and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 12.00))
    Wait 2.00 seconds
    Unit Group - Pick every unit in Bloodmagic and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 12.00))
    Wait 2.00 seconds
    Unit Group - Pick every unit in Bloodmagic and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 12.00))
    Wait 8.00 seconds
    Unit Group - Pick every unit in Bloodmagic and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 12.00))
    Hero - Modify Strength of (Hero manipulating item): Subtract 26.
    Hero - Modify Agility of (Hero manipulating item): Subtract 20.
    Special Effect - Destroy StoneOfBlood
Untitled Trigger 002
  Events
    Unit - Assassin 1002 <gen> Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Stalk
  Actions
    Unit - Set (Triggering unit) movement speed to 100.00
    Wait 10.00 seconds
    Unit - Set (Triggering unit) movement speed to (Default movement speed of (Triggering unit))
Obfuscate effect
  Events
    Unit - A unit Begins casting an ability
  Conditions
    (Ability being cast) Equal to Obfuscate
  Actions
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using EarthFlare.mdx
Untitled Trigger 002 Copy
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Wall of Stone
  Actions
    Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Items\ResourceItems\ResourceEffectTarget.mdl
    Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Weapons\GlaiveMissile\GlaiveMissileTarget.mdl
    Destructible - Create a LTrc (destructablecode) at (Target point of ability being cast) facing 0.00 with scale 1 and variation (Random integer number between 1 and 5)
    Set VariableSet WallOfStone[1] = (Last created destructible)
    Animation - Change (Last created destructible)'s animation speed to 4000.00% of its original speed
    Animation - Play (Last created destructible)'s Death (animationname) animation
    Wait 0.02 seconds
    Animation - Change (Last created destructible)'s animation speed to -100.00% of its original speed
    Wait 0.70 seconds
    Animation - Change (Last created destructible)'s animation speed to 100.00% of its original speed
    Animation - Play (Last created destructible)'s Stand (animationname) animation
    Skip remaining actions
    Destructible - Create a LTrc (destructablecode) at ((Target point of ability being cast) offset by 250.00 towards ((Angle from (Position of (Triggering unit)) to (Target point of ability being cast)) + 90.00) degrees.) facing 0.00 with scale 1 and variation (Random integer number between 1 and 5)
glyph of chaos
  Events
    Unit - A unit Uses an item
    Unit - A unit Starts the effect of an ability
  Conditions
    (Item-type of (Item being manipulated)) Equal to Glyph of Chaos (legendary artifact)
    (Ability being cast) Equal to Combust
  Actions
    Set VariableSet GlyphofChaos = (Target point of ability being cast)
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using Abilities\Spells\Human\Feedback\SpellBreakerAttack.mdl
    Animation - Play (Triggering unit)'s spell (animationname) animation
    Animation - Play (Hero manipulating item)'s slam (animationname) animation
    Wait 0.20 seconds
    Special Effect - Create a special effect at GlyphofChaos using Abilities\Weapons\FlyingMachine\FlyingMachineImpact.mdl
    Wait 0.30 seconds
    Special Effect - Create a special effect at GlyphofChaos using NewGroundEX.mdx
    Special Effect - Create a special effect at GlyphofChaos using NewDirtEXNofire.mdx
    Wait 0.20 seconds
    Special Effect - Create a special effect at GlyphofChaos using NewDirtEXNofire.mdx
    Special Effect - Create a special effect at GlyphofChaos using ExplosionBIG.mdx
    Environment - Create a 2.00 second Normal ripple deformation at GlyphofChaos with starting radius 300.00, ending radius 400.00, and depth 16.00, using 3.00 second ripples spaced 512.00 apart
    Unit Group - Pick every unit in (Units within 400.00 of GlyphofChaos.) and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 250.00))
    Unit - Cause (Hero manipulating item) to damage circular area after 0 seconds of radius 400.00 at GlyphofChaos, dealing 100.00 damage of attack type Chaos and damage type Fire
    Wait 1.00 seconds
    Special Effect - Destroy (Last created special effect)
CrownofKingspickup
  Events
    Unit - A unit Acquires an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Crown of Kings (Legendary item)
  Actions
    Special Effect - Create a special effect attached to the head (attachpoint) of (Triggering unit) using LightningEmpowerCaster.mdx
    Special Effect - Create a special effect attached to the head (attachpoint) of (Triggering unit) using InnerFireTarget.mdx
    Set VariableSet crown = (Last created special effect)
    Special Effect - Create a special effect attached to the head (attachpoint) of (Triggering unit) using Holy2.mdx
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using DivineAegis.mdx
    Set VariableSet CrownofKingsEffect = (Last created special effect)
CrownofKingsDitch
  Events
    Unit - A unit Loses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Crown of Kings (Legendary item)
  Actions
    Special Effect - Destroy CrownofKingsEffect
    Special Effect - Destroy crown
Mine
  Events
    Unit - A unit Dies
  Conditions
    (Unit-type of (Triggering unit)) Equal to Goblin Land Mine
  Actions
    Set VariableSet effectpoint = (Position of (Triggering unit))
    Special Effect - Create a special effect at effectpoint using NewDirtEXNofire.mdx
    Custom script: call RemoveLocation (udg_effectpoint)
    Unit Group - Pick every unit in (Units within 125.00 of (Position of (Triggering unit)).) and do (If (((Triggering unit) is A Hero) Equal to True) then do (Set life of (Picked unit) to ((Life of (Picked unit)) - 150.00)) else do (Do nothing))
    Wait 5.00 seconds
    Special Effect - Destroy (Last created special effect)
CmaskoftheDestroyer
  Events
    Unit - A unit Acquires an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Mask of the Destroyer (Legendary Artifact)
  Actions
    Special Effect - Create a special effect attached to the head (attachpoint) of (Triggering unit) using MagmaBurst.mdx
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Blood Presence.mdx
    Set VariableSet mask = (Last created special effect)
    Special Effect - Create a special effect at (Position of (Triggering unit)) using MagmaBurst.mdx
    Set VariableSet maskFireTornado = (Last created special effect)
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using Pyro Missle.mdx
    Set VariableSet maskaura = (Last created special effect)
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using PulsingFire.mdx
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\Orc\TrollBerserk\TrollBeserkerTarget.mdl
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Triggering unit) using FireAura.mdx
    Set VariableSet maskofdeatheffect = (Last created special effect)
    Wait 2 seconds
    Special Effect - Destroy maskFireTornado
CmaskoftheDestroyerDicth
  Events
    Unit - A unit Loses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Mask of the Destroyer (Legendary Artifact)
  Actions
    Special Effect - Destroy maskofdeatheffect
    Special Effect - Destroy maskaura
    Special Effect - Destroy mask
CalloftheWild
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Call of the Wild (Rexxar)
  Actions
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Triggering unit) using AncientExplode.mdx
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 1 and 2) Timber Wolf for (Owner of (Triggering unit)) at TEMP_Summonpoint2 facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 2 and 3) Timber Wolf for (Owner of (Triggering unit)) at TEMP_Summonpoint2 facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 2) Wendigo for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 1 and 2) Wendigo for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Elder Wendigo for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 1 and 2) Polar Furbolg for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Wait 0.10 seconds
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Snowy Owl for Neutral Passive at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Wait 0.10 seconds
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Hawk (Level 1) for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Seal for Neutral Passive at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Penguin for Neutral Passive at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Wait 0.10 seconds
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Pandaren for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create 1 Giant Frost Wolf for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Wait 0.10 seconds
    Set VariableSet TEMP_Summonpoint2 = ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 650.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Icetusk Mammoth for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 600.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Special Effect - Create a special effect attached to the head (attachpoint) of (Last created unit) using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
owl form
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Hawk Form
  Actions
    Set VariableSet TEMP_Summonpoint2 = (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Summonpoint2 using AncientsWrath.mdx
    Environment - Create a 0.70 second Temporary crater deformation at TEMP_Summonpoint2 with radius 248.00 and depth 24.00
    Special Effect - Create a special effect at (Position of (Casting unit)) using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Special Effect - Create a special effect attached to the head (attachpoint) of (Triggering unit) using Objects\Spawnmodels\Undead\GargoyleCrumble\GargoyleCrumble.mdl
    Special Effect - Destroy (Last created special effect)
    Special Effect - Create a special effect attached to the head (attachpoint) of (Triggering unit) using Abilities\Spells\NightElf\Tranquility\TranquilityTarget.mdl
    Special Effect - Destroy (Last created special effect)
    Wait 0.30 seconds
    Environment - Stop (Last created terrain deformation) over 0.40 seconds
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
owlformlimit2
  Events
    Unit - A unit Acquires an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Gold Coins
    ((Triggering unit) is A flying unit) Equal to True
  Actions
    Player - Add -200 to (Owner of (Triggering unit)).Current gold
    Item - Create Gold Coins at (Position of (Triggering unit))
starfallLimit
  Events
    Unit - Windranger 0382 <gen> Begins casting an ability
  Conditions
    Or - Any (Conditions) are true
      Conditions
        (Ability being cast) Equal to Wind Walk
        (Ability being cast) Equal to Shadow Meld
  Actions
    If ((Current order of (Casting unit)) Equal to (Order(starfall))) then do (Order (Casting unit) to Stop.) else do (Do nothing)
OwlScout
  Events
    Unit - Windranger 0382 <gen> Begins casting an ability
  Conditions
    (Ability being cast) Equal to Scout
  Actions
    Wait 0.50 seconds
    Unit Group - Pick every unit in (Units within 512 of (Position of (Triggering unit)).) and do (Actions)
      Loop - Actions
        If ((Unit-type of (Picked unit)) Equal to Owl Scout (Level 1)) then do (Order (Picked unit) to Right-Click.(Triggering unit)) else do (Do nothing)
    Unit Group - Pick every unit in (Units within 512 of (Position of (Triggering unit)).) and do (Actions)
      Loop - Actions
        If ((Unit-type of (Picked unit)) Equal to Owl Scout (Level 2)) then do (Order (Picked unit) to Right-Click.(Triggering unit)) else do (Do nothing)
    Unit Group - Pick every unit in (Units within 512 of (Position of (Triggering unit)).) and do (Actions)
      Loop - Actions
        If ((Unit-type of (Picked unit)) Equal to Owl Scout (Level 3)) then do (Order (Picked unit) to Right-Click.(Triggering unit)) else do (Do nothing)
avatar
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Avatar
  Actions
    Environment - Create a 2.00 second Depression ripple deformation at (Position of (Triggering unit)) with starting radius 10.00, ending radius 500.00, and depth 64, using 1 second ripples spaced 512 apart
    Wait 0.30 seconds
    Special Effect - Create a special effect attached to the head (attachpoint) of (Triggering unit) using EMPBomb.mdx
    Special Effect - Destroy (Last created special effect)
    Wait 1.00 seconds
    Environment - Stop (Last created terrain deformation) over 1.00 seconds
resurrection
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Resurrection
  Actions
    Set VariableSet TEMP_Point = (Position of (Triggering unit))
    Special Effect - Create a special effect at TEMP_Point using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    Set VariableSet resseffect = (Last created special effect)
    Custom script: call RemoveLocation (udg_TEMP_Point)
    Wait 2 seconds
    Special Effect - Destroy resseffect
raise dead
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    And - All (Conditions) are true
      Conditions
        (Ability being cast) Equal to Raise Dead
        (Level of Raise Dead for (Triggering unit)) Greater than or equal to 2
  Actions
    Set VariableSet TEMP_Point = (Position of (Target unit of ability being cast))
    Unit - Create 1 Skeleton Archer for (Owner of (Triggering unit)) at TEMP_Point facing (Position of (Triggering unit))
    Unit - Add a 45.00 second Raise Dead expiration timer to (Last created unit)
    Animation - Play (Last created unit)'s birth (animationname) animation
    Special Effect - Create a special effect at TEMP_Point using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Point)
    Special Effect - Destroy (Last created special effect)
Starfall anim
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Starfall
  Actions
    Animation - Play (Casting unit)'s stand victory (animationname) animation
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Casting unit) using war3mapImported\HolyBlessing.mdx
    Set VariableSet starfallsprites = (Last created special effect)
    Wait 2 seconds
    Special Effect - Destroy starfallsprites
Starfallstop
  Events
    Unit - A unit Finishes casting an ability
  Conditions
    (Ability being cast) Equal to Starfall
  Actions
    Special Effect - Destroy starfallsprites
prayerofmight
  Events
    Unit - A unit Finishes casting an ability
  Conditions
    (Ability being cast) Equal to Prayer of Protection
  Actions
    Unit - Add Divine Prayer to (Casting unit)
    Set VariableSet Dice = (3 + ((Level of Prayer of Protection for (Triggering unit)) x 3))
    Wait (Real(Dice)) seconds
    Unit - Remove Divine Prayer from (Casting unit)
    Unit Group - Pick every unit in (Units owned by Player 2 (Blue) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 3 (Teal) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 7 (Green) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 10 (Light Blue) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 11 (Dark Green) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Wait 2 seconds
    Unit - Remove Divine Prayer from (Casting unit)
    Unit Group - Pick every unit in (Units owned by Player 2 (Blue) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 3 (Teal) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 7 (Green) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 10 (Light Blue) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 11 (Dark Green) of type Paladin) and do (If (((Picked unit) has buff Prayer of Protection) Equal to False) then do (Remove Divine Prayer from (Picked unit)) else do (Do nothing))
prayerofmightend
  Events
    Time - Every 20.00 seconds of game time
  Conditions
    (Paladin 0551 <gen> has buff Prayer of Protection) Equal to False
  Actions
    Unit - Remove Divine Prayer from Paladin 0551 <gen>
    Unit Group - Pick every unit in (Units of type Paladin) and do (Actions)
      Loop - Actions
        Unit - Remove Divine Prayer from (Picked unit)
inferno anim
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Inferno
  Actions
    Animation - Play (Casting unit)'s stand channel (animationname) animation
InfernoFire effect
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to InfernoFire
  Actions
    Set VariableSet InfernoFirepoint = (Target point of ability being cast)
    Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from InfernoFirepoint to a radius of 248.00.
    Visibility - Enable (Last created visibility modifier)
    Set VariableSet FirestormSee = (Last created visibility modifier)
    Wait 1.00 seconds
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Current order of (Triggering unit)) Equal to (Order(flamestrike))
      Then - Actions
        Do nothing
      Else - Actions
        Skip remaining actions
    Wait 1.00 seconds
    Special Effect - Create a special effect at InfernoFirepoint using NewMassiveEX.mdx
    Wait 1.00 seconds
    Wait 2.00 seconds
    Special Effect - Create a special effect at InfernoFirepoint using NewDirtEXNofire.mdx
    Custom script: call RemoveLocation (udg_InfernoFirepoint)
    Visibility - Destroy FirestormSee
Earthquake effect
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Earthquake
  Actions
    Environment - Create a 3.00 second Depression ripple deformation at (Position of (Triggering unit)) with starting radius 0.00, ending radius 300.00, and depth 60.00, using 1 second ripples spaced 512 apart
    Wait 2.00 seconds
    Wait 0.50 seconds
    Set VariableSet TEMP_Point = ((Target point of ability being cast) offset by 100.00 towards 30.00 degrees.)
    Special Effect - Create a special effect at TEMP_Point using IceSparks.mdx
    Custom script: call RemoveLocation (udg_TEMP_Point)
    Wait 0.30 seconds
    Set VariableSet TEMP_Point = ((Target point of ability being cast) offset by 100.00 towards 210.00 degrees.)
    Special Effect - Create a special effect at TEMP_Point using IceSparks.mdx
    Custom script: call RemoveLocation (udg_TEMP_Point)
    Wait 2.00 seconds
    If ((Current order of (Triggering unit)) Equal to (Order(earthquake))) then do (Do nothing) else do (Skip remaining actions)
    Environment - Create a 3.00 second Depression ripple deformation at (Position of (Triggering unit)) with starting radius 0.00, ending radius 300.00, and depth 45.00, using 1 second ripples spaced 512 apart
    Set VariableSet TEMP_Point = ((Target point of ability being cast) offset by 50.00 towards 280.00 degrees.)
    Special Effect - Create a special effect at TEMP_Point using IceSparks.mdx
    Custom script: call RemoveLocation (udg_TEMP_Point)
thunderclap effect
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Thunder Clap
  Actions
    Environment - Create a 1.50 second Depression ripple deformation at (Position of (Triggering unit)) with starting radius 0.00, ending radius 300.00, and depth 60.00, using 1 second ripples spaced 512 apart
    Wait 0.05 seconds
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Casting unit) using IceSparks.mdx
rainOfFire
  Events
    Unit - A unit Is issued an order targeting a point
    Unit - A unit Starts the effect of an ability
  Conditions
    Or - Any (Conditions) are true
      Conditions
        (Issued order) Equal to (Order(rainoffire))
        (Ability being cast) Equal to Rain of Fire (Neutral Hostile 2)
  Actions
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Triggering unit) using Abilities\Spells\Demon\ReviveDemon\ReviveDemon.mdx
    Special Effect - Create a special effect at (Target point of ability being cast) using Meteor.mdx
Spirit of death start
  Events
    Unit - A unit Begins casting an ability
  Conditions
    (Ability being cast) Equal to Summon the Spirit of Death
  Actions
    Set VariableSet SpiriofDeathSummon = (Target point of ability being cast)
    Wait 0.50 seconds
    Lightning - Create a Finger of Death lightning effect from source (Position of (Triggering unit)) to target SpiriofDeathSummon
    Wait 3.50 seconds
    Lightning - Destroy (Last created lightning effect)
Summon Spirit of Death
  Events
    Unit - A unit Begins casting an ability
  Conditions
    (Ability being cast) Equal to Summon the Spirit of Death
  Actions
    Set VariableSet SpiriofDeathSummon = (Target point of ability being cast)
    Visibility - Create an initially Enabled visibility modifier for (Owner of (Triggering unit)) emitting Visibility from SpiriofDeathSummon to a radius of 248.00.
    Visibility - Enable (Last created visibility modifier)
    Wait 1.70 seconds
    Special Effect - Create a special effect at SpiriofDeathSummon using Environment\UndeadBuildingFire\UndeadLargeBuildingFire1.mdl
    Set VariableSet Spiritofdeathsmoke = (Last created special effect)
    Wait 1.90 seconds
    Special Effect - Destroy Spiritofdeathsmoke
    Special Effect - Create a special effect at SpiriofDeathSummon using war3mapImported\SmokeBombTarget.mdx
    Set VariableSet Spiritofdeathsmoke = (Last created special effect)
    Special Effect - Create a special effect at SpiriofDeathSummon using CenarionFury.mdx
    Environment - Create a 5.00 second Temporary crater deformation at SpiriofDeathSummon with radius 250.00 and depth 32.00
    Environment - Stop (Last created terrain deformation) over 5.00 seconds
    Cinematic - Fade out and back in over 6.00 seconds using texture Black Mask and color (0%, 0%, 0%) with 85.00% transparency
    Wait 1.00 seconds
    Special Effect - Create a special effect at SpiriofDeathSummon using Abilities\Spells\NightElf\Cyclone\CycloneTarget.mdl
    Set VariableSet CloudRemove2 = (Last created special effect)
    Wait 1.00 seconds
    Special Effect - Create a special effect at SpiriofDeathSummon using Desecrate.mdx
    Special Effect - Create a special effect at SpiriofDeathSummon using Abilities\Spells\Undead\Graveyard\GraveMarker.mdl
    Set VariableSet CloudRemove = (Last created special effect)
    Wait 1.00 seconds
    Wait 1.00 seconds
    Special Effect - Create a special effect at SpiriofDeathSummon using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
    Wait 0.50 seconds
    Cinematic - Fade out and back in over 4.00 seconds using texture Black Mask and color (0%, 0%, 0%) with 75.00% transparency
    Special Effect - Create a special effect at SpiriofDeathSummon using Void.mdx
    Set VariableSet void = (Last created special effect)
    Wait 0.10 seconds
    Special Effect - Destroy CloudRemove2
    Wait 0.70 seconds
    Special Effect - Destroy CloudRemove
    Special Effect - Create a special effect at SpiriofDeathSummon using Objects\Spawnmodels\Undead\GargoyleCrumble\GargoyleCrumble.mdl
    Special Effect - Destroy void
    Visibility - Destroy (Last created visibility modifier)
    Unit - Create 1 Spirit of Death for (Owner of (Triggering unit)) at SpiriofDeathSummon facing (Position of (Triggering unit))
    Unit - Change color of (Last created unit) to Maroon
    Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Owner of (Triggering unit)) Equal to Player 1 (Red)
      Then - Actions
        Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Spirit of Death) and do (If ((Keep 0117 <gen> is alive) Equal to True) then do (Order (Picked unit) to Move To.(Center of HumanSpawnMiddleKeep <gen>)) else do (Order (Picked unit) to Move To.(Center of waypoint19 <gen>)))
      Else - Actions
    Wait 5.00 seconds
    Special Effect - Destroy Spiritofdeathsmoke
SpiritofDeathTownP
  Events
    Unit - A unit Is issued an order targeting an object
  Conditions
    And - All (Conditions) are true
      Conditions
        (Item-type of (Target item of issued order)) Equal to Scroll of Town Portal
        (Unit-type of (Triggering unit)) Equal to Nethermancer
  Actions
    Wait 3.50 seconds
    Unit Group - Pick every unit in (Units of type Spirit of Death) and do (Change ownership of (Picked unit) to Neutral Passive and Retain color)
    Wait 1.00 seconds
    Unit Group - Pick every unit in (Units of type Spirit of Death) and do (Change ownership of (Picked unit) to (Owner of (Triggering unit)) and Retain color)
ultimateRetribution
  Events
    Unit - A unit Dies
  Conditions
    Or - Any (Conditions) are true
      Conditions
        ((Triggering unit) has an item of type Aegis of Retribution (Legendary Artifact)) Equal to True
  Actions
    Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from (Position of (Killing unit)) to a radius of 1024.00.
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Killing unit) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCaster.mdl
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCaster.mdl
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Killing unit) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
    Wait 2.50 seconds
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Killing unit) using JudgementTarget.mdx
    Unit - Kill (Killing unit)
    Item - Remove (Item carried by (Triggering unit) of type Aegis of Retribution (Legendary Artifact))
    Item - Create Aegis of Retribution (Legendary Artifact) at (Position of (Triggering unit))
    Hero - Drop (Item carried by (Triggering unit) of type Aegis of Retribution (Legendary Artifact)) from (Triggering unit).
    Wait 2.00 seconds
    Visibility - Destroy (Last created visibility modifier)
    Wait 5.50 seconds
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Killing unit) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
    Unit - Kill (Killing unit)
orb of slow
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Orb of Slow
  Actions
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Hero manipulating item) using Sun.mdx
    Environment - Create a 2.00 second Normal ripple deformation at (Position of (Hero manipulating item)) with starting radius 300.00, ending radius 400.00, and depth 16.00, using 3.00 second ripples spaced 512.00 apart
    Wait 1.00 seconds
    Special Effect - Destroy (Last created special effect)
orbs
  Events
    Unit - A unit Uses an item
  Conditions
    Or - Any (Conditions) are true
      Conditions
        (Item-type of (Item being manipulated)) Equal to Orb of Slow
        (Item-type of (Item being manipulated)) Equal to Orb of Lightning
        (Item-type of (Item being manipulated)) Equal to Orb of Fire
        (Item-type of (Item being manipulated)) Equal to Orb of Frost
        (Item-type of (Item being manipulated)) Equal to Orb of Venom
  Actions
    Animation - Play (Triggering unit)'s Attack - 2 (animationname) animation
moonstone
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Moonstone (Legendary Arifact)
  Actions
    Set VariableSet moonstoneposition = (Position of (Triggering unit))
    Special Effect - Create a special effect at (Position of (Triggering unit)) using Nebula.mdx
    Set VariableSet moonstonenebula = (Last created special effect)
    Unit Group - Pick every unit in Eidolons and do (Create a special effect attached to the overhead (attachpoint) of (Picked unit) using Abilities\Spells\Items\ResourceItems\ResourceEffectTarget.mdl)
    Unit Group - Pick every unit in Eidolons and do (Kill (Picked unit))
    Animation - Play (Hero manipulating item)'s slam (animationname) animation
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Hero manipulating item) using Abilities\Spells\Undead\ReplenishMana\ReplenishManaCasterOverhead.mdl
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Hero manipulating item) using Abilities\Spells\NightElf\Starfall\StarfallCaster.mdl
    Set VariableSet moonbeam = (Last created special effect)
    Environment - Create a 3.00 second Normal ripple deformation at (Position of (Hero manipulating item)) with starting radius 200.00, ending radius 600.00, and depth 16.00, using 3.00 second ripples spaced 512.00 apart
    Wait 1.00 seconds
    Special Effect - Create a special effect at (moonstoneposition offset by 250.00 towards 0 degrees.) using Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl
    Special Effect - Create a special effect at (moonstoneposition offset by 250.00 towards 60.00 degrees.) using Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl
    Special Effect - Create a special effect at (moonstoneposition offset by 250.00 towards 120.00 degrees.) using Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl
    Special Effect - Create a special effect at (moonstoneposition offset by 250.00 towards 180.00 degrees.) using Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl
    Special Effect - Create a special effect at (moonstoneposition offset by 250.00 towards 240.00 degrees.) using Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl
    Special Effect - Create a special effect at (moonstoneposition offset by 250.00 towards 300.00 degrees.) using Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl
    Wait 0.80 seconds
    -------- fghfh --------
    Environment - Create a 1.00 second Depression ripple deformation at moonstoneposition with starting radius 100.00, ending radius 300.00, and depth 16.00, using 3.00 second ripples spaced 200.00 apart
    Unit - Create 1.Eidolon for (Owner of (Triggering unit)) at (moonstoneposition offset by 250.00 towards 0 degrees.) facing Default building facing degrees
    Unit Group - Add (Last created unit) to Eidolons
    Unit - Create 1.Eidolon for (Owner of (Triggering unit)) at (moonstoneposition offset by 250.00 towards 60.00 degrees.) facing Default building facing degrees
    Unit Group - Add (Last created unit) to Eidolons
    Unit - Create 1.Eidolon for (Owner of (Triggering unit)) at (moonstoneposition offset by 250.00 towards 120.00 degrees.) facing Default building facing degrees
    Unit Group - Add (Last created unit) to Eidolons
    Unit - Create 1.Eidolon for (Owner of (Triggering unit)) at (moonstoneposition offset by 250.00 towards 180.00 degrees.) facing Default building facing degrees
    Unit Group - Add (Last created unit) to Eidolons
    Unit - Create 1.Eidolon for (Owner of (Triggering unit)) at (moonstoneposition offset by 250.00 towards 240.00 degrees.) facing Default building facing degrees
    Unit Group - Add (Last created unit) to Eidolons
    Unit - Create 1.Eidolon for (Owner of (Triggering unit)) at (moonstoneposition offset by 250.00 towards 300.00 degrees.) facing Default building facing degrees
    Unit Group - Add (Last created unit) to Eidolons
    Special Effect - Destroy moonbeam
    Unit Group - Pick every unit in (Units of type Eidolon) and do (Create a special effect attached to the overhead (attachpoint) of (Picked unit) using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl)
    Special Effect - Destroy moonstonenebula
staff of mastery
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Staff of Mastery (legendary item)
  Actions
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Hero manipulating item) using ChakraTarget.mdx
    Set VariableSet Chakra = (Last created special effect)
    Wait 3.00 seconds
    Special Effect - Destroy Chakra
Bloodstone
  Events
    Unit - A unit Acquires an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to The Stone of Blood (Legendary Item)
  Actions
    Unit Group - Add (Hero manipulating item) to Bloodmagic
bloodstoneDitch
  Events
    Unit - A unit Loses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to The Stone of Blood (Legendary Item)
  Actions
    Unit Group - Remove (Hero manipulating item) from Bloodmagic.
bagOfGold
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Endless Bag of Gold
  Actions
    Unit Group - Add (Hero manipulating item) to bagsofgold
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Hero manipulating item) using UI\Feedback\GoldCredit\GoldCredit.mdl
    Player - Add (Random integer number between 39 and 212) to (Owner of (Hero manipulating item)).Current gold
fromtheAshes
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to From The Ashes
  Actions
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Genesis.mdx
    Wait 1.00 seconds
    Special Effect - Destroy (Last created special effect)
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using LightStrikeArray.mdx
MetamorphTest
  Events
    Unit - A unit Begins casting an ability
  Conditions
    (Ability being cast) Equal to Metamorphosis
  Actions
    Set VariableSet TEMP_Summonpoint2 = (Position of (Triggering unit))
    Environment - Create a 0.70 second Temporary crater deformation at TEMP_Summonpoint2 with radius 248.00 and depth 24.00
    Special Effect - Create a special effect attached to the origin (attachpoint) of Shadow Warrior 0590 <gen> using GrudgeAura.mdx
    Set VariableSet metamorphAura = (Last created special effect)
    Special Effect - Create a special effect attached to the origin (attachpoint) of Shadow Warrior 0590 <gen> using SmokeColumn.mdx
    Set VariableSet metamortpSmoke = (Last created special effect)
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint2)
    Wait 0.30 seconds
    Environment - Stop (Last created terrain deformation) over 0.40 seconds
    Wait 30.00 seconds
    Special Effect - Destroy metamortpSmoke
    Special Effect - Destroy metamorphAura
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using LightStrikeArray.mdx
    Special Effect - Create a special effect at (Position of (Casting unit)) using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
demon
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Druistadt's Figurine (legendary artifact)
  Actions
    Set VariableSet ContestofWillsLvlHero = (Hero level of (Hero manipulating item))
    Game - Display to (All players matching ((Owner of (Hero manipulating item)) Equal to (Matching player)).) the text: (|c00FF0000Hero: + (String(ContestofWillsLvlHero)))
    Set VariableSet ContestWillLvl = (Random integer number between 0 and 9)
    Game - Display to (All players matching ((Owner of (Hero manipulating item)) Equal to (Matching player)).) the text: (|c00FF0000Demon: + (String(ContestWillLvl)))
    Wait 0.50 seconds
    Unit Group - Pick every unit in (Units within 300.00 of (Position of (Hero manipulating item)).) and do (If ((Unit-type of (Picked unit)) Equal to Spawnling of Arullu (Standard)) then do (If (ContestWillLvl Less than or equal to ContestofWillsLvlHero) then do (Do nothing) else do (Change ownership of (Picked unit) to Neutral Hostile and Retain color)) else do (Do nothing))
    Unit Group - Pick every unit in (Units within 300.00 of (Position of (Hero manipulating item)).) and do (If ((Unit-type of (Picked unit)) Equal to Spawnling of Arullu (Standard)) then do (If (ContestWillLvl Less than or equal to ContestofWillsLvlHero) then do (Display to (All players matching ((Owner of (Hero manipulating item)) Equal to (Matching player)).) the text: |c00FF0000Contest of Wills succeded!) else do (Display to (All players matching ((Owner of (Hero manipulating item)) Equal to (Matching player)).) the text: |c00FF0000Contest of Wills failed!)) else do (Do nothing))
demonting
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Druistadt's Figurine (legendary artifact)
  Actions
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 1.20)
    Unit Group - Pick every unit in (Units within 512 of (Position of (Hero manipulating item)).) and do (If ((Unit-type of (Picked unit)) Equal to Spawnling of Arullu (Standard)) then do (Create a special effect at (Position of (Picked unit)) using NewDirtEX.mdx) else do (Do nothing))
    Unit Group - Pick every unit in (Units within 512 of (Position of (Hero manipulating item)).) and do (If ((Unit-type of (Picked unit)) Equal to Spawnling of Arullu (Standard)) then do (Create a special effect at (Position of (Picked unit)) using NewMassiveEX.mdx) else do (Do nothing))
    Wait 3.50 seconds
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
demondie
  Events
    Unit - A unit Dies
  Conditions
    (Unit-type of (Dying unit)) Equal to Spawnling of Arullu (Standard)
  Actions
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Dying unit) using Doomsday.mdx
phoenix
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Soul of the Fire (Legendary Artifact)
  Actions
    Cinematic - Fade out and back in over 1.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 60.00% transparency
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 2.00)
    Unit Group - Pick every unit in (Units of type Phoenix) and do (Play (Picked unit)'s Morph Alternate (animationname) animation)
    Unit Group - Pick every unit in (Units of type Phoenix) and do (Create a special effect attached to the chest (attachpoint) of (Picked unit) using Cinderflame.mdx)
    Unit Group - Pick every unit in (Units of type Phoenix) and do (Create a special effect attached to the origin (attachpoint) of (Picked unit) using JudgementTarget.mdx)
    Unit Group - Pick every unit in (Units of type Phoenix) and do (Create a special effect attached to the origin (attachpoint) of (Picked unit) using PulsingFire.mdx)
    Wait 0.83 seconds
    Unit Group - Pick every unit in (Units of type Phoenix) and do (Reset (Picked unit)'s animation)
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
    Special Effect - Destroy (Last created special effect)
tome of might
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Tome of Might (Legendary Item)
  Actions
    Cinematic - Fade out and back in over 1.00 seconds using texture Black Mask and color (100.00%, 100.00%, 100.00%) with 85.00% transparency
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 1.00)
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using DeathAura.mdx
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Hero manipulating item) using Earth NovaTarget.mdx
    Wait 0.83 seconds
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
    Special Effect - Destroy (Last created special effect)
horn of the damned
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Horn of the Damned Legion (Legendary Artifact)
  Actions
    Environment - Create a 2.00 second Normal ripple deformation at (Position of (Triggering unit)) with starting radius 100.00, ending radius 400.00, and depth 16.00, using 1 second ripples spaced 200.00 apart
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 1.20)
    Cinematic - Fade out and back in over 4.00 seconds using texture Black Mask and color (0%, 0%, 0%) with 70.00% transparency
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
    Special Effect - Create a special effect at (Position of (Triggering unit)) using ShadowTornado.mdx
    Set VariableSet hornTornado = (Last created special effect)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Special Effect - Create a special effect at TEMP_Summonpoint using DarkPillar.mdx
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create 2 Skeleton Warrior for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 1 and 3) Skeleton Warrior for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Special Effect - Create a special effect at TEMP_Summonpoint using DarkPillar.mdx
    Unit - Create 2 Skeleton Warrior for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0.00 and 360.00) degrees.) facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create 3 Skeleton Warrior for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Special Effect - Create a special effect at TEMP_Summonpoint using DarkPillar.mdx
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 3 and 4) Skeleton Archer for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create 1 Frost Wyrm for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Special Effect - Create a special effect at TEMP_Summonpoint using DarkPillar.mdx
    Unit - Create (Random integer number between 0 and 2) Stone Form Gargoyle for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Banshee for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Wait 0.15 seconds
    Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by (Random real number between 100.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.) using NewDarkPillar.mdx
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 1 and 3) Skeleton Archer for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 1 and 3) Skeleton Warrior for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 0 and 1) Frost Revenant for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 1 and 3) Skeletal Mage for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create (Random integer number between 1 and 3) Skeleton Warrior for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Wait 0.15 seconds
    Set VariableSet TEMP_Summonpoint = ((Position of (Triggering unit)) offset by (Random real number between 200.00 and 400.00) towards (Random real number between 0 and 359.00) degrees.)
    Unit - Create 2 Skeleton Archer for (Owner of (Triggering unit)) at TEMP_Summonpoint facing (Position of (Triggering unit))
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Last created unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
    Custom script: call RemoveLocation (udg_TEMP_Summonpoint)
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
    Special Effect - Destroy hornTornado
heartofheroes
  Events
    Unit - A unit Uses an item
  Conditions
    (Item-type of (Item being manipulated)) Equal to Heart of Heroes (legendary artifact)
  Actions
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 1.20)
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Hero manipulating item) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Hero manipulating item) using Abilities\Spells\Human\Resurrect\Resurrecttarget.mdx
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Hero manipulating item) using Holy2.mdx
    Hero - Add 3500 experience to (Hero manipulating item), Show level-up graphics
    Wait 0.50 seconds
    Cinematic - Fade out and back in over 2.00 seconds using texture White Mask and color (100.00%, 100.00%, 100.00%) with 70.00% transparency
    Wait 1.50 seconds
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
TNTblast
  Events
    Unit - A unit Dies
  Conditions
    (Unit-type of (Triggering unit)) Equal to TNT Barrel
  Actions
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using NewDirtEX.mdx
    Special Effect - Create a special effect attached to the origin (attachpoint) of (Triggering unit) using NewMassiveEX.mdx
    Set VariableSet TNT = (Units within 600.00 of (Position of (Triggering unit)).)
    Unit Group - Pick every unit in TNT and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Or - Any (Conditions) are true
              Conditions
                (Unit-type of (Picked unit)) Equal to Keep
                (Unit-type of (Picked unit)) Equal to Town Hall
                (Unit-type of (Picked unit)) Equal to Castle
                (Unit-type of (Picked unit)) Equal to Fortress
                (Unit-type of (Picked unit)) Equal to Stronghold
          Then - Actions
            If (((Picked unit) is A structure) Equal to False) then do (Set life of (Picked unit) to ((Life of (Picked unit)) - 250.00)) else do (Do nothing)
          Else - Actions
    Set VariableSet TNT = (Units within 400.00 of (Position of (Triggering unit)).)
    Unit Group - Pick every unit in TNT and do (Actions)
      Loop - Actions
        If (((Picked unit) is A structure) Equal to True) then do (Set life of (Picked unit) to ((Life of (Picked unit)) - 700.00)) else do (Do nothing)
        If (((Picked unit) is A structure) Equal to False) then do (Set life of (Picked unit) to ((Life of (Picked unit)) - 250.00)) else do (Do nothing)
    Set VariableSet TNT = (Units within 250.00 of (Position of (Triggering unit)).)
    Unit Group - Pick every unit in TNT and do (Actions)
      Loop - Actions
        If (((Picked unit) is A structure) Equal to True) then do (Set life of (Picked unit) to ((Life of (Picked unit)) - 800.00)) else do (Do nothing)
        If (((Picked unit) is A structure) Equal to False) then do (Set life of (Picked unit) to ((Life of (Picked unit)) - 350.00)) else do (Do nothing)
    Custom script: call DestroyGroup (udg_TNT)
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 1.20)
    Wait 2 seconds
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
TNTPlant
  Events
    Unit - A unit Begins casting an ability
  Conditions
    (Ability being cast) Equal to Plant TNT
  Actions
Kaboooom
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
    (Ability being cast) Equal to Kaboom! (Goblin Sapper)
  Actions
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 1.20)
    Wait 2 seconds
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
SpiritOfDeathWarning
  Events
    Unit - A unit Learns a skill
    Unit - Nethermancer 0018 <gen> Learns a skill
  Conditions
    (Learned Hero Skill) Equal to Summon the Spirit of Death
  Actions
    Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) for 4.00 seconds the text: |c00FF0303Tip: Spirit of Death will deal massive damage around itself, but also to own units. Use wisely.
XPtimer
  Events
    Time - Every 60.00 seconds of game time
  Conditions
  Actions
    Set VariableSet Time_minute = (Time_minute + 1)
Alarm
  Events
    Unit - A unit Is attacked
    Unit - Stronghold 0461 <gen> Is attacked
    Unit - Great Hall 0444 <gen> Is attacked
    Unit - Barracks 0187 <gen> Is attacked
    Unit - Barracks 0182 <gen> Is attacked
    Unit - Stronghold 0134 <gen> Is attacked
  Conditions
    Or - Any (Conditions) are true
      Conditions
        (Unit-type of (Triggering unit)) Equal to Barracks
        (Unit-type of (Triggering unit)) Equal to Town Hall
        (Unit-type of (Triggering unit)) Equal to Keep
        (Unit-type of (Triggering unit)) Equal to Barracks
        (Unit-type of (Triggering unit)) Equal to Stronghold
        (Unit-type of (Triggering unit)) Equal to Great Hall
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Owner of (Triggering unit)) Equal to Player 1 (Red)
      Then - Actions
        Set VariableSet Alarm_Horde = True
        Wait 10.00 seconds
        Set VariableSet Alarm_Horde = False
      Else - Actions
        Set VariableSet Alarm_Alliance = True
        Wait 10.00 seconds
        Set VariableSet Alarm_Alliance = False
AIhordeSpawn
  Events
    Time - Elapsed game time is 20.00 seconds
  Conditions
    AI_Horde Not equal to 0
  Actions
    Game - Display to (All players) the text: (String(AI_Horde))
    Set VariableSet AIrandom = (Random integer number between 1 and 6)
    Set VariableSet AIcreatepoint = (Center of AltarOfStorms <gen>)
    Set VariableSet AIcreateregion = AltarOfStorms <gen>
    Trigger - Run hHero <gen> (checking conditions)
    Set VariableSet AITempGroup = (Units in AIcreateregion matching (((Matching unit) is in Guard.) Equal to False))
    Set VariableSet AIrandom = (Random integer number between 1 and 4)
    If (AIrandom Greater than or equal to 3) then do (Add all units of AITempGroup to AIroam_h[(Random integer number between 1 and 4)]) else do (Do nothing)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        AIrandom Greater than or equal to 2
      Then - Actions
        Set VariableSet AIrandom = (Random integer number between 1 and 4)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIrandom Equal to 1
          Then - Actions
            If ((Owner of Hearth of the Field 0694 <gen>) Not equal to Player 1 (Red)) then do (Order AITempGroup to Attack-Move To.(Center of Hearth_of_the_field <gen>)) else do (Order AITempGroup to Attack-Move To.(Center of waypoint17 <gen>))
            Custom script: call DestroyGroup (udg_TEMP_Group)
          Else - Actions
            Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIrandom Equal to 2
          Then - Actions
            If ((Owner of Horn of the Forest 0107 <gen>) Not equal to Player 1 (Red)) then do (Order AITempGroup to Attack-Move To.(Center of Obelisk_of_power_2 <gen>)) else do (Order AITempGroup to Attack-Move To.(Center of waypoint18 <gen>))
            Custom script: call DestroyGroup (udg_TEMP_Group)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIrandom Equal to 3
          Then - Actions
            If ((Owner of Obelisk of Might 0060 <gen>) Not equal to Player 1 (Red)) then do (Order AITempGroup to Attack-Move To.(Center of Obelisk_of_power_1 <gen>)) else do (Order AITempGroup to Attack-Move To.(Center of waypoint22 <gen>))
            Custom script: call DestroyGroup (udg_TEMP_Group)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIrandom Equal to 4
          Then - Actions
            If ((Keep 0024 <gen> is alive) Equal to True) then do (Order AITempGroup to Attack-Move To.(Center of waypoint14 <gen>)) else do (Order AITempGroup to Attack-Move To.(Center of waypoint17 <gen>))
            Custom script: call DestroyGroup (udg_TEMP_Group)
          Else - Actions
      Else - Actions
        Set VariableSet AIrandom = (Random integer number between 1 and 7)
        If (AIrandom Equal to 1) then do (Order AITempGroup to Attack-Move To.(Center of waypoint15 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 2) then do (Order AITempGroup to Attack-Move To.(Center of waypoint17 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 3) then do (Order AITempGroup to Attack-Move To.(Center of waypoint14 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 4) then do (Order AITempGroup to Attack-Move To.(Random point in waypoint12 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 5) then do (Order AITempGroup to Attack-Move To.(Random point in waypoint18 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 6) then do (Order AITempGroup to Attack-Move To.(Random point in waypoint23 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 7) then do (Order AITempGroup to Attack-Move To.(Random point in waypoint21 <gen>)) else do (Do nothing)
        Custom script: call DestroyGroup (udg_TEMP_Group)
    Custom script: call RemoveLocation (udg_CreateAt)
    Custom script: call RemoveLocation (udg_AIcreatet)
    Wait (Spawnfreq_Horde x SpawnFreq_heroH) seconds
    Trigger - Run (This trigger) (checking conditions)
AIhordeDragon
  Events
    Time - Every 1200.00 seconds of game time
  Conditions
    AI_Horde Not equal to 0
    (Number of units in (Units owned by Player 1 (Red) of type Red Dragon)) Equal to 0
    (Dragon Roost 0130 <gen> is alive) Equal to True
  Actions
    Set VariableSet TEMP_Point2 = (Center of DragonH <gen>)
    Unit - Create 1 Red Dragon for Player 1 (Red) at TEMP_Point2 facing (Random point in choke5 <gen>)
    Custom script: call RemoveLocation (udg_TEMP_Point2)
DragonRoam
  Events
    Time - Every 40.00 seconds of game time
  Conditions
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        orcWaypoint Less than 3
      Then - Actions
        Set VariableSet TEMP_Point2 = (Random point in (Playable map area))
        Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Red Dragon) and do (If ((Percentage life of (Picked unit)) Greater than 20.00) then do (Order (Picked unit) to Attack-Move To.TEMP_Point2) else do (Do nothing))
      Else - Actions
        Set VariableSet TEMP_Point2 = (Random point in northlands <gen>)
        Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Red Dragon) and do (If ((Percentage life of (Picked unit)) Greater than 20.00) then do (Order (Picked unit) to Attack-Move To.TEMP_Point2) else do (Do nothing))
        Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Red Dragon) and do (Order (Picked unit) to Attack-Move To.TEMP_Point2)
    Custom script: call RemoveLocation (udg_TEMP_Point2)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        humanWaypoint Less than 3
      Then - Actions
        Set VariableSet TEMP_Point2 = (Random point in (Playable map area))
        Unit Group - Pick every unit in (Units owned by Player 2 (Blue) of type Blue Dragon) and do (Order (Picked unit) to Attack-Move To.TEMP_Point2)
        Unit Group - Pick every unit in (Units owned by Player 2 (Blue) of type Blue Dragon) and do (If ((Percentage life of (Picked unit)) Greater than 20.00) then do (Order (Picked unit) to Attack-Move To.TEMP_Point2) else do (Do nothing))
      Else - Actions
        Set VariableSet TEMP_Point2 = (Random point in southlands <gen>)
        Unit Group - Pick every unit in (Units owned by Player 2 (Blue) of type Blue Dragon) and do (Order (Picked unit) to Attack-Move To.TEMP_Point2)
        Unit Group - Pick every unit in (Units owned by Player 2 (Blue) of type Blue Dragon) and do (If ((Percentage life of (Picked unit)) Greater than 20.00) then do (Order (Picked unit) to Attack-Move To.TEMP_Point2) else do (Do nothing))
    Custom script: call RemoveLocation (udg_TEMP_Point2)
AIalliance Dragon
  Events
    Time - Every 1200.00 seconds of game time
  Conditions
    AI_Alliance Not equal to 0
    (Number of units in (Units owned by Player 2 (Blue) of type Blue Dragon)) Equal to 0
    (Dragon Roost 0495 <gen> is alive) Equal to True
  Actions
    Set VariableSet TEMP_Point2 = (Center of DragonA <gen>)
    Unit - Create 1 Blue Dragon for Player 2 (Blue) at TEMP_Point2 facing (Center of (Playable map area))
    Custom script: call RemoveLocation (udg_TEMP_Point2)
AIallianceSpawn
  Events
    Time - Elapsed game time is 25.00 seconds
  Conditions
    AI_Alliance Not equal to 0
  Actions
    Game - Display to (All players) the text: (String(AI_Alliance))
    Set VariableSet AIrandom = (Random integer number between 1 and 6)
    Set VariableSet AIcreatepoint = (Center of AltarOfKings <gen>)
    Set VariableSet AIcreateregion = AltarOfKings <gen>
    Trigger - Run aHero <gen> (checking conditions)
    Set VariableSet AITempGroup = (Units in AIcreateregion matching (((Matching unit) is in Guard.) Equal to False))
    Set VariableSet AIrandom = (Random integer number between 1 and 4)
    If (AIrandom Greater than or equal to 3) then do (Add all units of AITempGroup to AIroam_a[(Random integer number between 1 and 4)]) else do (Do nothing)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        AIrandom Greater than or equal to 2
      Then - Actions
        Set VariableSet AIrandom = (Random integer number between 1 and 3)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIrandom Equal to 1
          Then - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Owner of Horn of the Forest 0107 <gen>) Not equal to Player 2 (Blue)
              Then - Actions
                Unit Group - Order AITempGroup to Attack-Move To.(Center of Obelisk_of_power_2 <gen>)
              Else - Actions
                Unit Group - Order AITempGroup to Attack-Move To.(Center of waypoint6 <gen>)
            If ((Owner of Hearth of the Field 0694 <gen>) Not equal to Player 2 (Blue)) then do (Order AITempGroup to Attack-Move To.(Center of Hearth_of_the_field <gen>)) else do (Order AITempGroup to Attack-Move To.(Center of waypoint4 <gen>))
            Custom script: call DestroyGroup (udg_TEMP_Group)
          Else - Actions
            Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIrandom Equal to 2
          Then - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Owner of Hearth of the Field 0694 <gen>) Not equal to Player 2 (Blue)
              Then - Actions
                Unit Group - Order AITempGroup to Attack-Move To.(Center of Hearth_of_the_field <gen>)
              Else - Actions
                Unit Group - Order AITempGroup to Attack-Move To.(Center of waypoint4 <gen>)
            Custom script: call DestroyGroup (udg_TEMP_Group)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIrandom Equal to 3
          Then - Actions
            Unit Group - Order AITempGroup to Attack-Move To.(Center of waypoint10 <gen>)
            Custom script: call DestroyGroup (udg_TEMP_Group)
          Else - Actions
      Else - Actions
        Set VariableSet AIrandom = (Random integer number between 1 and 6)
        If (AIrandom Equal to 1) then do (Order AITempGroup to Attack-Move To.(Center of waypoint5 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 1) then do (Order AITempGroup to Attack-Move To.(Center of waypoint4 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 3) then do (Order AITempGroup to Attack-Move To.(Center of waypoint10 <gen>)) else do (Do nothing)
        If (AIrandom Equal to 4) then do (Order AITempGroup to Attack-Move To.(Center of (Playable map area))) else do (Do nothing)
        If (AIrandom Equal to 5) then do (Order AITempGroup to Attack-Move To.(Center of (Playable map area))) else do (Do nothing)
        If (AIrandom Equal to 6) then do (Order AITempGroup to Attack-Move To.(Random point in southlands <gen>)) else do (Do nothing)
        Custom script: call DestroyGroup (udg_TEMP_Group)
    Custom script: call RemoveLocation (udg_CreateAt)
    Wait (Spawnfreq_Alliance x SpawnFreq_heroA) seconds
    Trigger - Run (This trigger) (checking conditions)
hRoam
  Events
    Time - Every 60.00 seconds of game time
  Conditions
    AI_Horde Not equal to 0
  Actions
    Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching ((((Matching unit) is A Hero) Equal to True) and ((Current order of (Matching unit)) Equal to (Order()))).) and do (Add (Picked unit) to AIroam_h[(Random integer number between 1 and 4)])
    Set VariableSet AIrandom = (Random integer number between 1 and 1)
    If (AIrandom Equal to 1) then do (If ((Owner of Horn of the Forest 0107 <gen>) Not equal to Player 1 (Red)) then do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Center of DefenderForest <gen>)) else do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in northlands <gen>))) else do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in northlands <gen>))
    If (AIrandom Equal to 1) then do (If ((Owner of Hearth of the Field 0694 <gen>) Not equal to Player 1 (Red)) then do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Center of Hearth_of_the_field <gen>)) else do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in northlands <gen>))) else do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in northlands <gen>))
    If (AIrandom Equal to 1) then do (If ((Owner of Obelisk of Might 0060 <gen>) Not equal to Player 1 (Red)) then do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Center of GolemAwaken <gen>)) else do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in northlands <gen>))) else do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in northlands <gen>))
    If (AIrandom Equal to 1) then do (If ((Owner of Hearth of the Field 0694 <gen>) Not equal to Player 1 (Red)) then do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Center of Hearth_of_the_field <gen>)) else do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in waypoint17 <gen>))) else do (Order AIroam_h[(Random integer number between 1 and 4)] to Attack-Move To.(Center of HumanSpawnMiddleKeep <gen>))
aRoam
  Events
    Time - Every 60.00 seconds of game time
  Conditions
    AI_Alliance Not equal to 0
  Actions
    Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching ((((Matching unit) is A Hero) Equal to True) and ((Current order of (Matching unit)) Equal to (Order()))).) and do (If (((Distance between (Position of (Triggering unit)) and (Position of Obelisk of Might 0060 <gen>)) Less than 2000.00) and ((Owner of Obelisk of Might 0060 <gen>) Not equal to Player 2 (Blue))) then do (Order (Picked unit) to Attack-Move To.(Center of GolemAwaken <gen>)) else do (Do nothing))
    Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching ((((Matching unit) is A Hero) Equal to True) and ((Current order of (Matching unit)) Equal to (Order()))).) and do (Add (Picked unit) to AIroam_a[(Random integer number between 1 and 4)])
    Set VariableSet AIrandom = (Random integer number between 1 and 1)
    If (AIrandom Equal to 1) then do (If ((Owner of Horn of the Forest 0107 <gen>) Not equal to Player 2 (Blue)) then do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Center of DefenderForest <gen>)) else do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in northlands <gen>))) else do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in southlands <gen>))
    If (AIrandom Equal to 1) then do (If ((Owner of Hearth of the Field 0694 <gen>) Not equal to Player 2 (Blue)) then do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Center of Hearth_of_the_field <gen>)) else do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in southlands <gen>))) else do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in southlands <gen>))
    If (AIrandom Equal to 1) then do (If ((Owner of Obelisk of Might 0060 <gen>) Not equal to Player 2 (Blue)) then do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Center of waypoint10 <gen>)) else do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in southlands <gen>))) else do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in southlands <gen>))
    If (AIrandom Equal to 1) then do (If ((Owner of Hearth of the Field 0694 <gen>) Not equal to Player 2 (Blue)) then do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Center of Hearth_of_the_field <gen>)) else do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Random point in waypoint4 <gen>))) else do (Order AIroam_a[(Random integer number between 1 and 4)] to Attack-Move To.(Center of waypoint4 <gen>))
hHero
  Events
  Conditions
  Actions
    Set VariableSet AIrandom = (Random integer number between 1 and 6)
    If (AIrandom Equal to 1) then do (Create 1.Blademaster for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 2) then do (Create 1.Nethermancer for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 3) then do (Create 1.Bersherker for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 4) then do (Create 1.Doom Knight for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 5) then do (Create 1.Beastmaster for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 6) then do (Create 1.Shadow Hunter for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    Hero - Add (((Integer(GainFactor_XP_Horde)) x Time_minute) x 13) experience to (Last created unit), Hide level-up graphics
    Hero - Create Potion of Healing and give it to (Last created unit)
    If (AIrandom Equal to 1) then do (Create 2.Grunt for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 2) then do (Create 2.Timber Wolf for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 3) then do (Create 1.Tauren for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 4) then do (Create 2.Skeleton Warrior for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 5) then do (Create 1.Furbolg for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 6) then do (Create 1.Troll Headhunter for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 6) then do (Create 1.Troll Witch Doctor for Player 1 (Red) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
aHero
  Events
  Conditions
  Actions
    Set VariableSet AIrandom = (Random integer number between 1 and 6)
    If (AIrandom Equal to 1) then do (Create 1.Paladin for Player 2 (Blue) at AIcreatepoint facing 180.00 degrees) else do (Do nothing)
    If (AIrandom Equal to 2) then do (Create 1.Elementalist for Player 2 (Blue) at AIcreatepoint facing 180.00 degrees) else do (Do nothing)
    If (AIrandom Equal to 3) then do (Create 1.Wizard for Player 2 (Blue) at AIcreatepoint facing 180.00 degrees) else do (Do nothing)
    If (AIrandom Equal to 4) then do (Create 1.Warrior for Player 2 (Blue) at AIcreatepoint facing 180.00 degrees) else do (Do nothing)
    If (AIrandom Equal to 5) then do (Create 1.Windranger for Player 2 (Blue) at AIcreatepoint facing 180.00 degrees) else do (Do nothing)
    If (AIrandom Equal to 6) then do (Create 1.Shadow Warrior for Player 2 (Blue) at AIcreatepoint facing 180.00 degrees) else do (Do nothing)
    Hero - Add (((Integer(GainFactor_XP_Alliance)) x Time_minute) x 13) experience to (Last created unit), Hide level-up graphics
    Hero - Create Potion of Healing and give it to (Last created unit)
    If (AIrandom Equal to 1) then do (Create 3.Footman for Player 2 (Blue) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 2) then do (Create 2.Arcane Sentinel for Player 2 (Blue) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 3) then do (Create 2.Sorceress for Player 2 (Blue) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 4) then do (Create 2.Rifleman for Player 2 (Blue) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 5) then do (Create 2.Dryad for Player 2 (Blue) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
    If (AIrandom Equal to 6) then do (Create 1.Voidwalker for Player 2 (Blue) at AIcreatepoint facing Default building facing degrees) else do (Do nothing)
hControlWaypoint1
  Events
    Unit - A unit enters heroWayPoint1 <gen>
  Conditions
    ((Triggering unit) is A Hero) Equal to True
    (Owner of (Triggering unit)) Equal to Player 1 (Red)
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        orcWaypoint Greater than 1
        (Owner of Obelisk of Might 0060 <gen>) Not equal to Player 1 (Red)
      Then - Actions
        Unit - Order (Triggering unit) to Attack-Move To.(Center of GolemAwaken <gen>)
      Else - Actions
        Do nothing
hControlWaypoint3
  Events
    Unit - A unit enters heroWayPoint3 <gen>
  Conditions
    ((Triggering unit) is A Hero) Equal to True
    (Owner of (Triggering unit)) Equal to Player 1 (Red)
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        orcWaypoint Greater than 1
        (Owner of Hearth of the Field 0694 <gen>) Not equal to Player 1 (Red)
      Then - Actions
        Unit - Order (Triggering unit) to Attack-Move To.(Center of Hearth_of_the_field <gen>)
      Else - Actions
        Do nothing
hControlWaypoint2
  Events
    Unit - A unit enters heroWayPoint2 <gen>
  Conditions
    ((Triggering unit) is A Hero) Equal to True
    (Owner of (Triggering unit)) Equal to Player 1 (Red)
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        orcWaypoint Greater than 1
        (Owner of Horn of the Forest 0107 <gen>) Not equal to Player 1 (Red)
      Then - Actions
        Unit - Order (Triggering unit) to Attack-Move To.(Center of DefenderForest <gen>)
      Else - Actions
        Do nothing
aControlWaypoint1
  Events
    Unit - A unit enters heroWayPoint1 <gen>
  Conditions
    ((Triggering unit) is A Hero) Equal to True
    (Owner of (Triggering unit)) Equal to Player 2 (Blue)
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        humanWaypoint Greater than 1
        (Owner of Horn of the Forest 0107 <gen>) Not equal to Player 2 (Blue)
      Then - Actions
        Unit - Order (Triggering unit) to Attack-Move To.(Center of GolemAwaken <gen>)
      Else - Actions
        Do nothing
aControlWaypoint2
  Events
    Unit - A unit enters heroWayPoint2 <gen>
  Conditions
    ((Triggering unit) is A Hero) Equal to True
    (Owner of (Triggering unit)) Equal to Player 2 (Blue)
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        humanWaypoint Greater than 1
        (Owner of Horn of the Forest 0107 <gen>) Not equal to Player 2 (Blue)
      Then - Actions
        Unit - Order (Triggering unit) to Attack-Move To.(Center of Obelisk_of_power_2 <gen>)
      Else - Actions
        Do nothing
aControlWaypoint3
  Events
    Unit - A unit enters heroWayPoint3 <gen>
  Conditions
    ((Triggering unit) is A Hero) Equal to True
    (Owner of (Triggering unit)) Equal to Player 2 (Blue)
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        humanWaypoint Greater than 1
        (Owner of Hearth of the Field 0694 <gen>) Not equal to Player 2 (Blue)
      Then - Actions
        Unit - Order (Triggering unit) to Attack-Move To.(Center of Hearth_of_the_field <gen>)
      Else - Actions
        Do nothing
forest
  Events
    Time - Elapsed game time is 150.00 seconds
  Conditions
  Actions
    Set VariableSet TEMP_Group = (Units in Obelisk_of_power_2 <gen>)
    If ((Number of units in TEMP_Group) Greater than 4) then do (Add all units of TEMP_Group to TEMPGROUP_control) else do (Pick every unit in TEMP_Group and do (If (((Picked unit) is A Hero) Equal to True) then do (Add (Picked unit) to TEMPGROUP_control) else do (Do nothing)))
    -------- .------------------- --------
    If (orcWaypoint Equal to 1) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint18 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Equal to 2) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint24 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Equal to 3) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint17 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Greater than 3) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint17 <gen>)) else do (Do nothing))) else do (Do nothing)
    Custom script: call DestroyGroup (udg_TEMP_Group)
    Wait 60.00 seconds
    Trigger - Run field <gen> (ignoring conditions)
field
  Events
  Conditions
  Actions
    Set VariableSet TEMP_Group = (Units in Hearth_of_the_field <gen>)
    If ((Number of units in TEMP_Group) Greater than 4) then do (Add all units of TEMP_Group to TEMPGROUP_control) else do (Pick every unit in TEMP_Group and do (If (((Picked unit) is A Hero) Equal to True) then do (Add (Picked unit) to TEMPGROUP_control) else do (Do nothing)))
    -------- .------------------- --------
    If (orcWaypoint Equal to 1) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint18 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Equal to 2) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint24 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Equal to 3) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint22 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Greater than 3) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint16 <gen>)) else do (Do nothing))) else do (Do nothing)
    Custom script: call DestroyGroup (udg_TEMP_Group)
    Wait 60.00 seconds
    Trigger - Run mountain <gen> (ignoring conditions)
mountain
  Events
  Conditions
  Actions
    Set VariableSet TEMP_Group = (Units in GolemAwaken <gen>)
    If ((Number of units in TEMP_Group) Greater than 4) then do (Add all units of TEMP_Group to TEMPGROUP_control) else do (Pick every unit in TEMP_Group and do (If (((Picked unit) is A Hero) Equal to True) then do (Add (Picked unit) to TEMPGROUP_control) else do (Do nothing)))
    -------- .------------------- --------
    If (orcWaypoint Equal to 1) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint20 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Equal to 2) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint23 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Equal to 3) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint21 <gen>)) else do (Do nothing))) else do (Do nothing)
    If (orcWaypoint Greater than 3) then do (Pick every unit in TEMPGROUP_control and do (If ((Owner of (Picked unit)) Equal to Player 1 (Red)) then do (Order (Picked unit) to Attack-Move To.(Center of waypoint_ny <gen>)) else do (Do nothing))) else do (Do nothing)
    Custom script: call DestroyGroup (udg_TEMP_Group)
    Wait 60.00 seconds
    Trigger - Run forest <gen> (ignoring conditions)
hSkills
  Events
    Unit - A unit owned by Player 1 (Red).Gains a level
  Conditions
    AI_Horde Not equal to 0
  Actions
    For each (Integer A) from 1 to 40, do (Actions)
      Loop - Actions
        Set VariableSet AIskill = (Random integer number between 1 and 3)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Hero level of (Triggering unit)) Greater than or equal to 6
          Then - Actions
            Hero - Learn skill for (Triggering unit): Bladestorm
            Hero - Learn skill for (Triggering unit): Reincarnation
            Hero - Learn skill for (Triggering unit): Reincarnation
            Hero - Learn skill for (Triggering unit): Reincarnation
            Hero - Learn skill for (Triggering unit): Summon the Spirit of Death
            Hero - Learn skill for (Triggering unit): Seal Life
            Hero - Learn skill for (Triggering unit): Call of the Wild (Rexxar)
            Hero - Learn skill for (Triggering unit): Inferno
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIskill Equal to 1
          Then - Actions
            Hero - Learn skill for (Triggering unit): Mirror Image
            Hero - Learn skill for (Triggering unit): Shockwave
            Hero - Learn skill for (Triggering unit): Shockwave
            Hero - Learn skill for (Triggering unit): Raise Dead
            Hero - Learn skill for (Triggering unit): Healing Wave
            Hero - Learn skill for (Triggering unit): Summon Misha (Rexxar)
            Hero - Learn skill for (Triggering unit): Spirit Grip
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIskill Equal to 2
          Then - Actions
            Hero - Learn skill for (Triggering unit): Critical Strike
            Hero - Learn skill for (Triggering unit): Earthquake
            Hero - Learn skill for (Triggering unit): Vampiric Aura
            Hero - Learn skill for (Triggering unit): Siphon Mana (Drain)
            Hero - Learn skill for (Triggering unit): Battle Roar
            Hero - Learn skill for (Triggering unit): Unholy Aura
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIskill Equal to 3
          Then - Actions
            Hero - Learn skill for (Triggering unit): Blink
            Hero - Learn skill for (Triggering unit): War Stomp
            Hero - Learn skill for (Triggering unit): Death Pact
            Hero - Learn skill for (Triggering unit): Silence
            Hero - Learn skill for (Triggering unit): Summon Misha (Rexxar)
            Hero - Learn skill for (Triggering unit): Feral Spirit
            Hero - Learn skill for (Triggering unit): Feral Spirit
          Else - Actions
aSkills
  Events
    Unit - A unit owned by Player 2 (Blue).Gains a level
  Conditions
    AI_Alliance Not equal to 0
  Actions
    For each (Integer A) from 1 to 40, do (Actions)
      Loop - Actions
        Set VariableSet AIskill = (Random integer number between 1 and 3)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Hero level of (Triggering unit)) Greater than or equal to 6
          Then - Actions
            Hero - Learn skill for (Triggering unit): Avatar
            Hero - Learn skill for (Triggering unit): Resurrection
            Hero - Learn skill for (Triggering unit): Starfall
            Hero - Learn skill for (Triggering unit): Metamorphosis
            Hero - Learn skill for (Triggering unit): Mass Teleport
            Hero - Learn skill for (Triggering unit): InfernoFire
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIskill Equal to 1
          Then - Actions
            Hero - Learn skill for (Triggering unit): Storm Bolt
            Hero - Learn skill for (Triggering unit): Storm Bolt
            Hero - Learn skill for (Triggering unit): Holy Light
            Hero - Learn skill for (Triggering unit): Evasion
            Hero - Learn skill for (Triggering unit): Wind Walk
            Hero - Learn skill for (Triggering unit): Summon Water Elemental
            Hero - Learn skill for (Triggering unit): Fireball
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIskill Equal to 2
          Then - Actions
            Hero - Learn skill for (Triggering unit): Thunder Clap
            Hero - Learn skill for (Triggering unit): Devotion Aura
            Hero - Learn skill for (Triggering unit): Mana Burn
            Hero - Learn skill for (Triggering unit): Scout
            Hero - Learn skill for (Triggering unit): Blizzard
            Hero - Learn skill for (Triggering unit): Chain Lightning
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            AIskill Equal to 3
          Then - Actions
            Hero - Learn skill for (Triggering unit): Bash
            Hero - Learn skill for (Triggering unit): Prayer of Protection
            Hero - Learn skill for (Triggering unit): Immolation
            Hero - Learn skill for (Triggering unit): Cold Arrows
            Hero - Learn skill for (Triggering unit): Brilliance Aura
            Hero - Learn skill for (Triggering unit): Frost Nova
          Else - Actions
HeroDefenceTeleportH
  Events
    Unit - Stronghold 0461 <gen> Takes damage
    Unit - Stronghold 0134 <gen> Takes damage
    Unit - Great Hall 0444 <gen> Takes damage
    Unit - Great Hall 0264 <gen> Takes damage
    Unit - Barracks 0187 <gen> Takes damage
    Unit - Barracks 0182 <gen> Takes damage
    Unit - Fortress 0140 <gen> Takes damage
  Conditions
    supportdelay_H Equal to 0
    (Percentage life of (Triggering unit)) Less than 90.00
  Actions
    Set VariableSet supportdelay_H = 1
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
      Then - Actions
        Unit - Order (Triggering unit) to train/upgrade to a Peon
        Unit - Order (Last created unit) to Orc Peon - Activate Repair.
      Else - Actions
        Do nothing
    Game - Display to (All players) the text: (String((Number of units in AIroam_h[1])))
    Game - Display to (All players) the text: (String((Number of units in AIroam_h[2])))
    Game - Display to (All players) the text: (String((Number of units in AIroam_h[3])))
    Game - Display to (All players) the text: (String((Number of units in AIroam_h[4])))
    For each (Integer A) from 1 to 2, do (Actions)
      Loop - Actions
        Unit Group - Pick every unit in AIroam_h[(Random integer number between 1 and 4)] and do (Actions)
          Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Distance between (Position of (Triggering unit)) and (Position of (Picked unit))) Less than 6000.00
              Then - Actions
                Unit - Order (Picked unit) to Right-Click.(Triggering unit)
              Else - Actions
                If (((Picked unit) has an item of type Scroll of Town Gate) Equal to True) then do (Do nothing) else do (Create Scroll of Town Gate and give it to (Picked unit))
                Hero - Order (Picked unit) to use (Item carried by (Picked unit) of type Scroll of Town Gate) on (Triggering unit)
    Wait 6.00 seconds
    Set VariableSet supportdelay_H = 0
HeroDefenceTeleportA
  Events
    Unit - Barracks 0000 <gen> Takes damage
    Unit - Keep 0117 <gen> Takes damage
    Unit - Castle 0001 <gen> Takes damage
    Unit - Town Hall 0141 <gen> Takes damage
    Unit - Barracks 0064 <gen> Takes damage
    Unit - Keep 0024 <gen> Takes damage
    Unit - Town Hall 0051 <gen> Takes damage
  Conditions
    supportdelay_A Equal to 0
    (Percentage life of (Triggering unit)) Less than 90.00
  Actions
    Set VariableSet supportdelay_A = 1
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
      Then - Actions
        Unit - Order (Triggering unit) to train/upgrade to a Peasant
        Unit - Order (Last created unit) to Human Peasant - Activate Repair.
      Else - Actions
        Do nothing
    Game - Display to (All players) the text: (String((Number of units in AIroam_h[1])))
    Game - Display to (All players) the text: (String((Number of units in AIroam_h[2])))
    Game - Display to (All players) the text: (String((Number of units in AIroam_h[3])))
    Game - Display to (All players) the text: (String((Number of units in AIroam_h[4])))
    For each (Integer A) from 1 to 2, do (Actions)
      Loop - Actions
        Unit Group - Pick every unit in AIroam_a[(Random integer number between 1 and 4)] and do (Actions)
          Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Distance between (Position of (Triggering unit)) and (Position of (Picked unit))) Less than 6000.00
              Then - Actions
                Unit - Order (Picked unit) to Right-Click.(Triggering unit)
              Else - Actions
                If (((Picked unit) has an item of type Scroll of Town Gate) Equal to True) then do (Do nothing) else do (Create Scroll of Town Gate and give it to (Picked unit))
                Hero - Order (Picked unit) to use (Item carried by (Picked unit) of type Scroll of Town Gate) on (Triggering unit)
    Wait 6.00 seconds
    Set VariableSet supportdelay_A = 0
Escape
  Events
    Unit - A unit Is attacked
  Conditions
    And - All (Conditions) are true
      Conditions
        ((Triggering unit) is A Hero) Equal to True
        ((Owner of (Triggering unit)) Equal to Player 1 (Red)) or ((Owner of (Triggering unit)) Equal to Player 2 (Blue))
        (Number of units in (Units within 600.00 of (Position of (Attacked unit)) matching ((Owner of (Matching unit)) Equal to (Owner of (Attacked unit))).)) Less than or equal to 5
        Or - Any (Conditions) are true
          Conditions
            (Percentage life of (Triggering unit)) Less than 10.00
            (Life of (Triggering unit)) Less than 100.00
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Owner of (Triggering unit)) Equal to Player 2 (Blue)
      Then - Actions
        If (Alarm_Alliance Equal to True) then do (Skip remaining actions) else do (Do nothing)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            humanWaypoint Less than 3
          Then - Actions
            Unit - Order (Triggering unit) to Right-Click.Altar of Kings 0111 <gen>
          Else - Actions
            If (((Triggering unit) has an item of type Scroll of Town Gate) Equal to True) then do (Do nothing) else do (Create Scroll of Town Gate and give it to (Triggering unit))
            Hero - Order (Triggering unit) to use (Item carried by (Triggering unit) of type Scroll of Town Gate) on (Center of AltarOfKings <gen>)
      Else - Actions
        If (Alarm_Horde Equal to True) then do (Skip remaining actions) else do (Do nothing)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            orcWaypoint Less than 3
          Then - Actions
            Unit - Order (Triggering unit) to Right-Click.Altar of Storms 0056 <gen>
          Else - Actions
            If (((Triggering unit) has an item of type Scroll of Town Gate) Equal to True) then do (Do nothing) else do (Create Scroll of Town Gate and give it to (Triggering unit))
            Hero - Order (Triggering unit) to use (Item carried by (Triggering unit) of type Scroll of Town Gate) on (Center of AltarOfStorms <gen>)
    Wait 5.00 seconds
    Item - Remove (Item carried by (Triggering unit) of type Scroll of Town Gate)
EscapeDragon
  Events
    Unit - A unit Is attacked
  Conditions
    And - All (Conditions) are true
      Conditions
        Or - Any (Conditions) are true
          Conditions
            (Unit-type of (Triggering unit)) Equal to Blue Dragon
            (Unit-type of (Triggering unit)) Equal to Red Dragon
        ((Owner of (Triggering unit)) Equal to Player 1 (Red)) or ((Owner of (Triggering unit)) Equal to Player 2 (Blue))
        (Number of units in (Units within 512 of (Position of (Attacked unit)) matching ((Owner of (Matching unit)) Equal to (Owner of (Attacked unit))).)) Equal to 0
        Or - Any (Conditions) are true
          Conditions
            (Percentage life of (Triggering unit)) Less than 15.00
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Owner of (Triggering unit)) Equal to Player 2 (Blue)
      Then - Actions
        Unit - Order (Triggering unit) to Move To.(Position of Altar of Kings 0111 <gen>)
      Else - Actions
        Unit - Order (Triggering unit) to Move To.(Position of Altar of Storms 0056 <gen>)
Completion
  Events
    Unit - A unit Dies
    Player - Player 3 (Teal) types a chat message containing !summon! (stringnoformat) as An exact match
  Conditions
    (Triggering unit) Equal to Guardian
  Actions
    If ((hornblowerA belongs to an ally of Player 2 (Blue).) Equal to True) then do (Send transmission to (All players) from Sudacar 0737 <gen> named Sudacar: Play No sound and display It is done! I will now finish the incantations and claim control of Triumph, the flying fortress of the Lich King!. Modify duration: Set to 5.00 seconds and Don't wait) else do (Do nothing)
    If ((hornblowerH belongs to an ally of Player 1 (Red).) Equal to True) then do (Send transmission to (All players) from Sudacar 0737 <gen> named Augarusch: Play No sound and display It is done! I will now finish the incantations and claim control of Triumph, the flying fortress of the Lich King! Death to the Alliance!. Modify duration: Set to 5.00 seconds and Don't wait) else do (Do nothing)
    Item - Remove keychainitem
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 3)
    Wait 2 seconds
    Player Group - Pick every player in (All players) and do (.Apply. gg_cam_Camera_067 for (Picked player) over 0.00 seconds)
    Player Group - Pick every player in (All players) and do (.Apply. gg_cam_triumph for (Picked player) over 4.00 seconds)
    Player Group - Pick every player in (All players) and do (Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across flee <gen>)
    Wait 2.50 seconds
    Sound - Play Doom.
    Special Effect - Create a special effect at (Center of statue2 <gen>) using Doodads\Cinematic\ShimmeringPortal\ShimmeringPortal.mdl
    Cinematic - Fade out and back in over 7.00 seconds using texture Dream and color (0%, 0%, 0%) with 0.00% transparency
    Wait 4.00 seconds
    Special Effect - Create a special effect at (Center of statue2 <gen>) using Abilities\Spells\Human\CloudOfFog\CloudOfFog.mdl
    Wait 3.00 seconds
    Unit - Create 1 Drowannore for (Owner of hornblowerA) at ((Center of statue2 <gen>) offset by (-50.00, 0)) facing (Center of (Playable map area))
    Set VariableSet Triumph = (Last created unit)
    Unit - Make Triumph Invulnerable
    Special Effect - Create a special effect attached to the chest (attachpoint) of Triumph using Objects\Spawnmodels\Undead\GargoyleCrumble\GargoyleCrumble.mdl
    Special Effect - Create a special effect attached to the chest (attachpoint) of Triumph using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
    Sound - Play SoulPreservation <gen>
    Unit Group - Pick every unit in (Units in flee <gen>) and do (If ((Owner of (Picked unit)) Equal to Neutral Hostile) then do (Order (Picked unit) to Move To.(Random point in Obelisk_of_power_2 <gen>)) else do (Do nothing))
    Unit - Order Skeleton Warrior 0263 <gen> to Move To.(Center of northlands <gen>)
    Unit - Order Skeleton Archer 0102 <gen> to Move To.(Center of northlands <gen>)
    Special Effect - Create a special effect attached to the chest (attachpoint) of Triumph using Abilities\Spells\Undead\Unsummon\UnsummonTarget.mdl
    Set VariableSet triumpheffekt = (Last created special effect)
    Wait 0.50 seconds
    Wait 2.00 seconds
    Special Effect - Create a special effect attached to the chest (attachpoint) of Triumph using Objects\Spawnmodels\Undead\UDeathMedium\UDeath.mdl
    Unit - Order Triumph to Move To.(Center of flee <gen>)
    Wait 1.00 seconds
    Special Effect - Create a special effect attached to the chest (attachpoint) of Triumph using Abilities\Spells\Human\ReviveHuman\ReviveHuman.mdl
    Unit - Make Triumph Vulnerable
    Special Effect - Destroy triumpheffekt
    Wait 0.50 seconds
    Unit - Order Triumph to Undead Obsidian Statue - Morph Into Destroyer.
    Unit - Order Triumph to Move To.(Center of (Playable map area))
    Camera - .Apply. gg_cam_overview1alliance_Copy for (Owner of hornblowerA) over 2.00 seconds
    Player Group - Pick every player in (All players) and do (.Apply. gg_cam_overview1alliance_Copy for (Picked player) over 2.00 seconds)
    Camera - Stop swaying/shaking the camera for (Owner of hornblowerA).
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
    Trigger - Turn off
ChainQuestH
  Events
    Unit - A unit Acquires an item
  Conditions
    And - All (Conditions) are true
      Conditions
        (Item-type of (Item being manipulated)) Equal to Magic Key Chain
        ((Owner of (Hero manipulating item)) is an ally of Player 1 (Red).) Equal to True
        (Augarusch 0721 <gen> is alive) Equal to True
        key Equal to False
        (keychainHorde is enabled) Equal to False
  Actions
    Quest - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Discovered message: |cffff8c00Seek out Augarusch. He knows of the power these keys hold.
    Quest - Create a Optional quest titled The Key Chain with the description Go to Augarusch., using icon path ReplaceableTextures\PassiveButtons\PASBTNElunesBlessing.blp
    Set VariableSet keychainHorde = (Last created quest)
    Special Effect - Create a special effect attached to the overhead (attachpoint) of Augarusch 0721 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
    Set VariableSet sgeomancerexcl = (Last created special effect)
ChainQuestA
  Events
    Unit - A unit Acquires an item
  Conditions
    And - All (Conditions) are true
      Conditions
        (Item-type of (Item being manipulated)) Equal to Magic Key Chain
        ((Owner of (Hero manipulating item)) is an ally of Player 2 (Blue).) Equal to True
        (Sudacar 0737 <gen> is alive) Equal to True
        key Equal to False
        (keychainAlliance is enabled) Equal to False
  Actions
    Quest - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Discovered message: |cffff8c00Seek out Sudacar. He knows of the power these keys hold.
    Quest - Create a Optional quest titled The Key Chain with the description Go to Sudacar., using icon path ReplaceableTextures\PassiveButtons\PASBTNElunesBlessing.blp
    Set VariableSet keychainAlliance = (Last created quest)
    Special Effect - Create a special effect attached to the overhead (attachpoint) of Sudacar 0737 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
    Set VariableSet sudacarexcl = (Last created special effect)
ChainQuest2H
  Events
    Unit - A unit comes within 256 of Augarusch 0721 <gen>
  Conditions
    And - All (Conditions) are true
      Conditions
        (keychainHorde is enabled) Equal to True
        ((Triggering unit) has an item of type Magic Key Chain) Equal to True
        ((Triggering unit) belongs to an ally of Player 1 (Red).) Equal to True
        (Augarusch 0721 <gen> is alive) Equal to True
  Actions
    Sound - Play Sad Mystery, skipping the first 0.00 seconds
    Set VariableSet chainquestH = True
    Cinematic - Disable user control for (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).).
    Cinematic - Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Augarusch 0721 <gen> named Augarusch: Play No sound and display "I must be brief, so listen carefully. What you hold in your hand may turn the tides of the war. The prophecies speak of Triumph, the floating fortress of the Lich King. I have for many years searched for a way to bring it into this world, and the keys in your hand is the answer. Use them to unlock the physical link in this world that binds it to the Lich Kings' will. Then it will be yours to command when I summon it!. Modify duration: Set to 22.00 seconds and Wait
    Special Effect - Destroy sgeomancerexcl
    Wait 22.00 seconds
    Set VariableSet statueAppear = (Random integer number between 1 and 5)
    If (statueAppear Equal to 1) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue1 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    If (statueAppear Equal to 2) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue2 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    If (statueAppear Equal to 3) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue3 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    If (statueAppear Equal to 4) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue4 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    If (statueAppear Equal to 5) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue5 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    Set VariableSet Guardian = (Last created unit)
    Region - Center guardian <gen> on (Position of Guardian)
    Unit - Make Guardian Invulnerable
    Unit - Add Destroyer Form to Guardian
    If (statueAppear Equal to 1) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + a skeleton of a dragon a fair distance north, bordering human lands. There you shall find the statue you must unlock and destroy.)) else do (Do nothing)
    If (statueAppear Equal to 2) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + the graveyard in the far north west of here. Destroy this statue, and the fortress shall be ours".)) else do (Do nothing)
    If (statueAppear Equal to 3) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + a grove of trees in the Tylon Mountains to the north, by a river. You may have to go there by air. Be quick and destroy the statue!")) else do (Do nothing)
    If (statueAppear Equal to 4) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + the circular island of Veralen to the far north east, into the Great Ocean. There you will find the statue in which you must destroy".)) else do (Do nothing)
    If (statueAppear Equal to 5) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + a circular island to the far west. There you will find your statue. Fare well, and the gods of war grant you strength!".)) else do (Do nothing)
    Wait 10.00 seconds
    Cinematic - Enable user control for (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).).
    Hero - Add 1000 experience to (Triggering unit), Show level-up graphics
    Set VariableSet hornblowerA = (Triggering unit)
    Trigger - Turn off (This trigger)
    Sound - Play Pursuit, skipping the first 0.00 seconds
ChainQuest2A
  Events
    Unit - A unit comes within 256 of Sudacar 0737 <gen>
  Conditions
    And - All (Conditions) are true
      Conditions
        (keychainAlliance is enabled) Equal to True
        ((Triggering unit) has an item of type Magic Key Chain) Equal to True
        ((Triggering unit) belongs to an ally of Player 2 (Blue).) Equal to True
        (Sudacar 0737 <gen> is alive) Equal to True
  Actions
    Sound - Play Sad Mystery, skipping the first 0.00 seconds
    Set VariableSet chainquestA = True
    Cinematic - Disable user control for (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).).
    Cinematic - Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Sudacar 0737 <gen> named Sudacar: Play No sound and display "I must be brief, so listen carefully. What you hold in your hand may turn the tides of the war. The prophecies speak of Triumph, the floating fortress of the Lich King. I have after many years found a way to bring it into this world, but until now It's been in vain. The Will of the Lich King still reigns over it, and it would be madness to unleash it. But the keys in your hand may unlock the physical link in this world that binds it to his control".. Modify duration: Set to 22.00 seconds and Wait
    Special Effect - Destroy sudacarexcl
    Wait 22.00 seconds
    Set VariableSet statueAppear = (Random integer number between 1 and 5)
    If (statueAppear Equal to 1) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue1 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    If (statueAppear Equal to 2) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue2 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    If (statueAppear Equal to 3) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue3 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    If (statueAppear Equal to 4) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue4 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    If (statueAppear Equal to 5) then do (Create 1 Obsidian Statue for Neutral Passive at (Center of statue5 <gen>) facing (Center of (Playable map area))) else do (Do nothing)
    Set VariableSet Guardian = (Last created unit)
    Region - Center guardian <gen> on (Position of Guardian)
    Unit - Make Guardian Invulnerable
    Unit - Add Destroyer Form to Guardian
    If (statueAppear Equal to 1) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + a skeleton of a dragon to the east of our farmlands. There you shall find the statue you must unlock.)) else do (Do nothing)
    If (statueAppear Equal to 2) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + the graveyard in the west. Beware of the undead that is walking there".)) else do (Do nothing)
    If (statueAppear Equal to 3) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + a grove of trees in the Tylon Mountains to the east. You may have to go there by air.)) else do (Do nothing)
    If (statueAppear Equal to 4) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + the circular island of Veralen to the far north east. There you will find the statue".)) else do (Do nothing)
    If (statueAppear Equal to 5) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the Quest Update message: ("According to my interpretations, the physical link is an ancient statue found somewhere in this land. Fare swiftly and locate + a circular island to the far south west. There you will find your statue. Fare Well".)) else do (Do nothing)
    Wait 10.00 seconds
    Cinematic - Enable user control for (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).).
    Hero - Add 1000 experience to (Triggering unit), Show level-up graphics
    Set VariableSet hornblowerA = (Triggering unit)
    Trigger - Turn off (This trigger)
    Sound - Play Pursuit, skipping the first 0.00 seconds
unlock
  Events
    Unit - A unit Uses an item
  Conditions
    And - All (Conditions) are true
      Conditions
        (chainquestA Equal to True) or (chainquestH Equal to True)
        (Item-type of (Item being manipulated)) Equal to Magic Key Chain
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Distance between (Position of (Triggering unit)) and (Position of Guardian)) Greater than or equal to 400.00
      Then - Actions
        Game - Display to (All players matching ((Owner of hornblowerA) Equal to (Matching player)).) the text: |c007d7d7dYou must be close to the Guardian for the Key Chain to take effect.
        Skip remaining actions
      Else - Actions
        Do nothing
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Item-type of (Item being manipulated)) Equal to Magic Key Chain
        (Life of Guardian) Less than or equal to 600.00
      Then - Actions
        Unit - Add Destroyer Form to Guardian
        Unit - Order Guardian to Undead Obsidian Statue - Morph Into Destroyer.
        Game - Display to (All players) the text: |c007d7d7dThe Guardian crumbles!
      Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Item-type of (Item being manipulated)) Equal to Magic Key Chain
        (Percentage life of Guardian) Greater than or equal to 100.00
        key Equal to False
      Then - Actions
        Set VariableSet key = True
        Unit - Make Guardian Vulnerable
        Special Effect - Create a special effect attached to the origin (attachpoint) of Guardian using Objects\Spawnmodels\Undead\UDeathSmall\UDeathSmall.mdl
        Unit - Change ownership of Guardian to Neutral Hostile and Retain color
        Sound - Play Lich King's Theme.
        If (((Triggering unit) belongs to an ally of Player 2 (Blue).) Equal to True) then do (Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Sudacar 0737 <gen> named Sudacar: Play No sound and display Use the Key Chain again when he is weakened to break his magical defenses!. Modify duration: Set to 5.00 seconds and Wait) else do (Do nothing)
        If (((Triggering unit) belongs to an ally of Player 1 (Red).) Equal to True) then do (Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Sudacar 0737 <gen> named Augarusch: Play No sound and display Use the Key Chain again when he is weakened to break his magical defenses!. Modify duration: Set to 5.00 seconds and Wait) else do (Do nothing)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Item-type of (Item being manipulated)) Equal to Magic Key Chain
            (Life of Guardian) Greater than 600.00
            key Equal to True
            (Guardian is A flying unit) Equal to False
          Then - Actions
            Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the text: |c007d7d7dThe guardian is too strong yet! Use the keys again when it is weakened.
          Else - Actions
            Do nothing
Key
  Events
    Unit - A unit Acquires an item
  Conditions
    Or - Any (Conditions) are true
      Conditions
        (Item-type of (Item being manipulated)) Equal to Ghost Key
        (Item-type of (Item being manipulated)) Equal to Blood Key
  Actions
    Wait 1.00 seconds
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Hero manipulating item) has an item of type Blood Key) Equal to True
        ((Hero manipulating item) has an item of type Ghost Key) Equal to True
      Then - Actions
        Item - Remove (Item carried by (Hero manipulating item) of type Blood Key)
        Item - Remove (Item carried by (Hero manipulating item) of type Ghost Key)
        Hero - Create Magic Key Chain and give it to (Hero manipulating item)
        Set VariableSet keychainitem = (Last created item)
        Set VariableSet key = False
      Else - Actions
        Do nothing
KeyCarrierChange
  Events
    Unit - A unit Acquires an item
  Conditions
    ((Item-type of (Item being manipulated)) Equal to Magic Key Chain) and (((Playable map area) contains hornblowerA) Equal to True)
  Actions
    Set VariableSet hornblowerA = (Hero manipulating item)
TriumphDies
  Events
    Unit - A unit Dies
  Conditions
    (Dying unit) Equal to Triumph
  Actions
    Cinematic - Fade out and back in over 2.00 seconds using texture White Mask and color (50.00%, 50.00%, 50.00%) with 50.00% transparency
    Player Group - Pick every player in (All players) and do (Shake the camera for (Picked player) with magnitude 3)
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Dying unit) using Objects\Spawnmodels\Undead\GargoyleCrumble\GargoyleCrumble.mdl
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Dying unit) using Objects\Spawnmodels\Human\HCancelDeath\HCancelDeath.mdl
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Dying unit) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
    Wait 1.00 seconds
    Game - Display to (All players) the text: |cffff8c00Triumph falls to the ground burning!.
    Player Group - Pick every player in (All players) and do (Stop swaying/shaking the camera for (Picked player).)
overview
  Events
    Player - Player 3 (Teal) types a chat message containing Overview! (stringnoformat) as An exact match
    Player - Player 7 (Green) types a chat message containing Overview! (stringnoformat) as An exact match
    Player - Player 11 (Dark Green) types a chat message containing Overview! (stringnoformat) as An exact match
    Player - Player 10 (Light Blue) types a chat message containing Overview! (stringnoformat) as An exact match
    Player - Player 4 (Purple) types a chat message containing Overview! (stringnoformat) as An exact match
    Player - Player 9 (Gray) types a chat message containing Overview! (stringnoformat) as An exact match
    Player - Player 12 (Brown) types a chat message containing Overview! (stringnoformat) as An exact match
    Player - Player 6 (Orange) types a chat message containing Overview! (stringnoformat) as An exact match
  Conditions
  Actions
    Camera - .Apply. gg_cam_overview1alliance for (Triggering player) over 0.00 seconds
overview Copy
  Events
    Player - Player 3 (Teal) types a chat message containing sound! (stringnoformat) as An exact match
  Conditions
  Actions
    Sound - Play ArrangedTeamInvitation <gen>
    Sound - Set volume of (Last played sound) to 100%
    Camera - .Apply. gg_cam_Camera_068 for Player 3 (Teal) over 0 seconds
    Camera - .Apply. gg_cam_Camera_069 for Player 3 (Teal) over 10.00 seconds
theme
  Events
    Player - Player 3 (Teal) types a chat message containing theme! (stringnoformat) as An exact match
    Player - Player 7 (Green) types a chat message containing theme! (stringnoformat) as An exact match
    Player - Player 11 (Dark Green) types a chat message containing theme! (stringnoformat) as An exact match
    Player - Player 10 (Light Blue) types a chat message containing theme! (stringnoformat) as An exact match
    Player - Player 4 (Purple) types a chat message containing theme! (stringnoformat) as An exact match
    Player - Player 9 (Gray) types a chat message containing theme! (stringnoformat) as An exact match
    Player - Player 12 (Brown) types a chat message containing theme! (stringnoformat) as An exact match
    Player - Player 6 (Orange) types a chat message containing theme! (stringnoformat) as An exact match
  Conditions
  Actions
    Sound - Play Tragic Confrontation.
theme2
  Events
    Player - Player 3 (Teal) types a chat message containing theme2! (stringnoformat) as An exact match
    Player - Player 7 (Green) types a chat message containing theme2! (stringnoformat) as An exact match
    Player - Player 11 (Dark Green) types a chat message containing theme2! (stringnoformat) as An exact match
    Player - Player 10 (Light Blue) types a chat message containing theme2! (stringnoformat) as An exact match
    Player - Player 4 (Purple) types a chat message containing theme2! (stringnoformat) as An exact match
    Player - Player 9 (Gray) types a chat message containing theme2! (stringnoformat) as An exact match
    Player - Player 12 (Brown) types a chat message containing theme2! (stringnoformat) as An exact match
    Player - Player 6 (Orange) types a chat message containing theme2! (stringnoformat) as An exact match
  Conditions
  Actions
    Sound - Play Pursuit.
theme3
  Events
    Player - Player 3 (Teal) types a chat message containing theme3! (stringnoformat) as An exact match
    Player - Player 7 (Green) types a chat message containing theme3! (stringnoformat) as An exact match
    Player - Player 11 (Dark Green) types a chat message containing theme3! (stringnoformat) as An exact match
    Player - Player 10 (Light Blue) types a chat message containing theme3! (stringnoformat) as An exact match
    Player - Player 4 (Purple) types a chat message containing theme3! (stringnoformat) as An exact match
    Player - Player 9 (Gray) types a chat message containing theme3! (stringnoformat) as An exact match
    Player - Player 12 (Brown) types a chat message containing theme3! (stringnoformat) as An exact match
    Player - Player 6 (Orange) types a chat message containing theme3! (stringnoformat) as An exact match
  Conditions
  Actions
    Sound - Play Comradeship.
theme4
  Events
    Player - Player 3 (Teal) types a chat message containing theme4! (stringnoformat) as An exact match
    Player - Player 7 (Green) types a chat message containing theme4! (stringnoformat) as An exact match
    Player - Player 11 (Dark Green) types a chat message containing theme4! (stringnoformat) as An exact match
    Player - Player 10 (Light Blue) types a chat message containing theme4! (stringnoformat) as An exact match
    Player - Player 4 (Purple) types a chat message containing theme4! (stringnoformat) as An exact match
    Player - Player 9 (Gray) types a chat message containing theme4! (stringnoformat) as An exact match
    Player - Player 12 (Brown) types a chat message containing theme4! (stringnoformat) as An exact match
    Player - Player 6 (Orange) types a chat message containing theme4! (stringnoformat) as An exact match
  Conditions
  Actions
    Sound - Play Lich King's Theme.
theme5
  Events
    Player - Player 3 (Teal) types a chat message containing theme5! (stringnoformat) as An exact match
    Player - Player 7 (Green) types a chat message containing theme5! (stringnoformat) as An exact match
    Player - Player 11 (Dark Green) types a chat message containing theme5! (stringnoformat) as An exact match
    Player - Player 10 (Light Blue) types a chat message containing theme5! (stringnoformat) as An exact match
    Player - Player 4 (Purple) types a chat message containing theme5! (stringnoformat) as An exact match
    Player - Player 9 (Gray) types a chat message containing theme5! (stringnoformat) as An exact match
    Player - Player 12 (Brown) types a chat message containing theme5! (stringnoformat) as An exact match
    Player - Player 6 (Orange) types a chat message containing theme5! (stringnoformat) as An exact match
  Conditions
  Actions
    Sound - Play Illidan's Theme.
xp
  Events
    Player - Player 3 (Teal) types a chat message containing xp8! (stringnoformat) as An exact match
    Player - Player 4 (Purple) types a chat message containing xp8! (stringnoformat) as An exact match
    Player - Player 6 (Orange) types a chat message containing xp8! (stringnoformat) as An exact match
    Player - Player 7 (Green) types a chat message containing xp8! (stringnoformat) as An exact match
    Player - Player 9 (Gray) types a chat message containing xp8! (stringnoformat) as An exact match
    Player - Player 10 (Light Blue) types a chat message containing xp8! (stringnoformat) as An exact match
    Player - Player 11 (Dark Green) types a chat message containing xp8! (stringnoformat) as An exact match
    Player - Player 12 (Brown) types a chat message containing xp8! (stringnoformat) as An exact match
  Conditions
  Actions
    Player Group - Pick every player in (All players) and do (Make (Picked player) Heroes gain 8.00% experience from future kills)
hold
  Events
    Player - Player 3 (Teal) types a chat message containing hold! (stringnoformat) as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units within 512 of (Position of heroTeal).) and do (If ((Owner of (Picked unit)) Equal to Player 2 (Blue)) then do (Order (Picked unit) to Stop.) else do (Do nothing))
attack
  Events
    Player - Player 3 (Teal) types a chat message containing attack! (stringnoformat) as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units within 512 of (Position of heroTeal).) and do (If ((Owner of (Picked unit)) Equal to Player 2 (Blue)) then do (Order (Picked unit) to Attack-Move To.(Center of OrcSpawnBarracks1 <gen>)) else do (Do nothing))
retreat
  Events
    Player - Player 3 (Teal) types a chat message containing tothetrees! (stringnoformat) as An exact match
  Conditions
  Actions
    Unit Group - Pick every unit in (Units within 512 of (Position of heroTeal).) and do (If ((Owner of (Picked unit)) Equal to Player 2 (Blue)) then do (Order (Picked unit) to Move To.(Center of waypoint17 <gen>)) else do (Do nothing))
players
  Events
    Player - Player 3 (Teal) types a chat message containing Users! (stringnoformat) as An exact match
  Conditions
  Actions
    Game - Display to (All players) the text: # of Players:
    Game - Display to (All players) the text: (String((Number of players in (All players matching (((Matching player) slot status) Equal to Is playing).))))
effecttest
  Events
    Player - Player 3 (Teal) types a chat message containing effects! (stringnoformat) as An exact match
  Conditions
  Actions
    Unit - Order to Move To.(Center of Hearth_of_the_field <gen>)
    Special Effect - Create a special effect at InfernoFirepoint using IceSparks.mdx
    Special Effect - Create a special effect attached to the overhead (attachpoint) of using Enchantment.mdx
    Wait 2 seconds
    Special Effect - Create a special effect attached to the chest (attachpoint) of using DivineAegis.mdx
    Special Effect - Create a special effect at InfernoFirepoint using Ragingslam.mdx
    Wait 2 seconds
    Special Effect - Create a special effect at InfernoFirepoint using Icequake.mdx
    Wait 2 seconds
    Special Effect - Create a special effect at InfernoFirepoint using faerie.mdx
    Wait 2 seconds
    Special Effect - Create a special effect at InfernoFirepoint using Earth NovaTarget.mdx
    Wait 2 seconds
    Special Effect - Create a special effect at InfernoFirepoint using LightningWrath.mdx
effecttest Copy
  Events
    Player - Player 3 (Teal) types a chat message containing !rain (stringnoformat) as An exact match
  Conditions
  Actions
    Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
Untitled Trigger 001
  Events
    Player - Player 1 (Red) types a chat message containing freq (stringnoformat) as An exact match
  Conditions
  Actions
    Game - Display to (All players matching ((Triggering player) Equal to (Matching player)).) for 30 seconds the text: (Modified spawn frequence Horde: + (String((Spawnfreq_Horde + ((65.00 - (Real(Income_Horde))) / AI_IncomeFreqFactor)))))
    Game - Display to (All players matching ((Triggering player) Equal to (Matching player)).) for 30 seconds the text: (Modified spawn frequence Alliance: + (String((Spawnfreq_Alliance + ((65.00 - (Real(Income_Alliance))) / AI_IncomeFreqFactor)))))
Endgame
  Events
    Unit - Stronghold 0461 <gen> Dies
    Unit - Great Hall 0444 <gen> Dies
    Unit - Barracks 0187 <gen> Dies
    Unit - Barracks 0182 <gen> Dies
    Unit - Stronghold 0134 <gen> Dies
    Unit - Great Hall 0264 <gen> Dies
    Unit - Barracks 0000 <gen> Dies
    Unit - Keep 0117 <gen> Dies
    Unit - Town Hall 0141 <gen> Dies
    Unit - Barracks 0064 <gen> Dies
    Unit - Keep 0024 <gen> Dies
    Unit - Town Hall 0051 <gen> Dies
  Conditions
  Actions
    Set VariableSet Endgamecount = (Endgamecount - 1)
    If (Endgamecount Equal to 0) then do (Run Endgame2 <gen> (ignoring conditions)) else do (Do nothing)
Endgame2
  Events
  Conditions
  Actions
    Countdown Timer - Start Endgame as a One-shot timer that will expire in 300.00 seconds
    Countdown Timer - Create a timer window for (Last started timer) with title Dawn is rising
    Environment - Create at (Playable map area) the weather effect Rays Of Light
    Game - Turn the day/night cycle On
    Game - Set time of day speed to 20.00% of the default speed
    Game - Display to (All players) the text: |cffff8c00Dawn is rising!
    Sound - Play ClanInvitation <gen>
    Cinematic - Ping minimap for (All players) at (Center of waypoint19 <gen>) for 5.00 seconds, using a Flashy ping of color (100%, 100.00%, 100.00%)
    Cinematic - Ping minimap for (All players) at (Center of OrcSpawnFortess <gen>) for 5.00 seconds, using a Flashy ping of color (100%, 100.00%, 100.00%)
    Game - Display to (All players) for 15.00 seconds the text: |c007d7d7dThe game will end in a tie in 6 minutes
Endgame2 Copy
  Events
    Time - Endgame expires
  Conditions
  Actions
    Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
    Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
    Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
    Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
    Game - Victory Player 7 (Green) (Show dialogs, Show scores)
    Game - Victory Player 8 (Pink) (Show dialogs, Show scores)
    Game - Victory Player 9 (Gray) (Show dialogs, Show scores)
    Game - Victory Player 10 (Light Blue) (Show dialogs, Show scores)
    Game - Victory Player 11 (Dark Green) (Show dialogs, Show scores)
    Game - Victory Player 12 (Brown) (Show dialogs, Show scores)
AutoRepair
  Events
    Unit - A unit Sells a unit
  Conditions
    Or - Any (Conditions) are true
      Conditions
        (Unit-type of (Sold unit)) Equal to Peasant
        (Unit-type of (Sold unit)) Equal to Peon
  Actions
    Unit - Order (Sold unit) to Human Peasant - Activate Repair.
    Unit - Order (Sold unit) to Orc Peon - Activate Repair.
oviewHuman
  Events
    Player - Player 3 (Teal) skips a cinematic sequence
    Player - Player 7 (Green) skips a cinematic sequence
    Player - Player 10 (Light Blue) skips a cinematic sequence
    Player - Player 11 (Dark Green) skips a cinematic sequence
  Conditions
    ((Triggering player) is in QueueHuman.) Equal to False
  Actions
    Camera - Set (Triggering player)'s camera Far Z to 6000.00 over 0.50 seconds
    Camera - Set (Triggering player)'s camera Distance to target to 3000.00 over 0.20 seconds
oviewOrc
  Events
    Player - Player 4 (Purple) skips a cinematic sequence
    Player - Player 6 (Orange) skips a cinematic sequence
    Player - Player 9 (Gray) skips a cinematic sequence
    Player - Player 12 (Brown) skips a cinematic sequence
  Conditions
    ((Triggering player) is in QueueOrc.) Equal to False
  Actions
    Camera - Set (Triggering player)'s camera Far Z to 6000.00 over 0.50 seconds
    Camera - Set (Triggering player)'s camera Distance to target to 3000.00 over 0.20 seconds
oviewSpec
  Events
    Player - Player 8 (Pink) skips a cinematic sequence
    Player - Player 5 (Yellow) skips a cinematic sequence
  Conditions
    Intro Equal to False
  Actions
    Camera - Set (Triggering player)'s camera Far Z to 6000.00 over 0.50 seconds
    Camera - Set (Triggering player)'s camera Distance to target to 3000.00 over 0.20 seconds
Cage
  Events
    Destructible - Cage 1062 <gen> dies
  Conditions
  Actions
    Unit - Create 1 Succubus for Neutral Passive at (Position of (Dying destructible)) facing (Center of (Playable map area))
    Set VariableSet Caged = (Last created unit)
Cage2
  Events
    Unit - A unit enters cage <gen>
  Conditions
    (Owner of (Entering unit)) Not equal to Neutral Hostile
    (Owner of (Entering unit)) Not equal to Neutral Passive
    (Cage 1062 <gen> is dead) Equal to True
  Actions
    Unit Group - Pick every unit in (Units in cage <gen>) and do (Actions)
      Loop - Actions
        If ((Unit-type of (Picked unit)) Equal to Succubus) then do (Change ownership of (Picked unit) to (Owner of (Entering unit)) and Change color) else do (Do nothing)
        Trigger - Turn off (This trigger)
Town Portal Altar
  Events
    Unit - A unit Is issued an order targeting an object
  Conditions
    (Item-type of (Target item of issued order)) Equal to Scroll of Town Portal
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Owner of (Ordered unit)) is an ally of Player 2 (Blue).) Equal to True
      Then - Actions
        Hero - Order (Ordered unit) to use (Target item of issued order) on (Center of AltarOfKings <gen>)
      Else - Actions
        Hero - Order (Ordered unit) to use (Target item of issued order) on (Center of AltarOfStorms <gen>)
Town Gate Altar
  Events
    Unit - A unit Is issued an order targeting an object
  Conditions
    (Item-type of (Target item of issued order)) Equal to Scroll of Town Gate
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        ((Owner of (Ordered unit)) is an ally of Player 2 (Blue).) Equal to True
      Then - Actions
        Hero - Order (Ordered unit) to use (Target item of issued order) on (Center of AltarOfKings <gen>)
      Else - Actions
        Hero - Order (Ordered unit) to use (Target item of issued order) on (Center of AltarOfStorms <gen>)
portal
  Events
    Unit - A unit enters portal <gen>
  Conditions
  Actions
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
    Wait 1.00 seconds
    Unit - Move (Triggering unit) instantly to (Center of AltarOfKings <gen>)
braportal1
  Events
    Unit - A unit enters westport <gen>
  Conditions
    ((Triggering unit) is A ground unit) Equal to True
  Actions
    Trigger - Turn off braportal2 <gen>
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Triggering unit) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Triggering unit) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
    Wait 1.00 seconds
    Unit - Move (Triggering unit) instantly to (Center of eastport <gen>)
    Wait 1.00 seconds
    Trigger - Turn on braportal2 <gen>
braportal2
  Events
    Unit - A unit enters eastport <gen>
  Conditions
    ((Triggering unit) is A ground unit) Equal to True
  Actions
    Trigger - Turn off braportal1 <gen>
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Triggering unit) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
    Wait 1.00 seconds
    Unit - Move (Triggering unit) instantly to (Center of westport <gen>)
    Wait 1.00 seconds
    Trigger - Turn on braportal1 <gen>
scoreboard
  Events
    Time - Elapsed game time is 120.00 seconds
    Player - Player 3 (Teal) types a chat message containing Income! (stringnoformat) as An exact match
    Player - Player 4 (Purple) types a chat message containing Income! (stringnoformat) as An exact match
    Player - Player 6 (Orange) types a chat message containing Income! (stringnoformat) as An exact match
    Player - Player 7 (Green) types a chat message containing Income! (stringnoformat) as An exact match
    Player - Player 9 (Gray) types a chat message containing Income! (stringnoformat) as An exact match
    Player - Player 10 (Light Blue) types a chat message containing Income! (stringnoformat) as An exact match
    Player - Player 11 (Dark Green) types a chat message containing Income! (stringnoformat) as An exact match
    Player - Player 12 (Brown) types a chat message containing Income! (stringnoformat) as An exact match
  Conditions
  Actions
    Multiboard - Create a multiboard with 2 columns and 2 rows, titled Base Income.
    Multiboard - Set the icon for (Last created multiboard) item in column 1, row 1 to UI\Widgets\Console\Human\infocard-priest.blp
    Multiboard - Set the icon for (Last created multiboard) item in column 1, row 2 to UI\Widgets\Console\Human\infocard-shaman.blp
    Multiboard - Set the width for (Last created multiboard) item in column 1, row 1 to 7.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 1, row 2 to 7.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 4.00% of the total screen width
    Multiboard - Set the width for (Last created multiboard) item in column 2, row 1 to 4.00% of the total screen width
    Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Alliance
    Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to Horde
    Multiboard - Show (Last created multiboard)
scoreboardUpdate
  Events
    Time - Every 2 seconds of game time
  Conditions
  Actions
    Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String((Income_Alliance x 10)))
    Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String((Income_Horde x 10)))
Quit detection
  Events
    Time - Every 15.00 seconds of game time
  Conditions
  Actions
    Player Group - Pick every player in (All players) and do (If (((Picked player) slot status) Equal to Has left the game) then do (Grant shared vision and full shared unit control of (Picked player) units with his/her allies) else do (Do nothing))
    Game - Display to TheAlliance the text: |c007d7d7d[Player has left the game. Control granted to his allies, gold compensation initiated.|cffaaaa40CHECK THIS OUT|r
cleric
  Events
    Unit - A unit enters
  Conditions
    (Owner of (Triggering unit)) Equal to Player 2 (Blue)
  Actions
    Unit - Order (Triggering unit) to Attack-Move To.(Random point in waypoint17 <gen>)
night
  Events
    Map initialization
  Conditions
  Actions
    Game - Set time of day speed to 1.00% of the default speed
    Game - Turn the day/night cycle Off
    Environment - Set sky to Fogged Sky
misc orders
  Events
    Time - Elapsed game time is 30.00 seconds
  Conditions
  Actions
    Unit - Order Footman 0646 <gen> to Patrol To.(Random point in waypoint23 <gen>)
    Unit - Order Footman 0846 <gen> to Patrol To.(Random point in Region_037 <gen>)
    Unit - Order Elven Archer 0405 <gen> to Hold Position.
    Unit - Order Elven Archer 0664 <gen> to Hold Position.
    Unit - Order Elven Archer 0405 <gen> to Hold Position.
    Unit - Order Elven Archer 0532 <gen> to Hold Position.
    Unit - Order Rifleman 0037 <gen> to Hold Position.
    Unit - Order Rifleman 0534 <gen> to Hold Position.
    Unit - Order Troll Headhunter 0612 <gen> to Hold Position.
    Unit - Order Troll Headhunter 0254 <gen> to Hold Position.
    Unit - Order Troll Headhunter 0030 <gen> to Hold Position.
    Unit - Order Troll Headhunter 0399 <gen> to Hold Position.
    Unit - Order Elven Archer 0200 <gen> to Hold Position.
    Unit - Order Elven Archer 0113 <gen> to Hold Position.
    Unit - Order Orc Juggernaught 0653 <gen> to Hold Position.
    Unit - Order Orc Frigate 0631 <gen> to Hold Position.
    Unit - Order Orc Frigate 0631 <gen> to Hold Position.
    Unit - Order Human Frigate 0655 <gen> to Hold Position.
patrolwyvern
  Events
    Time - Every 6.00 seconds of game time
  Conditions
  Actions
    Unit - Order Wyvern Rider 0331 <gen> to Attack-Move To.(Random point in fortressPerimeter <gen>)
patrolgriffon
  Events
    Time - Every 6.00 seconds of game time
  Conditions
  Actions
    Unit - Order Gryphon Rider 0333 <gen> to Attack-Move To.(Random point in castlePerimeter <gen>)
tranquilGroveEnter
  Events
    Unit - A unit enters grove_of_tranquillity <gen>
  Conditions
    And - All (Conditions) are true
      Conditions
        (Unit-type of (Triggering unit)) Not equal to Triumph
        (Unit-type of (Triggering unit)) Not equal to Doom Knight
        (Unit-type of (Triggering unit)) Not equal to Shadow Warrior
  Actions
    If (((Triggering unit) is A Hero) Equal to True) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) for 5.00 seconds the text: |cffff8c00You have entered the Grove of Tranquillity. Here you are safe.) else do (Do nothing)
    Unit - Make (Entering unit) Invulnerable
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Unit-type of (Triggering unit)) Equal to Windranger
        (RangerGift <gen> is on) Equal to True
      Then - Actions
        Trigger - Run RangerGift <gen> (checking conditions)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Unit-type of (Triggering unit)) Equal to Beastmaster
            (BeastmasterGift <gen> is on) Equal to True
          Then - Actions
            Trigger - Run BeastmasterGift <gen> (checking conditions)
          Else - Actions
            Do nothing
tranquilGroveEnterForsaken
  Events
    Unit - A unit enters grove_of_tranquillity <gen>
  Conditions
    Or - Any (Conditions) are true
      Conditions
        (Unit-type of (Triggering unit)) Equal to Triumph
        (Triggering unit) Equal to Doom Knight 0592 <gen>
        (Triggering unit) Equal to Shadow Warrior 0590 <gen>
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Unit-type of (Triggering unit)) Equal to Doom Knight
      Then - Actions
        If (((Triggering unit) is A Hero) Equal to True) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) for 5.00 seconds the text: |cffff8c00You have entered the Grove of Tranquillity.) else do (Do nothing)
        Cinematic - Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Keeper of the Grove 0549 <gen> named The Keeper of the Grove: Play No sound and display "The wind revealed your taint from afar, demon. Begone! This sacred place shall be free of your kind!". Modify duration: Add 5.00 seconds and Don't wait
        Wait 2 seconds
        Unit - Order Ancient Protector 0618 <gen> to Attack.(Triggering unit)
        Wait 2 seconds
        Unit - Order Keeper of the Grove 0549 <gen> to Attack.(Triggering unit)
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Unit-type of (Triggering unit)) Equal to Shadow Warrior
          Then - Actions
            If (((Triggering unit) is A Hero) Equal to True) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) for 5.00 seconds the text: |cffff8c00You have entered the Grove of Tranquillity.) else do (Do nothing)
            Cinematic - Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Keeper of the Grove 0549 <gen> named The Keeper of the Grove: Play No sound and display "You know you are not welcome here anymore, forlorn brother! Please leave this place free of your darkness or I shall be forced to destroy you!". Modify duration: Add 5.00 seconds and Don't wait
            Wait 6.00 seconds
            Unit - Order Ancient Protector 0618 <gen> to Attack.(Triggering unit)
            Wait 2.00 seconds
            If ((grove_of_tranquillity <gen> contains (Triggering unit)) Equal to True) then do (Order Keeper of the Grove 0549 <gen> to Attack.(Triggering unit)) else do (Do nothing)
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Unit-type of (Triggering unit)) Equal to Triumph
              Then - Actions
                If (((Triggering unit) is A Hero) Equal to False) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) for 5.00 seconds the text: |cffff8c00You have entered the Grove of Tranquillity.) else do (Do nothing)
                Cinematic - Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Keeper of the Grove 0549 <gen> named The Keeper of the Grove: Play No sound and display "What is this constallation of darkness and destruction! The winds tear you from the sky and the waters flush you down to the underworld whence you came!". Modify duration: Add 5.00 seconds and Don't wait
                Wait 2 seconds
                Unit - Order Ancient Protector 0618 <gen> to Attack.(Triggering unit)
                Wait 2 seconds
                Unit - Order Keeper of the Grove 0549 <gen> to Attack.(Triggering unit)
              Else - Actions
                Do nothing
tranquilGroveLeave
  Events
    Unit - A unit leaves grove_of_tranquillity <gen>
  Conditions
    And - All (Conditions) are true
      Conditions
        (Unit-type of (Triggering unit)) Not equal to Triumph
        (Triggering unit) Not equal to
        (Triggering unit) Not equal to Shadow Warrior 0590 <gen>
  Actions
    If (((Triggering unit) is A Hero) Equal to True) then do (Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) for 5.00 seconds the text: |cffff8c00You have left the safety of the Grove.) else do (Do nothing)
    Unit - Make (Leaving unit) Vulnerable
    Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the text: You have left the safety of the grove.
RangerGift
  Events
  Conditions
  Actions
    Trigger - Turn off (This trigger)
    Special Effect - Create a special effect attached to the origin (attachpoint) of Pool of Tranquillity 0073 <gen> using ElunesFire.mdx
    Cinematic - Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Keeper of the Grove 0549 <gen> named The Keeper of the Grove: Play No sound and display "Be at ease, sister, and welcome at last. The winds spoke about the fortune of an honored guest. They are strong in your presence and paint your fortune bright. Be ever vigilant and let the stars guide you on your way". Modify duration: Set to 5.00 seconds and Don't wait
    Wait 4.00 seconds
    Animation - Play Keeper of the Grove 0549 <gen>'s channel (animationname) animation
    Unit - Create 1.Dryad for (Owner of (Triggering unit)) at (Center of grove_of_tranquillity <gen>) facing Default building facing degrees
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Last created unit) using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
    Unit - Create 1.Dryad for (Owner of (Triggering unit)) at ((Center of grove_of_tranquillity <gen>) offset by (200.00, -400.00)) facing Default building facing degrees
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Last created unit) using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
    Unit - Create 1.Faerie Dragon for (Owner of (Triggering unit)) at ((Center of grove_of_tranquillity <gen>) offset by (-100.00, 200.00)) facing Default building facing degrees
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Last created unit) using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Unit - Create 1.Hippogryph for (Owner of (Triggering unit)) at ((Center of grove_of_tranquillity <gen>) offset by (0.00, 100.00)) facing Default building facing degrees
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Last created unit) using Objects\Spawnmodels\NightElf\EntBirthTarget\EntBirthTarget.mdl
    Wait 2 seconds
    Animation - Reset Keeper of the Grove 0549 <gen>'s animation
BeastmasterGift
  Events
  Conditions
  Actions
    Trigger - Turn off (This trigger)
    Cinematic - Send transmission to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) from Keeper of the Grove 0549 <gen> named The Keeper of the Grove: Play No sound and display "An honored meeting, brother of noble beasts. Rest here in my gardens before your perilous path beckons again". Modify duration: Set to 5.00 seconds and Don't wait
    Wait 4.00 seconds
    Unit - Create 1.Stag for (Owner of (Triggering unit)) at (Center of grove_of_tranquillity <gen>) facing Default building facing degrees
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Last created unit) using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
    Unit - Create 1.Thunder Lizard for (Owner of (Triggering unit)) at ((Center of grove_of_tranquillity <gen>) offset by (200.00, -400.00)) facing Default building facing degrees
    Special Effect - Create a special effect attached to the chest (attachpoint) of (Last created unit) using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl
    Animation - Play Keeper of the Grove 0549 <gen>'s channel (animationname) animation
    Wait 2 seconds
    Animation - Reset Keeper of the Grove 0549 <gen>'s animation
FieldsHcontrol
  Events
    Time - Every 1.00 seconds of game time
  Conditions
    And - All (Conditions) are true
      Conditions
        (Owner of Hearth of the Field 0694 <gen>) Not equal to Player 1 (Red)
        (Number of units in (Units in Hearth_of_the_field <gen> matching (((((Matching unit) is A flying unit) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is A structure) Equal to False))) and (((Matching unit) belongs to an ally of Player 1 (Red).) Equal to True)))) Greater than or equal to 1