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
BattleoftheElements12.w3x
Variables
Initialization
Loadwells
Game End
Game End Copy
Game End Copy Copy
Game End Copy Copy 2
Starting Lumber
Start up hints
Quest Hints
Gain Control Well
Antiflagexploit
Kill Changed Workers
Switch Control Well 1
Switch Control Well 2
Switch Control Well 3
Switch Control Well 4
Switch Control Well 5
Switch Control Well 6
Switch Control Well 7
Redwell
Yellwell
Browwell Copy
bluwell Copy
Trigger Enhanced Abilities
Thunder Storm
Leavers
Alliance 1
Alliance 1 Copy
Alliance 2
Alliance 2 Copy
Ai
Player 12 ai
Player 2 ai
Player 5 ai
Player 1 ai
revive12
revive2
revive1
revive5
Hero Limiting
Hero Limiting
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
Loadwells
Events
Map initialization
Conditions
Actions
Unit - Order Spirit Well 0264 <gen> to Load . Cinder 0276 <gen>
Unit - Order Spirit Well 0267 <gen> to Load . Static 0277 <gen>
Unit - Order Spirit Well 0270 <gen> to Load . Mud Golem 0278 <gen>
Unit - Order Spirit Well 0273 <gen> to Load . Marsh Elemental 0279 <gen>
Last building
Game End
Events
Unit - Nature Champion Hall 0020 <gen> Dies
Conditions
(Water Champion Hall 0014 <gen> is dead) Equal to True
Actions
Game - Defeat Player 2 (Blue) with the message: You and your allie's Main Champion Hall has been destroyed!
Game - Defeat Player 12 (Brown) with the message: You and your allie's Main Champion Hall has been destroyed!
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Victory Player 5 (Yellow) ( Show dialogs, Show scores)
Last building
Game End Copy
Events
Unit - Water Champion Hall 0014 <gen> Dies
Conditions
(Nature Champion Hall 0020 <gen> is dead) Equal to True
Actions
Game - Defeat Player 2 (Blue) with the message: You and your allie's Main Champion Hall has been destroyed!
Game - Defeat Player 12 (Brown) with the message: You and your allie's Main Champion Hall has been destroyed!
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Victory Player 5 (Yellow) ( Show dialogs, Show scores)
Last building
Game End Copy Copy
Events
Unit - Fire Champion Hall 0013 <gen> Dies
Conditions
(Thunder Champion Hall 0016 <gen> is dead) Equal to True
Actions
Game - Defeat Player 1 (Red) with the message: You and your allie's Main Champion Hall has been destroyed!
Game - Defeat Player 5 (Yellow) with the message: You and your allie's Main Champion Hall has been destroyed!
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Victory Player 12 (Brown) ( Show dialogs, Show scores)
Last building
Game End Copy Copy 2
Events
Unit - Thunder Champion Hall 0016 <gen> Dies
Conditions
(Fire Champion Hall 0013 <gen> is dead) Equal to True
Actions
Game - Defeat Player 1 (Red) with the message: You and your allie's Main Champion Hall has been destroyed!
Game - Defeat Player 5 (Yellow) with the message: You and your allie's Main Champion Hall has been destroyed!
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Victory Player 12 (Brown) ( Show dialogs, Show scores)
10 lumber per team + disable sleep
Starting Lumber
Events
Map initialization
Conditions
Actions
Player - Disable sleeping for all creeps
Player - Set Player 1 (Red) . Current lumber to 20
Player - Set Player 2 (Blue) . Current lumber to 20
Player - Set Player 5 (Yellow) . Current lumber to 20
Player - Set Player 12 (Brown) . Current lumber to 20
Player - Set Player 1 (Red) . Current gold to 20
Player - Set Player 2 (Blue) . Current gold to 20
Player - Set Player 12 (Brown) . Current gold to 20
Player - Set Player 5 (Yellow) . Current gold to 20
Tips
Start up hints
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Wait 3.00 seconds
Quest - Display to (All players) the Hint message: Champion halls will automatically produce 1 worker every 10 seconds untill it maxes out at 3.
Wait 10.00 seconds
Quest - Display to (All players) the Hint message: To increase the amount of max workers you must build an additional Champion Hall.
Wait 10.00 seconds
Quest - Display to (All players) the Hint message: Elemental Energy can be obtained from loading a worker into a Spirit Well.
Wait 10.00 seconds
Quest - Display to (All players) the Hint message: If a Spirit Well is owned by another player, the nearby flag must be destroyed. (game tips can be found in the quest log)
Wait 10.00 seconds
Quest - Display to (All players) the Hint message: The game will end after you destroy your both of enemy's original Champions Halls.
Game hints in quest log
Quest Hints
Events
Map initialization
Conditions
Actions
Quest - Create a Optional quest titled Hint: Workers with the description Workers are automatically created by the Champion Hall buildings. They produce a max of 3 each. , using icon path ReplaceableTextures\CommandButtons\BTNGatherGold.blp
Quest - Create a Optional quest titled Hint: Elemental Power with the description Elemental power can be collected from Spirit Wells by 1 worker at a time. You must own a Spirit Well to mine from it. If a Spirit Well is owned by another player, kill the flag next to it to change ownership. , using icon path ReplaceableTextures\CommandButtons\BTNChestOfGold.blp
Quest - Create a Optional quest titled Hint: Mana with the description Normal units have no mana regain so they will have to be taken to a mana well in order to recover it. , using icon path ReplaceableTextures\CommandButtons\BTNSobiMask.blp
Quest - Create a Optional quest titled Hint: Creeps with the description Killing creeps can give you many things like experiance for your General and items; as well as, lumber and elemental power. , using icon path ReplaceableTextures\CommandButtons\BTNBansheeRanger.blp
Quest - Create a Optional quest titled Hint: Victory/Defeat with the description The game is over when you destroy both of your enemy's original Champions Hall. , using icon path ReplaceableTextures\WorldEditUI\Editor-Force.blp
Change ownership of well
Gain Control Well
Events
Unit - A unit Changes owner
Conditions
(Unit-type of (Triggering unit)) Equal to Spirit Well
Actions
Unit - Create 1 . Ownership Flag for (Triggering player) at ((Position of (Triggering unit)) offset by (200.00, 0)) facing Default building facing degrees
Replaces killed flag
Antiflagexploit
Events
Unit - A unit Dies
Conditions
((Unit-type of (Dying unit)) Equal to Ownership Flag) and ((Owner of (Dying unit)) Equal to (Owner of (Killing unit)))
Actions
Unit - Create 1 . Ownership Flag for (Owner of (Dying unit)) at (Center of (Region centered at (Position of (Dying unit)) with size (100.00, 100.00))) facing Default building facing degrees
Spirit ownership cleanup
Kill Changed Workers
Events
Unit - A unit Changes owner
Conditions
(Owner of (Triggering unit)) Not equal to (Previous owner)
((Triggering unit) is A peon-type unit) Equal to True
Actions
Unit - Remove (Triggering unit) from the game
Switch ownership of well
Switch Control Well 1
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((Well_1 <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0005 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Switch Control Well 2
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((Well_1_Copy <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0004 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Switch Control Well 3
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((Well_1_Copy_3 <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0001 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Switch Control Well 4
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((Well_1_Copy_2 <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0002 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Switch Control Well 5
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((Well_1_Copy_4 <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0000 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Switch Control Well 6
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((Well_1_Copy_6 <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0006 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Switch Control Well 7
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((Well_1_Copy_5 <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0007 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Redwell
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((redwell <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0264 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Yellwell
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((yellowwell <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0267 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
Browwell Copy
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((Brownwell <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0270 <gen> to (Owner of (Killing unit)) and Change color
Switch ownership of well
bluwell Copy
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to Ownership Flag) and ((bluewell <gen> contains (Triggering unit)) Equal to True)
Actions
Unit - Change ownership of Spirit Well 0273 <gen> to (Owner of (Killing unit)) and Change color
5 second duration
Thunder Storm
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Thunder Storm
Actions
Wait 5.00 seconds
Unit - Remove Thunder Storm buff from (Triggering unit)
Share control
Alliance 1
Events
Player - Player 1 (Red) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game.)
Player - Make Player 1 (Red) treat Player 5 (Yellow) as an Ally with shared vision and full shared units
Player - Make Player 5 (Yellow) treat Player 1 (Red) as an Ally with shared vision and full shared units
Share control
Alliance 1 Copy
Events
Player - Player 5 (Yellow) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game.)
Player - Make Player 5 (Yellow) treat Player 1 (Red) as an Ally with shared vision and full shared units
Player - Make Player 1 (Red) treat Player 5 (Yellow) as an Ally with shared vision and full shared units
Share control
Alliance 2
Events
Player - Player 2 (Blue) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game.)
Player - Make Player 2 (Blue) treat Player 12 (Brown) as an Ally with shared vision and full shared units
Player - Make Player 12 (Brown) treat Player 2 (Blue) as an Ally with shared vision and full shared units
Share control
Alliance 2 Copy
Events
Player - Player 12 (Brown) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game.)
Player - Make Player 12 (Brown) treat Player 2 (Blue) as an Ally with shared vision and full shared units
Player - Make Player 2 (Blue) treat Player 12 (Brown) as an Ally with shared vision and full shared units
Requires assistance..
Player 12 ai
Events
Map initialization
Conditions
(Player 12 (Brown) controller) Equal to Computer
Actions
AI - Start melee AI script for Player 12 (Brown) : war3mapImported\Nature_Ai.ai (Unexpected type: 'aiscript')
Player - For Player 2 (Blue) , turn Full shared units On toward Player 12 (Brown)
Player - For Player 12 (Brown) , turn Full shared units On toward Player 2 (Blue)
Game - Grant shared vision and full shared unit control of Player 12 (Brown) units with his/her allies
Unit - Create 3 . Mud Golem for Player 12 (Brown) at (Position of Nature Champion Hall 0020 <gen>) facing Default building facing degrees
Player - Set Player 12 (Brown) . Current gold to 250
Trigger - Turn on revive12 <gen>
Requires assistance..
Player 2 ai
Events
Time - Elapsed game time is 30.00 seconds
Conditions
(Player 2 (Blue) controller) Equal to Computer
Actions
AI - Start melee AI script for Player 2 (Blue) : war3mapImported\Water_Ai.ai (Unexpected type: 'aiscript')
Player - For Player 12 (Brown) , turn Full shared units On toward Player 2 (Blue)
Player - For Player 2 (Blue) , turn Full shared units On toward Player 12 (Brown)
Game - Grant shared vision and full shared unit control of Player 2 (Blue) units with his/her allies
Unit - Create 3 . Marsh Elemental for Player 2 (Blue) at (Position of Water Champion Hall 0014 <gen>) facing Default building facing degrees
Player - Set Player 2 (Blue) . Current gold to 250
Trigger - Turn on revive2 <gen>
Requires assistance..
Player 5 ai
Events
Time - Elapsed game time is 30.00 seconds
Conditions
(Player 5 (Yellow) controller) Equal to Computer
Actions
AI - Start melee AI script for Player 5 (Yellow) : war3mapImported\Thunder_Ai.ai (Unexpected type: 'aiscript')
Player - For Player 1 (Red) , turn Full shared units On toward Player 5 (Yellow)
Player - For Player 5 (Yellow) , turn Full shared units On toward Player 1 (Red)
Game - Grant shared vision and full shared unit control of Player 5 (Yellow) units with his/her allies
Unit - Create 3 . Static for Player 5 (Yellow) at (Position of Thunder Champion Hall 0016 <gen>) facing Default building facing degrees
Player - Set Player 5 (Yellow) . Current gold to 250
Trigger - Turn on revive5 <gen>
Requires assistance..
Player 1 ai
Events
Time - Elapsed game time is 30.00 seconds
Conditions
(Player 1 (Red) controller) Equal to Computer
Actions
AI - Start melee AI script for Player 1 (Red) : war3mapImported\Fire_Ai.ai (Unexpected type: 'aiscript')
Player - For Player 5 (Yellow) , turn Full shared units On toward Player 1 (Red)
Player - For Player 1 (Red) , turn Full shared units On toward Player 5 (Yellow)
Game - Grant shared vision and full shared unit control of Player 1 (Red) units with his/her allies
Unit - Create 3 . Cinder for Player 1 (Red) at (Position of Fire Champion Hall 0013 <gen>) facing Default building facing degrees
Player - Set Player 1 (Red) . Current gold to 250
Trigger - Turn on revive1 <gen>
revive12
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Mud Golem
Actions
Wait 5.00 seconds
Unit - Create 1 . Mud Golem for Player 12 (Brown) at (Position of Nature Champion Hall 0020 <gen>) facing Default building facing degrees
revive2
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Marsh Elemental
Actions
Wait 5.00 seconds
Unit - Create 1 . Marsh Elemental for Player 2 (Blue) at (Position of Water Champion Hall 0014 <gen>) facing Default building facing degrees
revive1
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Cinder
Actions
Wait 5.00 seconds
Unit - Create 1 . Cinder for Player 1 (Red) at (Position of Fire Champion Hall 0013 <gen>) facing Default building facing degrees
revive5
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Static
Actions
Wait 5.00 seconds
Unit - Create 1 . Cinder for Player 5 (Yellow) at (Position of Thunder Champion Hall 0016 <gen>) facing Default building facing degrees
Limits the General number to 1 per player
Hero Limiting
Events
Map initialization
Conditions
Actions
Player - Limit training of General to 1 for Player 1 (Red)
Player - Limit training of General to 1 for Player 2 (Blue)
Player - Limit training of General to 1 for Player 5 (Yellow)
Player - Limit training of General to 1 for Player 12 (Brown)
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.