Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Anub'arak War.w3x
Variables
Initialization
Message
Ally
Anubarak
Revive
Just
Creep
Kill 10
Kill 20
Kill 50
Living Leaderboard
Mana Burn
Win Lose
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
Message
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Game - Display to (Player group(Player 2 (Blue))) the text: Type = -kill10/20/50 to set the kill....Last 15 seconds
Wait 15.00 seconds
Trigger - Turn off (This trigger)
Ally
Events
Map initialization
Conditions
Actions
Player Group - Add Player 1 (Red) to Player Group - Player 1 (Red)
Player Group - Add Player 2 (Blue) to Player Group - Player 1 (Red)
Player Group - Add Player 3 (Teal) to Player Group - Player 1 (Red)
Player Group - Add Player 4 (Purple) to Player Group - Player 1 (Red)
Player Group - Add Player 5 (Yellow) to Player Group - Player 1 (Red)
Player Group - Add Player 6 (Orange) to Player Group - Player 1 (Red)
Player Group - Add Player 7 (Green) to Player Group - Player 7 (Green)
Player Group - Add Player 8 (Pink) to Player Group - Player 7 (Green)
Player Group - Add Player 9 (Gray) to Player Group - Player 7 (Green)
Player Group - Add Player 10 (Light Blue) to Player Group - Player 7 (Green)
Player Group - Add Player 11 (Dark Green) to Player Group - Player 7 (Green)
Player Group - Add Player 12 (Brown) to Player Group - Player 7 (Green)
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Make (Picked player) treat Player 7 (Green) as an Enemy)
Player Group - Pick every player in Player Group - Player 7 (Green) and do (Make (Picked player) treat Player 1 (Red) as an Enemy)
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Make (Picked player) treat Player 1 (Red) as an Ally with shared vision)
Player Group - Pick every player in Player Group - Player 7 (Green) and do (Make (Picked player) treat Player 7 (Green) as an Ally with shared vision)
Anubarak
Events
Time - Elapsed game time is 5 seconds
Conditions
Actions
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 3 (Teal) at (Center of Region_000 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 4 (Purple) at (Center of Region_000 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 5 (Yellow) at (Center of Region_000 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 6 (Orange) at (Center of Region_000 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 8 (Pink) at (Center of Region_001 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 9 (Gray) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 9 (Gray) at (Center of Region_001 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 10 (Light Blue) at (Center of Region_001 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 11 (Dark Green) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 11 (Dark Green) at (Center of Region_001 <gen>) facing Default building facing degrees) else do (Do nothing)
If ((Player 12 (Brown) slot status) Equal to Is playing) then do (Create 1.Nerubian Assassin for Player 12 (Brown) at (Center of Region_001 <gen>) facing Default building facing degrees) else do (Do nothing)
Revive
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Dying unit)) Equal to Player 1 (Red)
(Owner of (Dying unit)) Equal to Player 2 (Blue)
(Owner of (Dying unit)) Equal to Player 3 (Teal)
(Owner of (Dying unit)) Equal to Player 4 (Purple)
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
(Owner of (Dying unit)) Equal to Player 6 (Orange)
Then - Actions
Game - Display to (All allies of (Owner of (Dying unit)).) the text: ((Name of (Owner of (Dying unit))) + ( will respawned after + ((String((Level of (Dying unit)))) + seconds...)))
Wait (Real((Level of (Dying unit)))) seconds
Hero - Instantly revive (Dying unit) at (Center of Region_000 <gen>) , Hide revival graphics
Else - Actions
Game - Display to (All allies of (Owner of (Dying unit)).) the text: ((Name of (Owner of (Dying unit))) + ( will respawned after + ((String((Level of (Dying unit)))) + seconds...)))
Wait (Real((Level of (Dying unit)))) seconds
Hero - Instantly revive (Dying unit) at (Center of Region_001 <gen>) , Hide revival graphics
Just
Events
Map initialization
Conditions
Actions
Unit - Move Black Cidatel 0013 <gen> instantly to (Center of Region_000 <gen>)
Unit - Move Black Cidatel 0012 <gen> instantly to (Center of Region_001 <gen>)
Creep
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Unit - Create 5 . Shredder for Neutral Hostile at (Random point in Region_002 <gen>) facing Default building facing degrees
Unit - Set life of (Last created unit) to ((Max life of (Last created unit)) + 5.00)
Kill 10
Events
Player - Player 2 (Blue) types a chat message containing -kill10 (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Player - Set Player 1 (Red) . Current lumber to 10
Player - Set Player 7 (Green) . Current lumber to 10
Game - Display to (All players) the text: ((Name of Player 2 (Blue)) + ( has set the kill to + ((String((Player 1 (Red) Current lumber))) + ...So fight your enemies now)))
Leaderboard - Create a leaderboard for (All players) titled Kill needed to win
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Alliance of Holy and value (Player 1 (Red) Current lumber)
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label Alliance of Darkness and value (Player 7 (Green) Current lumber)
Trigger - Turn off Message <gen>
Trigger - Turn off Kill_50 <gen>
Trigger - Turn off Kill_20 <gen>
Trigger - Turn off (This trigger)
Kill 20
Events
Player - Player 2 (Blue) types a chat message containing -kill20 (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Player - Set Player 1 (Red) . Current lumber to 20
Player - Set Player 7 (Green) . Current lumber to 20
Game - Display to (All players) the text: ((Name of Player 2 (Blue)) + ( has set the kill to + ((String((Player 1 (Red) Current lumber))) + ...So fight your enemies now)))
Leaderboard - Create a leaderboard for (All players) titled Kill needed to win
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Alliance of Holy and value (Player 1 (Red) Current lumber)
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label Alliance of Darkness and value (Player 7 (Green) Current lumber)
Trigger - Turn off Message <gen>
Trigger - Turn off Kill_50 <gen>
Trigger - Turn off Kill_10 <gen>
Trigger - Turn off (This trigger)
Kill 50
Events
Player - Player 2 (Blue) types a chat message containing -kill50 (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Player - Set Player 1 (Red) . Current lumber to 50
Player - Set Player 7 (Green) . Current lumber to 50
Game - Display to (All players) the text: ((Name of Player 2 (Blue)) + ( has set the kill to + ((String((Player 1 (Red) Current lumber))) + ...So fight your enemies now)))
Leaderboard - Create a leaderboard for (All players) titled Kill needed to win
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Alliance of Holy and value (Player 1 (Red) Current lumber)
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label Alliance of Darkness and value (Player 7 (Green) Current lumber)
Trigger - Turn off Message <gen>
Trigger - Turn off Kill_10 <gen>
Trigger - Turn off Kill_20 <gen>
Trigger - Turn off (This trigger)
Living Leaderboard
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Not equal to Neutral Passive
Or - Any (Conditions) are true
Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
(Owner of (Killing unit)) Equal to Player 2 (Blue)
(Owner of (Killing unit)) Equal to Player 3 (Teal)
(Owner of (Killing unit)) Equal to Player 4 (Purple)
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
(Owner of (Killing unit)) Equal to Player 6 (Orange)
Then - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + ( has pawned + ((Name of (Owner of (Killing unit))) + ('s for + ((String(((Hero level of (Dying unit)) x 35))) + gold)))))
Player - Add ((Hero level of (Dying unit)) x 35) to (Owner of (Killing unit)) . Current gold
Player - Set Player 1 (Red) . Current lumber to ((Player 1 (Red) Current lumber) - 1)
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to (Player 1 (Red) Current lumber)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Not equal to Neutral Passive
Or - Any (Conditions) are true
Conditions
(Owner of (Killing unit)) Equal to Player 7 (Green)
(Owner of (Killing unit)) Equal to Player 8 (Pink)
(Owner of (Killing unit)) Equal to Player 9 (Gray)
(Owner of (Killing unit)) Equal to Player 10 (Light Blue)
(Owner of (Killing unit)) Equal to Player 11 (Dark Green)
(Owner of (Killing unit)) Equal to Player 12 (Brown)
Then - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + ( has pawned + ((Name of (Owner of (Killing unit))) + ('s for + ((String(((Hero level of (Dying unit)) x 35))) + gold)))))
Player - Add ((Hero level of (Dying unit)) x 35) to (Owner of (Killing unit)) . Current gold
Player - Set Player 7 (Green) . Current lumber to ((Player 7 (Green) Current lumber) - 1)
Leaderboard - Change the value for Player 7 (Green) in (Last created leaderboard) to (Player 7 (Green) Current lumber)
Else - Actions
Mana Burn
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mana Burn
Actions
Floating Text - Destroy (Last created floating text)
Floating Text - Create floating text that reads (|c008080FF- + ((String(((Intelligence of (Target unit of ability being cast) (Include bonuses)) x 4))) + |r)) at (Position of (Target unit of ability being cast)) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Unit - Set mana of (Target unit of ability being cast) to ((Mana of (Target unit of ability being cast)) - ((Real((Intelligence of (Target unit of ability being cast) (Include bonuses)))) x 4.00))
Unit - Cause (Casting unit) to damage (Target unit of ability being cast) , dealing ((Real((Intelligence of (Target unit of ability being cast) (Include bonuses)))) x 4.00) damage of attack type Spells and damage type Normal
Wait 1.00 seconds
Floating Text - Destroy (Last created floating text)
Win Lose
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) Current lumber) Equal to 0
Then - Actions
Leaderboard - Destroy (Last created leaderboard)
Unit - Pause all units
Game - Display to (All players) the text: |c00FF0000Alliance of Holy|r has win....Get the latest version of Anub'arak war on |c008080FFwww.HiveWorkshop.com|r
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 7 (Green) Current lumber) Equal to 0
Then - Actions
Leaderboard - Destroy (Last created leaderboard)
Unit - Pause all units
Game - Display to (All players) the text: |c0000FF00Alliance of Darkness|r has win....Get the latest version of Anub'arak war on |c008080FFwww.HiveWorkshop.com|r
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.