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
Archers v1.01.w3x
Variables
Initialization
---------------------------
Solo
Bounty set
Gold per Second
Paste These triggers into your map
ColourStrings
SetKills
SetDeaths
MultiboardCreation
MultiboardRefresh
junk
Dies
Archer 1 Dies Copy
Archer 1 Dies Copy 2
Archer 1 Dies Copy 3
Archer 1 Dies Copy 4
Archer 1 Dies Copy 5
---------------------------
Archer 2 Dies
Archer 2 Dies Copy 2
Archer 2 Dies Copy 3
Archer 2 Dies Copy 4
Archer 2 Dies Copy 5
AI
Ordering
Music
Music
Music 1
Spawning
Creep Spawn
Creep Spawn Level 2
Creep Spawn Level 3
Creep Spawn Level 4
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
CreepKills
integer
Yes
HeroDeaths
integer
Yes
HeroKills
integer
Yes
StringPlayerColourCodes
string
Yes
TempInteger
integer
No
TempPoint
location
No
Solo
Events
Player - Player 1 (Red) types a chat message containing AI (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Trigger - Turn on Ordering <gen>
Bounty set
Events
Map initialization
Conditions
Actions
Player - Turn Gives bounty On for Player 1 (Red)
Player - Turn Gives bounty On for Player 2 (Blue)
Player - Turn Gives bounty On for Player 3 (Teal)
Player - Turn Gives bounty On for Player 4 (Purple)
Player - Turn Gives bounty On for Player 5 (Yellow)
Player - Turn Gives bounty On for Player 6 (Orange)
Player - Turn Gives bounty On for Player 7 (Green)
Player - Turn Gives bounty On for Player 8 (Pink)
Player - Turn Gives bounty On for Player 9 (Gray)
Player - Turn Gives bounty On for Player 10 (Light Blue)
Gold per Second
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Player - Add 5 to Player 1 (Red) . Current gold
Player - Add 5 to Player 2 (Blue) . Current gold
Player - Add 5 to Player 3 (Teal) . Current gold
Player - Add 5 to Player 4 (Purple) . Current gold
Player - Add 5 to Player 5 (Yellow) . Current gold
Player - Add 5 to Player 6 (Orange) . Current gold
Player - Add 5 to Player 7 (Green) . Current gold
Player - Add 5 to Player 8 (Pink) . Current gold
Player - Add 5 to Player 9 (Gray) . Current gold
Player - Add 5 to Player 10 (Light Blue) . Current gold
ColourStrings
Events
Map initialization
Conditions
Actions
Set Variable Set StringPlayerColourCodes[1] = "|cffff0000"
Set Variable Set StringPlayerColourCodes[2] = "|cff0000ff"
Set Variable Set StringPlayerColourCodes[3] = "|cff00ffff"
Set Variable Set StringPlayerColourCodes[4] = "|cff550088"
Set Variable Set StringPlayerColourCodes[5] = "|cffffff00"
Set Variable Set StringPlayerColourCodes[6] = "|cffff8800"
Set Variable Set StringPlayerColourCodes[7] = "|cff00ff00"
Set Variable Set StringPlayerColourCodes[8] = "|cffee55bb"
Set Variable Set StringPlayerColourCodes[9] = "|cff999999"
Set Variable Set StringPlayerColourCodes[10] = "|cff77bbff"
SetKills
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Dying unit) is A Hero) Equal to True
Then - Actions
Set Variable Set HeroKills[(Player number of (Owner of (Killing unit)))] = (HeroKills[(Player number of (Owner of (Killing unit)))] + 1)
Else - Actions
Set Variable Set CreepKills[(Player number of (Owner of (Killing unit)))] = (CreepKills[(Player number of (Owner of (Killing unit)))] + 1)
SetDeaths
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Dying unit) is A Hero) Equal to True
Then - Actions
Set Variable Set HeroDeaths[(Player number of (Owner of (Dying unit)))] = (HeroDeaths[(Player number of (Owner of (Dying unit)))] + 1)
Else - Actions
MultiboardCreation
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
-------- Creates the Multiboard. the TempInteger contains the number of the players playing. The Table will have ((number of player) +1) rows --------
Set Variable Set TempInteger = (Number of players in (All players))
Multiboard - Create a multiboard with 4 columns and (TempInteger + 1) rows, titled Statistics .
-------- This removes the icons that ussally apear on each cell and sets the default size to 8% --------
For each (Integer A) from 1 to 5 , do (Actions)
Loop - Actions
For each (Integer B) from 1 to (TempInteger + 1) , do (Actions)
Loop - Actions
Multiboard - Set the display style for (Last created multiboard) item in column (Integer A) , row (Integer B) to Show text and Hide icons
Multiboard - Set the width for (Last created multiboard) item in column (Integer A) , row (Integer B) to 8.00 % of the total screen width
-------- This thing sets the first collum to this: 1."Player:" 2. -Name of Player 1- , 3 -Name ofPlayer 2- ..... The colour code colours the name in its owner's colour --------
For each (Integer A) from 1 to (TempInteger + 1) , do (Actions)
Loop - Actions
Multiboard - Set the width for (Last created multiboard) item in column 1 , row (Integer A) to 8.00 % of the total screen width
If ((Integer A) Equal to 1) then do (Set the text for (Last created multiboard) item in column 1, row 1 to Player :) else do (Set the text for (Last created multiboard) item in column 1, row (Integer A) to (StringPlayerColourCodes[((Integer A) - 1)] + (Name of (Player(((Integer A) - 1))))))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 1 to Player :
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 1 to Hero Kills :
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 1 to Creep Kills :
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 1 to Deaths :
Multiboard - Minimize (Last created multiboard)
Multiboard - Maximize (Last created multiboard)
MultiboardRefresh
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Variable Set TempInteger = (Number of players in (All players))
For each (Integer B) from 2 to (TempInteger + 1) , do (Actions)
Loop - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2 , row (Integer B) to (String(HeroKills[((Integer B) - 1)]))
For each (Integer B) from 2 to (TempInteger + 1) , do (Actions)
Loop - Actions
Multiboard - Set the text for (Last created multiboard) item in column 3 , row (Integer B) to (String(CreepKills[((Integer B) - 1)]))
For each (Integer B) from 2 to (TempInteger + 1) , do (Actions)
Loop - Actions
Multiboard - Set the text for (Last created multiboard) item in column 4 , row (Integer B) to (String(HeroDeaths[HeroDeaths[((Integer B) - 1)]]))
junk
Events
Conditions
Actions
-------- This sets the size of the first row --------
For each (Integer A) from 1 to 5 , do (Actions)
Loop - Actions
Multiboard - Set the width for (Last created multiboard) item in column (Integer A) , row 1 to 3.00 % of the total screen width
Archer 1 Dies Copy
Events
Unit - Archer 0074 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0074 <gen> at (Center of Region_001 <gen>) , Show revival graphics
Archer 1 Dies Copy 2
Events
Unit - Archer 0001 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0001 <gen> at (Center of Region_001 <gen>) , Show revival graphics
Archer 1 Dies Copy 3
Events
Unit - Archer 0073 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0073 <gen> at (Center of Region_001 <gen>) , Show revival graphics
Archer 1 Dies Copy 4
Events
Unit - Archer 0076 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0076 <gen> at (Center of Region_001 <gen>) , Show revival graphics
Archer 1 Dies Copy 5
Events
Unit - Archer 0077 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0077 <gen> at (Center of Region_001 <gen>) , Show revival graphics
Archer 2 Dies
Events
Unit - Archer 0070 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0070 <gen> at (Center of Region_001_Copy <gen>) , Show revival graphics
Archer 2 Dies Copy 2
Events
Unit - Archer 0000 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0000 <gen> at (Center of Region_001_Copy <gen>) , Show revival graphics
Archer 2 Dies Copy 3
Events
Unit - Archer 0068 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0068 <gen> at (Center of Region_001_Copy <gen>) , Show revival graphics
Archer 2 Dies Copy 4
Events
Unit - Archer 0069 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0069 <gen> at (Center of Region_001_Copy <gen>) , Show revival graphics
Archer 2 Dies Copy 5
Events
Unit - Archer 0071 <gen> Dies
Conditions
Actions
Wait 10.00 seconds
Hero - Instantly revive Archer 0071 <gen> at (Center of Region_001_Copy <gen>) , Show revival graphics
Ordering
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit - Order Archer 0068 <gen> to Attack . Archer 0001 <gen>
Music
Events
Player - Player 1 (Red) types a chat message containing -Music (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Sound - Play PH1 <gen>
Music 1
Events
Player - Player 2 (Blue) types a chat message containing -Music (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Sound - Play PH1 <gen>
Creep Spawn
Events
Time - Every 15.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Troll for Neutral Hostile at (Random point in Region_003 <gen>) facing Default building facing degrees
Creep Spawn Level 2
Events
Time - Every 45.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Strong Troll for Neutral Hostile at (Random point in Region_003 <gen>) facing Default building facing degrees
Creep Spawn Level 3
Events
Time - Every 90.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Troll Berserker for Neutral Hostile at (Random point in Region_003 <gen>) facing Default building facing degrees
Creep Spawn Level 4
Events
Time - Every 180.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Green Drake for Neutral Hostile at (Random point in Region_003 <gen>) facing Default building facing degrees
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.