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
THE GREAT STUN !.w3x
Variables
Initialization
Melee Initialization
Multiboard
Create Multiboard
Player Kills Update
Player Deaths Update
Player hp update
Player Attacked
Player leaves
Define Colors
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
Death_Count
integer
Yes
Kill_Count
integer
Yes
List
integer
No
Multiboard_Spots
integer
Yes
Player_Colors
string
Yes
Player_Count
integer
No
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Hero - Set Mountain King 0016 <gen> Hero-level to 2 , Hide level-up graphics
Hero - Set Mountain King 0017 <gen> Hero-level to 2 , Hide level-up graphics
Hero - Set Mountain King 0018 <gen> Hero-level to 2 , Hide level-up graphics
Hero - Set Mountain King 0019 <gen> Hero-level to 2 , Hide level-up graphics
Hero - Set Mountain King 0022 <gen> Hero-level to 2 , Hide level-up graphics
Hero - Set Mountain King 0021 <gen> Hero-level to 2 , Hide level-up graphics
Hero - Set Mountain King 0023 <gen> Hero-level to 2 , Hide level-up graphics
Hero - Set Mountain King 0020 <gen> Hero-level to 2 , Hide level-up graphics
Create Multiboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set Variable Set Player_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)).))
Multiboard - Create a multiboard with 3 columns and (1 + Player_Count) rows, titled Tutorial Multiboard .
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 1 to Player Name
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 1 to Kills
For each (Integer A) from 1 to (1 + Player_Count) , do (Actions)
Loop - Actions
Multiboard - Set the display style for (Last created multiboard) item in column 1 , row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1 , row (Integer A) to Show text and Show icons
Multiboard - Set the display style for (Last created multiboard) item in column 2 , row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 3 , row (Integer A) to Show text and Hide icons
Multiboard - Set the width for (Last created multiboard) item in column 1 , row (Integer A) to 2.00 % of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2 , row (Integer A) to 8.00 % of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3 , row (Integer A) to 2.00 % of the total screen width
Set Variable Set List = "2"
Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User)).) and do (Actions)
Loop - Actions
Set Variable Set Multiboard_Spots[(Player number of (Picked player))] = List
Multiboard - Set the icon for (Last created multiboard) item in column 1 , row List to ReplaceableTextures\CommandButtons\BTNVillagerMan.blp
Multiboard - Set the text for (Last created multiboard) item in column 2 , row List to (Player_Colors[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row List to 0
Set Variable Set List = (List + 1)
Multiboard - Show (Last created multiboard)
Player Kills Update
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) controller) Equal to User
Actions
Set Variable Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
Player Deaths Update
Events
Unit - A unit Dies
Conditions
(((Triggering unit) is A Hero) Equal to True) and (((Owner of (Dying unit)) controller) Equal to User)
Actions
Set Variable Set Death_Count[(Player number of (Owner of (Dying unit)))] = (Death_Count[(Player number of (Owner of (Dying unit)))] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row Multiboard_Spots[(Player number of (Owner of (Dying unit)))] to (String(Death_Count[(Player number of (Owner of (Dying unit)))]))
Player hp update
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If ((((Owner of (Picked unit)) controller) Equal to User) and (((Unit-type of (Picked unit)) is A Hero) Equal to True)) then do (Set the text for (Last created multiboard) item in column 4, row Multiboard_Spots[(Player number of (Owner of (Picked unit)))] to ((String((Integer((Percentage life of (Picked unit)))))) + %)) else do (Do nothing)
Player Attacked
Events
Unit - A unit Is attacked
Conditions
(((Attacked unit) is A Hero) Equal to True) and (((Owner of (Attacked unit)) controller) Equal to User)
Actions
Multiboard - Set the text for (Last created multiboard) item in column 3 , row Multiboard_Spots[(Player number of (Owner of (Attacked unit)))] to ((String((Integer((Percentage life of (Attacked unit)))))) + %)
Player leaves
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
Conditions
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
Loop - Actions
Game - Display to (All players) the text: (|cffFFFF00 + ((Name of (Triggering player)) + |r has left the game.))
Unit - Remove (Picked unit) from the game
Multiboard - Set the text for (Last created multiboard) item in column 0 , row Multiboard_Spots[(Player number of (Triggering player))] to Gone
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.