- Joined
- Mar 16, 2008
- Messages
- 959
Sometimes in this map hero altars are rushed and they get destroyed, these triggers are supposed to search the map for rebuild altars, and then use those altars in the auto-rez triggers as well as future rush attack targets by the NPC.
-
find altar
-
Events
-
Conditions
-
Actions
-
Set VariableSet owned_units_temp = (Units owned by Player 1 (Red).)
-
Unit Group - Pick every unit in owned_units_temp 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 Altar of Elders (custom merc)
-
(Unit-type of (Picked unit)) Equal to Corrupted Altar of Elders (corrupt player)
-
(Unit-type of (Picked unit)) Equal to Altar of Storms
-
(Unit-type of (Picked unit)) Equal to Altar of the Depths
-
(Unit-type of (Picked unit)) Equal to Pandaren Shrine
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[1] is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet altar_unit_var[1] = (Picked unit)
-
Custom script: call RemoveLocation(udg_flyer_altar[1])
-
Set VariableSet flyer_altar[1] = (Position of (Picked unit))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Unit Group - Remove (Picked unit) from owned_units_temp.
-
-
-
Set VariableSet owned_units_temp = (Units owned by Player 2 (Blue).)
-
Unit Group - Pick every unit in owned_units_temp 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 Altar of Elders (custom merc)
-
(Unit-type of (Picked unit)) Equal to Corrupted Altar of Elders (corrupt player)
-
(Unit-type of (Picked unit)) Equal to Altar of Storms
-
(Unit-type of (Picked unit)) Equal to Altar of the Depths
-
(Unit-type of (Picked unit)) Equal to Pandaren Shrine
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[2] is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet altar_unit_var[2] = (Picked unit)
-
Custom script: call RemoveLocation(udg_flyer_altar[2])
-
Set VariableSet flyer_altar[2] = (Position of (Picked unit))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Unit Group - Remove (Picked unit) from owned_units_temp.
-
-
-
Set VariableSet owned_units_temp = (Units owned by Player 3 (Teal).)
-
Unit Group - Pick every unit in owned_units_temp 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 Altar of Elders (custom merc)
-
(Unit-type of (Picked unit)) Equal to Corrupted Altar of Elders (corrupt player)
-
(Unit-type of (Picked unit)) Equal to Altar of Storms
-
(Unit-type of (Picked unit)) Equal to Altar of the Depths
-
(Unit-type of (Picked unit)) Equal to Pandaren Shrine
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[3] is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet altar_unit_var[3] = (Picked unit)
-
Custom script: call RemoveLocation(udg_flyer_altar[3])
-
Set VariableSet flyer_altar[3] = (Position of (Picked unit))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Unit Group - Remove (Picked unit) from owned_units_temp.
-
-
-
Set VariableSet owned_units_temp = (Units owned by Player 4 (Purple).)
-
Unit Group - Pick every unit in owned_units_temp 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 Altar of Elders (custom merc)
-
(Unit-type of (Picked unit)) Equal to Corrupted Altar of Elders (corrupt player)
-
(Unit-type of (Picked unit)) Equal to Altar of Storms
-
(Unit-type of (Picked unit)) Equal to Altar of the Depths
-
(Unit-type of (Picked unit)) Equal to Pandaren Shrine
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[4] is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet altar_unit_var[4] = (Picked unit)
-
Custom script: call RemoveLocation(udg_flyer_altar[4])
-
Set VariableSet flyer_altar[4] = (Position of (Picked unit))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Unit Group - Remove (Picked unit) from owned_units_temp.
-
-
-
Set VariableSet owned_units_temp = (Units owned by Player 13 (Maroon).)
-
Unit Group - Pick every unit in owned_units_temp 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 Altar of Elders (custom merc)
-
(Unit-type of (Picked unit)) Equal to Corrupted Altar of Elders (corrupt player)
-
(Unit-type of (Picked unit)) Equal to Altar of Storms
-
(Unit-type of (Picked unit)) Equal to Altar of the Depths
-
(Unit-type of (Picked unit)) Equal to Pandaren Shrine
-
-
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to altar_units
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[13] is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet altar_unit_var[13] = (Picked unit)
-
Custom script: call RemoveLocation(udg_flyer_altar[13])
-
Set VariableSet flyer_altar[13] = (Position of (Picked unit))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Unit Group - Remove (Picked unit) from owned_units_temp.
-
-
-
Set VariableSet owned_units_temp = (Units owned by Player 14 (Navy).)
-
Unit Group - Pick every unit in owned_units_temp 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 Altar of Elders (custom merc)
-
(Unit-type of (Picked unit)) Equal to Corrupted Altar of Elders (corrupt player)
-
(Unit-type of (Picked unit)) Equal to Altar of Storms
-
(Unit-type of (Picked unit)) Equal to Altar of the Depths
-
(Unit-type of (Picked unit)) Equal to Pandaren Shrine
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[14] is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet altar_unit_var[14] = (Picked unit)
-
Custom script: call RemoveLocation(udg_flyer_altar[14])
-
Set VariableSet flyer_altar[14] = (Position of (Picked unit))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Unit Group - Remove (Picked unit) from owned_units_temp.
-
-
-
Set VariableSet owned_units_temp = (Units owned by Player 15 (Turquoise).)
-
Unit Group - Pick every unit in owned_units_temp 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 Altar of Elders (custom merc)
-
(Unit-type of (Picked unit)) Equal to Corrupted Altar of Elders (corrupt player)
-
(Unit-type of (Picked unit)) Equal to Altar of Storms
-
(Unit-type of (Picked unit)) Equal to Altar of the Depths
-
(Unit-type of (Picked unit)) Equal to Pandaren Shrine
-
-
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to altar_units
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[15] is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet altar_unit_var[15] = (Picked unit)
-
Custom script: call RemoveLocation(udg_flyer_altar[15])
-
Set VariableSet flyer_altar[15] = (Position of (Picked unit))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Unit Group - Remove (Picked unit) from owned_units_temp.
-
-
-
Set VariableSet owned_units_temp = (Units owned by Player 16 (Violet).)
-
Unit Group - Pick every unit in owned_units_temp 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 Altar of Elders (custom merc)
-
(Unit-type of (Picked unit)) Equal to Corrupted Altar of Elders (corrupt player)
-
(Unit-type of (Picked unit)) Equal to Altar of Storms
-
(Unit-type of (Picked unit)) Equal to Altar of the Depths
-
(Unit-type of (Picked unit)) Equal to Pandaren Shrine
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[16] is dead) Equal to True
-
-
Then - Actions
-
Set VariableSet altar_unit_var[16] = (Picked unit)
-
Custom script: call RemoveLocation(udg_flyer_altar[16])
-
Set VariableSet flyer_altar[16] = (Position of (Picked unit))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Unit Group - Remove (Picked unit) from owned_units_temp.
-
-
-
-
-
hero auto rez 0
-
Events
-
Unit - A unit owned by Player 1 (Red) Becomes revivable
-
Unit - A unit owned by Player 2 (Blue) Becomes revivable
-
Unit - A unit owned by Player 3 (Teal) Becomes revivable
-
Unit - A unit owned by Player 4 (Purple) Becomes revivable
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
hc_bool Equal to True
-
-
Then - Actions
-
Unit - Remove (Revivable Hero) from the game
-
Countdown Timer - Start hardcore_cosmetic_timer[(Player number of (Owner of (Revivable Hero)))] as a One-shot timer that will expire in 0.10 seconds
-
-
Else - Actions
-
Countdown Timer - Start hero_rez_timer[(Player number of (Owner of (Revivable Hero)))] as a One-shot timer that will expire in 2.50 seconds
-
-
-
-
-
hero auto rez 1
-
Events
-
Time - hero_rez_timer[1] expires
-
-
Conditions
-
Actions
-
Unit - Order altar_unit_var[1] to Revive Hero hero_array[1]
-
-
-
spawn dragons
-
Events
-
Conditions
-
Actions
-
-------- this trigger makes flyers rush ancinets below wave 20 and altars above wave 20 -- it is ran in the main spawn trigger --------
-
Set VariableSet legion_index = (legion_index + 1)
-
If (legion_index Greater than 9) then do (Set VariableSet legion_index = 1) else do (Do nothing)
-
Unit - Create 1 Nether Dragon for legion_array[legion_index] at spawn_pt facing 90.00 degrees
-
Unit Group - Add (Last created unit) to demon_flyer
-
Set VariableSet sfx_pt = (Position of (Last created unit))
-
Special Effect - Create a special effect at sfx_pt using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Set VariableSet legion_index = (legion_index + 1)
-
If (legion_index Greater than 9) then do (Set VariableSet legion_index = 1) else do (Do nothing)
-
Unit - Create 1 Nether Dragon Hatchling for legion_array[legion_index] at spawn_pt facing 90.00 degrees
-
Unit Group - Add (Last created unit) to demon_flyer
-
Set VariableSet sfx_pt = (Position of (Last created unit))
-
Special Effect - Create a special effect at sfx_pt using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_flyer_target_pt)
-
Set VariableSet flyer_target_pt = (Position of ran_target)
-
Set VariableSet ran_num_fly_tar = (Random integer number between 1 and 4)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
difficulty_setting Equal to 6
-
-
Then - Actions
-
Set VariableSet play_teleporter_sfx = True
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Set VariableSet legion_index = (legion_index + 1)
-
If (legion_index Greater than 9) then do (Set VariableSet legion_index = 1) else do (Do nothing)
-
Unit - Create 1 Nether Dragon Hatchling for legion_array[legion_index] at spawn_pt facing 90.00 degrees
-
Unit Group - Add (Last created unit) to demon_flyer
-
Set VariableSet sfx_pt = (Position of (Last created unit))
-
Special Effect - Create a special effect at sfx_pt using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
spawn_counter Less than or equal to 19
-
-
Then - Actions
-
Unit Group - Pick every unit in demon_flyer and do (Actions)
-
Loop - Actions
-
Unit - Order (Picked unit) to Attack-Move To flyer_target_pt
-
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
spawn_counter Greater than 19
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(altar_unit_var[ran_num_fly_tar] is alive) Equal to True
-
-
Then - Actions
-
Unit Group - Pick every unit in demon_flyer and do (Actions)
-
Loop - Actions
-
Unit - Order (Picked unit) to Move To flyer_altar[ran_num_fly_tar]
-
-
-
-
Else - Actions
-
Unit Group - Pick every unit in demon_flyer and do (Actions)
-
Loop - Actions
-
Unit - Order (Picked unit) to Attack-Move To flyer_target_pt
-
-
-
-
-
-
Else - Actions
-
-
-