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
Protect the Castle.w3x
Variables
Initialization
Melee Initialization
F9 settings
Hero 1
Places
Hero 1 Copy
Hero 1 Copy 2
Hero 1 Copy 3
Hero 1 Copy 3 Copy
Hero 1 Copy 3 Copy Copy
Items
Faramir
Faramir Comes To Aid Us
The Heros Reinforcement
Region 1 Copy 2
HEROS
Gates
The Elven Gate
Haradim
Saruman
Attack
Saron
The Elven Gate 2
Elves
Orc Kill
The King
Gondor Reinforcement
Mordor
Mordor
Witch King
Money
Money
Every 5 seconds
Gate
Open Orc Gate
Close Orc Gate
Open Gate
Close Gate
Open Outer Gate
Close Outer Gate
End Of Game
Cenarius
Good Win Rule
Name
Type
is_array
initial_value
pick_taken
integer
Yes
Player_Kills
integer
Yes
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Do nothing)
If ((Player 1 (Red) controller) Equal to User) then do (Create 1.Wisp for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees) else do (Do nothing)
If ((Player 2 (Blue) controller) Equal to User) then do (Create 1.Wisp for Player 2 (Blue) at (Player 2 (Blue) start location) facing Default building facing degrees) else do (Do nothing)
Unit - Make The White Tree 0011 <gen> Invulnerable
Unit - Make Altar of Kings 0331 <gen> Invulnerable
Unit - Make Altar of Kings 0332 <gen> Invulnerable
Unit - Make Tome Shop 0169 <gen> Invulnerable
Unit - Make Tome Shop 0041 <gen> Invulnerable
F9 settings
Events
Map initialization
Conditions
Actions
Quest - Create a Optional quest titled Gate Commands with the description Open innergate -open gateOpen Outergate -open outerClose innergate -close sideClose Outergate -close outer , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Hero 1
Events
Unit - A unit enters Region_000 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Set Variable Set pick_taken[1] = "1"
Unit - Hide Ranger 0004 <gen>
Unit - Create 1 . Ranger for (Owner of (Triggering unit)) at (Center of Region_005 <gen>) facing Default building facing degrees
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Region_005 <gen>) over 0 seconds
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Places
Events
Map initialization
Conditions
Actions
Floating Text - Create floating text that reads Gondor at (Center of Region_017 <gen>) with Z offset 0 , using font size 14.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads Haradim at (Center of Haradim <gen>) with Z offset 0 , using font size 14.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads Mordor at (Center of REAL_MORDOR <gen>) with Z offset 0 , using font size 14.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads Made by 2rani at (Center of Toorani <gen>) with Z offset 0 , using font size 12.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Hero 1 Copy
Events
Unit - A unit enters Region_001 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Set Variable Set pick_taken[2] = "1"
Unit - Hide Istari 0007 <gen>
Unit - Create 1 . Istari for (Owner of (Triggering unit)) at (Center of Region_005 <gen>) facing Default building facing degrees
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Region_005 <gen>) over 0 seconds
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Hero 1 Copy 2
Events
Unit - A unit enters Region_002 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Set Variable Set pick_taken[3] = "1"
Unit - Hide The Heir To The Thronee 0005 <gen>
Unit - Create 1 . The Heir To The Thronee for (Owner of (Triggering unit)) at (Center of Region_005 <gen>) facing Default building facing degrees
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Region_005 <gen>) over 0 seconds
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Hero 1 Copy 3
Events
Unit - A unit enters Region_003 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Set Variable Set pick_taken[4] = "1"
Unit - Hide Mountain King 0006 <gen>
Unit - Create 1 . Mountain King for (Owner of (Triggering unit)) at (Center of Region_005 <gen>) facing Default building facing degrees
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Region_005 <gen>) over 0 seconds
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Hero 1 Copy 3 Copy
Events
Unit - A unit enters Region_008 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Set Variable Set pick_taken[5] = "1"
Unit - Hide King of the Elves 0245 <gen>
Unit - Create 1 . King of the Elves for (Owner of (Triggering unit)) at (Center of Region_005 <gen>) facing Default building facing degrees
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Region_005 <gen>) over 0 seconds
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Hero 1 Copy 3 Copy Copy
Events
Unit - A unit enters Boromir <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Set Variable Set pick_taken[6] = "1"
Unit - Hide Son of Denethor 0599 <gen>
Unit - Create 1 . Son of Denethor for (Owner of (Triggering unit)) at (Center of Region_005 <gen>) facing Default building facing degrees
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Region_005 <gen>) over 0 seconds
Unit - Remove (Triggering unit) from the game
Trigger - Turn off (This trigger)
Faramir Comes To Aid Us
Events
Time - Elapsed game time is 600.00 seconds
Conditions
Actions
Unit - Create 1 Faramir for Player 3 (Teal) at (Center of The_Real_Army <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 3 Archer for Player 3 (Teal) at (Center of The_Real_Army <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 4 Riders Of Rohan for Player 3 (Teal) at (Center of The_Real_Army <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 2 Mountain King for Player 3 (Teal) at (Center of The_Real_Army <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 2 Paladin for Player 3 (Teal) at (Center of The_Real_Army <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit Group - Order (Units in The_Real_Army <gen>) to Attack-Move To . (Center of Region_017 <gen>)
Game - Display to (All players) the text: Faramir has come the Son of Denethor has come to Aid us against the Foul Orcs
Region 1 Copy 2
Events
Unit - A unit enters Region_009 <gen>
Conditions
Actions
Unit - Create 10 . Riders Of Rohan for Player 1 (Red) at (Center of Region_009 <gen>) facing Default building facing degrees
Trigger - Turn off (This trigger)
HEROS
Events
Map initialization
Conditions
Actions
Unit - Make Istari 0007 <gen> Invulnerable
Unit - Make King of the Elves 0245 <gen> Invulnerable
Unit - Make Ranger 0004 <gen> Invulnerable
Unit - Make The Heir To The Thronee 0005 <gen> Invulnerable
Unit - Make Mountain King 0006 <gen> Invulnerable
The Elven Gate
Events
Time - Every 90.00 seconds of game time
Conditions
Actions
Unit - Create 1 Fel Orc Raider for Player 4 (Purple) at (Center of Region_012 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Fel Orc Grunt for Player 4 (Purple) at (Center of Region_012 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Warlord for Player 4 (Purple) at (Center of Region_012 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 1 Pit Lord for Player 4 (Purple) at (Center of Region_012 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit Group - Order (Units in Region_012 <gen>) to Attack-Move To . (Center of Region_006 <gen>)
Unit - Create 2 Crossbow Orc for Player 4 (Purple) at (Center of Region_012 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Haradim
Events
Time - Every 50.00 seconds of game time
Conditions
Actions
Unit - Create 2 . Hardim Slayer for Player 4 (Purple) at (Center of Haradim <gen>) facing Default building facing degrees
Unit - Create 1 . Haradim Lord for Player 4 (Purple) at (Center of Haradim <gen>) facing Default building facing degrees
Unit - Create 2 . Haradim Enforcer for Player 4 (Purple) at (Center of Haradim <gen>) facing Default building facing degrees
Unit - Create 2 . Haradim Assassin for Player 4 (Purple) at (Center of Haradim <gen>) facing Default building facing degrees
Unit - Create 2 . Haradim Warrior for Player 4 (Purple) at (Center of Haradim <gen>) facing Default building facing degrees
Unit Group - Order (Units in Haradim <gen>) to Attack-Move To . (Center of Region_006 <gen>)
Saruman
Events
Time - Elapsed game time is 300.00 seconds
Conditions
Actions
Unit - Create 1 Saruman for Player 4 (Purple) at (Center of Saruman <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Large Orc for Player 4 (Purple) at (Center of Saruman <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 3 Fel Orc Raider for Player 4 (Purple) at (Center of Saruman <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 4 Blademaster (Possessed) for Player 4 (Purple) at (Center of Saruman <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit Group - Order (Units in Saruman <gen>) to Attack-Move To . (Center of Region_006 <gen>)
Game - Display to (All players) the text: Saruman has come prepare the Defences we shall win this battle kill Saruman!
Hero - Set (Random unit from (Units owned by Player 4 (Purple) of type Saruman)) Hero-level to 200 , Hide level-up graphics
Attack
Events
Time - Every 100.00 seconds of game time
Conditions
Actions
Unit - Create 1 Fel Rider (living) for Player 4 (Purple) at (Center of Region_007 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Ogre Gladiator for Player 4 (Purple) at (Center of Region_007 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 1 Sapphiron (undead) for Player 4 (Purple) at (Center of Region_007 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 3 Large Orc for Player 4 (Purple) at (Center of Region_007 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit Group - Order (Units in Region_007 <gen>) to Attack-Move To . (Center of Region_006 <gen>)
Saron
Events
Time - Elapsed game time is 700.00 seconds
Conditions
Actions
Unit - Create 3 Large Orc for Player 4 (Purple) at (Center of Saroun <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Fel Orc Grunt for Player 4 (Purple) at (Center of Saroun <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 3 Siege Golem for Player 4 (Purple) at (Center of Saroun <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit Group - Order (Units in Saroun <gen>) to Attack-Move To . (Center of Region_006 <gen>)
The Elven Gate 2
Events
Time - Every 100.00 seconds of game time
Conditions
Actions
Unit - Create 1 Blademaster (Possessed) for Player 4 (Purple) at (Center of Region_013 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Orc Warchief for Player 4 (Purple) at (Center of Region_013 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 1 Shadow Wolf (Level 3) for Player 4 (Purple) at (Center of Region_013 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Grunt for Player 4 (Purple) at (Center of Region_013 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 1 Blademaster for Player 4 (Purple) at (Center of Region_013 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 1 Ogre Gladiator for Player 4 (Purple) at (Center of Region_013 <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit Group - Order (Units in Region_013 <gen>) to Attack-Move To . (Center of Region_006 <gen>)
Orc Kill
Events
Time - Every 100.00 seconds of game time
Conditions
Actions
Unit - Create 2 Archer for Player 3 (Teal) at (Center of Region_015 <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 3 Riders Of Rohan for Player 3 (Teal) at (Center of Region_015 <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 3 Footman for Player 3 (Teal) at (Center of Region_015 <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit Group - Order (Units in Region_015 <gen>) to Attack-Move To . (Center of Region_014 <gen>)
The King
Events
Time - Elapsed game time is 400.00 seconds
Conditions
Actions
Unit - Create 1 Paladin for Player 3 (Teal) at (Center of Region_018 <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 2 Searinox for Player 3 (Teal) at (Center of Region_018 <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 3 Riders Of Rohan for Player 3 (Teal) at (Center of Region_018 <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 2 Footman for Player 3 (Teal) at (Center of Region_018 <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 4 Archer for Player 3 (Teal) at (Center of Region_018 <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit Group - Order (Units in Region_018 <gen>) to Attack-Move To . (Center of Region_017 <gen>)
Game - Display to (All players) the text: King Theodon Has Come To Aid Us In This Battle!
Gondor Reinforcement
Events
Time - Every 200.00 seconds of game time
Conditions
Actions
Unit - Create 4 Archer for Player 3 (Teal) at (Center of Reinforcements <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 1 Paladin for Player 3 (Teal) at (Center of Reinforcements <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit - Create 2 Riders Of Rohan for Player 3 (Teal) at (Center of Reinforcements <gen>) facing (Position of The First Hero Of The Orcs 0049 <gen>)
Unit Group - Order (Units in Reinforcements <gen>) to Attack-Move To . (Center of Region_017 <gen>)
Game - Display to (All players) the text: Gondor Has Sent Help For Us!
Mordor
Events
Time - Every 100.00 seconds of game time
Conditions
Actions
Unit - Create 4 Ghoul for Player 4 (Purple) at (Center of Mordor <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 1 Nazgul for Player 4 (Purple) at (Center of Mordor <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Fel Rider (living) for Player 4 (Purple) at (Center of Mordor <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 2 Grunt for Player 4 (Purple) at (Center of Mordor <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit - Create 3 Fel Rider (living) for Player 4 (Purple) at (Center of Mordor <gen>) facing (Position of Steward of Gondor 0020 <gen>)
Unit Group - Order (Units in Mordor <gen>) to Attack-Move To . (Center of Region_006 <gen>)
Witch King
Events
Time - Elapsed game time is 700.00 seconds
Conditions
Actions
Unit - Create 1 . Witch King for Player 4 (Purple) at (Center of Mordor <gen>) facing Default building facing degrees
Unit - Create 2 . The 2nd for Player 4 (Purple) at (Center of Mordor <gen>) facing Default building facing degrees
Unit - Create 2 . Nazgul for Player 4 (Purple) at (Center of Mordor <gen>) facing Default building facing degrees
Unit - Create 5 . Fel Rider (living) for Player 4 (Purple) at (Center of Mordor <gen>) facing Default building facing degrees
Unit Group - Order (Units in Mordor <gen>) to Attack-Move To . (Center of Region_006 <gen>)
Money
Events
Map initialization
Conditions
Actions
Player - Set Player 1 (Red) . Current gold to 5000
Player - Set Player 2 (Blue) . Current gold to 5000
Player - Set Player 3 (Teal) . Current gold to 5000
Player - Set Player 4 (Purple) . Current gold to 5000
Every 5 seconds
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Player - Add 1000 to Player 1 (Red) . Current gold
Player - Add 1000 to Player 2 (Blue) . Current gold
Player - Add 1000 to Player 3 (Teal) . Current gold
Open Orc Gate
Events
Player - Player 4 (Purple) types a chat message containing -open evil (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Destructible - Open Dungeon Gate 0111 <gen>
Close Orc Gate
Events
Player - Player 4 (Purple) types a chat message containing -close evil (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Destructible - Close Dungeon Gate 0111 <gen>
Open Gate
Events
Player - Player 1 (Red) types a chat message containing -open gate (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -open gate (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Destructible - Open Elven Gate 0000 <gen>
Close Gate
Events
Player - Player 1 (Red) types a chat message containing -close gate (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -close gate (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Destructible - Close Elven Gate 0000 <gen>
Open Outer Gate
Events
Player - Player 1 (Red) types a chat message containing -open outer (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -open outer (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -open outer (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Destructible - Open Fire Shield 0175 <gen>
Close Outer Gate
Events
Player - Player 1 (Red) types a chat message containing -close outer (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -close outer (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -close outer (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Destructible - Close Fire Shield 0175 <gen>
Cenarius
Events
Unit - Steward of Gondor 0020 <gen> Dies
Conditions
Actions
Game - Defeat Player 1 (Red) with the message: U have Failed To Protect Cenarius!
Game - Defeat Player 2 (Blue) with the message: U have Failed to protect Cenarius!
Game - Victory Player 4 (Purple) ( Show dialogs, Show scores)
Game - Defeat Player 3 (Teal) with the message: U have Failed To Protect Cenarius
Good Win Rule
Events
Unit - The DarkLord 0575 <gen> Dies
Conditions
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Game - Defeat Player 4 (Purple) with the message: U SUCK!
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.