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
Empire Battles.w3x
Variables
Initialization
Melee Initialization
asd
zoom
building
Races
Races Copy
Races Copy 2
Races Copy 3
Starting units
Starting units Copy
Starting units Copy 2
Starting units Copy 3
Starting units Copy 4
Remove unit
Remove unit Copy
Remove unit Copy 2
Remove unit Copy 3
Citisens
Pig
Plant tree
Plant tree
Road
Disease
Disease death
Disease disabled
Spreading
Spreading 2
Defeat
Defeat
Help
Help
Help 2
Slaves
Zombie
Slave
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
Road
unitcode
No
h003
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Run melee AI scripts (for computer players)
asd
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 500 to (Picked player) . Current gold
Player - Add 500 to (Picked player) . Current lumber
zoom
Events
Player - Player 1 (Red) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 2 (Blue) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 3 (Teal) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 4 (Purple) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 5 (Yellow) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 6 (Orange) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 7 (Green) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 8 (Pink) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 9 (Gray) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Player - Player 10 (Light Blue) types a chat message containing -zoom (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Camera - Set Player 1 (Red) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 2 (Blue) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 3 (Teal) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 4 (Purple) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 5 (Yellow) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 6 (Orange) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 7 (Green) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 8 (Pink) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 9 (Gray) 's camera Distance to target to 2500.00 over 0 seconds
Camera - Set Player 10 (Light Blue) 's camera Distance to target to 2500.00 over 0 seconds
building
Events
Unit - A unit Begins construction
Conditions
And - All (Conditions) are true
Conditions
Actions
Races
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Race of (Picked player)) Equal to Human
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Town Hall
Then - Actions
Unit - Replace (Picked unit) with a Human using The old unit's relative life and mana
Else - Actions
Do nothing
Else - Actions
Do nothing
Races Copy
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Race of (Picked player)) Equal to Orc
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Great Hall
Then - Actions
Unit - Replace (Picked unit) with a Orc using The old unit's relative life and mana
Else - Actions
Do nothing
Else - Actions
Do nothing
Races Copy 2
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Race of (Picked player)) Equal to Undead
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Necropolis
Then - Actions
Unit - Replace (Picked unit) with a Undead using The old unit's relative life and mana
Else - Actions
Do nothing
Else - Actions
Do nothing
Races Copy 3
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Race of (Picked player)) Equal to Night Elf
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Tree of Life
Then - Actions
Unit - Replace (Picked unit) with a Night Elf using The old unit's relative life and mana
Else - Actions
Do nothing
Else - Actions
Do nothing
Starting units
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Peasant
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Do nothing
Starting units Copy
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Peon
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Do nothing
Starting units Copy 2
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Acolyte
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Do nothing
Starting units Copy 3
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Wisp
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Do nothing
Starting units Copy 4
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Ghoul
Then - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Do nothing
Remove unit
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (If ((Count structures controlled by (Picked player) (Exclude incomplete structures)) Greater than or equal to 1) then do (Pick every unit in (Units owned by (Picked player) of type Human) and do (Remove (Picked unit) from the game)) else do (Do nothing))
Remove unit Copy
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (If ((Count structures controlled by (Picked player) (Exclude incomplete structures)) Greater than or equal to 1) then do (Pick every unit in (Units owned by (Picked player) of type Orc) and do (Remove (Picked unit) from the game)) else do (Do nothing))
Remove unit Copy 2
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (If ((Count structures controlled by (Picked player) (Exclude incomplete structures)) Greater than or equal to 1) then do (Pick every unit in (Units owned by (Picked player) of type Undead) and do (Remove (Picked unit) from the game)) else do (Do nothing))
Remove unit Copy 3
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (If ((Count structures controlled by (Picked player) (Exclude incomplete structures)) Greater than or equal to 1) then do (Pick every unit in (Units owned by (Picked player) of type Night Elf) and do (Remove (Picked unit) from the game)) else do (Do nothing))
Citisens
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Farm) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) Food cap) Less than 250
Then - Actions
Unit - Order (Picked unit) to train/upgrade to a Citizen
Else - Actions
Do nothing
Pig
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Pig Farm) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) Food cap) Less than 250
Then - Actions
Unit - Order (Picked unit) to train/upgrade to a Pig
Else - Actions
Do nothing
Plant tree
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Plant tree
Actions
Destructible - Create a LTlt (Unexpected type: 'destructablecode') at (Position of (Constructed structure)) facing (Random angle) with scale 1 and variation 0
Unit - Remove (Constructed structure) from the game
Road
Events
Time - Every 1.20 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Slow) Equal to True
Then - Actions
Unit - Remove Slow buff from (Picked unit)
Else - Actions
Do nothing
Disease death
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A ground unit) Equal to True
(Life of (Picked unit)) Less than or equal to 2.00
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Do nothing
Disease disabled
Events
Unit - A unit Begins casting an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Casting unit)) Equal to Priest
(Unit-type of (Casting unit)) Equal to Hospital
(Unit-type of (Casting unit)) Equal to Barracks
(Unit-type of (Casting unit)) Equal to Moon Well
(Unit-type of (Casting unit)) Equal to Necropolis
(Unit-type of (Casting unit)) Equal to Necropolis
(Unit-type of (Casting unit)) Equal to Halls of the Dead
(Unit-type of (Casting unit)) Equal to Black Citadel
Actions
Unit - Remove Disease buff from (Target unit of ability being cast)
Unit - Remove Spreading disease buff from (Target unit of ability being cast)
Unit - Remove Plague from (Target unit of ability being cast)
Spreading
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Biological Weapon Rifleman
Actions
Unit - Add Plague to (Attacked unit)
Spreading 2
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Disease) Equal to True
Then - Actions
Unit - Add Plague to (Picked unit)
Else - Actions
Do nothing
Defeat
Events
Time - Elapsed game time is 360.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If ((Count structures controlled by (Picked player) (Exclude incomplete structures)) Equal to 0) then do (Defeat (Picked player) with the message: Defeat!) else do (Do nothing)
Help
Events
Map initialization
Conditions
Actions
Quest - Create a Required quest titled Help with the description How to play:Choose place to build base.You can plant trees with secondary workers. Humans need to use lumberjacks.You can also build roads to make units to move faster. , using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
Help 2
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: Press F9 For Help.
Zombie
Events
Unit - A unit Dies
Conditions
(Unit-type of (Killing unit)) Equal to Infector
Actions
Unit - Create 1 Zombie for (Owner of (Killing unit)) at (Position of (Dying unit)) facing (Position of (Killing unit))
Unit - Hide (Dying unit)
Slave
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
((Unit-type of (Attacked unit)) Equal to Pig) or ((Unit-type of (Attacked unit)) Equal to Citizen)
((Owner of (Attacking unit)) Food cap) Less than 250
Actions
Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change color
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.