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
random unit wars.w3x
Variables
Initialization
Melee Initialization
new stuff
tmr
death of sheep
notification
sheep trigger
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
integers
integer
Yes
players_Copy
force
No
pnt
location
No
tmr
timer
No
units
unitcode
Yes
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
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)
Set Variable Set integers[1] = "6"
Set Variable Set units[0] = "hpea"
Set Variable Set units[1] = "hfoo"
Set Variable Set units[2] = "hkni"
Set Variable Set units[3] = "hrif"
Set Variable Set units[4] = "hmtm"
Set Variable Set units[5] = "hgyr"
Set Variable Set units[6] = "hgry"
Set Variable Set units[7] = "hmpr"
Set Variable Set units[8] = "hsor"
Set Variable Set units[9] = "hmtt"
Set Variable Set units[10] = "hspt"
Set Variable Set units[11] = "hdhw"
Set Variable Set units[12] = "uban"
Set Variable Set units[13] = "unec"
Set Variable Set units[14] = "opeo"
Set Variable Set units[15] = "ogru"
Set Variable Set units[16] = "orai"
Set Variable Set units[17] = "otau"
Set Variable Set units[18] = "ohun"
Set Variable Set units[19] = "ocat"
Set Variable Set units[20] = "okod"
Set Variable Set units[21] = "owyv"
Set Variable Set units[22] = "otbr"
Set Variable Set units[23] = "odoc"
Set Variable Set units[24] = "oshm"
Set Variable Set units[25] = "ospw"
Set Variable Set units[26] = "uobs"
Set Variable Set units[27] = "ufro"
Set Variable Set units[28] = "uaco"
Set Variable Set units[29] = "opeo"
Set Variable Set units[30] = "hpea"
Set Variable Set units[31] = "uaco"
Set Variable Set units[32] = "ushd"
Set Variable Set units[33] = "ugho"
Set Variable Set units[34] = "uabo"
Set Variable Set units[35] = "umtw"
Set Variable Set units[36] = "ucry"
Set Variable Set units[37] = "ugar"
Set Variable Set units[38] = "hrtt"
Set Variable Set units[39] = "otbk"
Set Variable Set units[40] = "ubsp"
Set Variable Set units[41] = "ewsp"
Set Variable Set units[42] = "ewsp"
Set Variable Set units[43] = "esen"
Set Variable Set units[44] = "edry"
Set Variable Set units[45] = "ebal"
Set Variable Set units[46] = "ehip"
Set Variable Set units[47] = "ehpr"
Set Variable Set units[48] = "echm"
Set Variable Set units[49] = "edot"
Set Variable Set units[50] = "edoc"
Set Variable Set units[51] = "emtg"
Set Variable Set units[52] = "efdr"
Set Variable Set units[53] = "ewsp"
Set Variable Set units[54] = "uaco"
Set Variable Set units[55] = "opeo"
Set Variable Set units[56] = "hpea"
Set Variable Set units[57] = "earc"
Set Variable Set units[58] = "nshe"
new stuff
Events
Time - tmr expires
Conditions
Actions
Set Variable Set integers[0] = (Random integer number between 0 and 500)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add integers[0] to (Picked player) . Current gold
Player - Add integers[0] to (Picked player) . Current lumber
Unit Group - Pick every unit in (Units owned by (Picked player) of type Sheep) and do (Actions)
Loop - Actions
Set Variable Set pnt = (Position of (Picked unit))
Unit - Create 1 . units[(Random integer number between 0 and 57)] for (Picked player) at (Position of (Picked unit)) facing Default building facing degrees
WESTRING_TRIGCAT_LOCATION - Missing string for 'RemoveLocation'
tmr
Events
Time - Elapsed game time is 5 seconds
Conditions
Actions
Countdown Timer - Start tmr as a Repeating timer that will expire in 20.00 seconds
death of sheep
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to units[58]
Actions
Set Variable Set integers[1] = (integers[1] - 1)
Game - Defeat (Owner of (Triggering unit)) with the message: Defeat!
Unit - Remove (Triggering unit) from the game
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
integers[1] Equal to 0
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Game - Victory (Owner of (Killing unit)) ( Show dialogs, Show scores)
Else - Actions
notification
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game.)
sheep trigger
Events
Unit - Sheep 0099 <gen> Is attacked
Unit - Sheep 0098 <gen> Is attacked
Unit - Sheep 0100 <gen> Is attacked
Unit - Sheep 0097 <gen> Is attacked
Unit - Sheep 0094 <gen> Is attacked
Unit - Sheep 0095 <gen> Is attacked
Unit - Sheep 0096 <gen> Is attacked
Conditions
((Owner of (Triggering unit)) slot status) Not equal to Is playing
Actions
Unit - Remove (Triggering unit) from the game
Set Variable Set integers[1] = (integers[1] - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
integers[1] Equal to 0
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Game - Victory (Owner of (Attacking unit)) ( Show dialogs, Show scores)
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.