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
Kerrigan-KoTH.w3x
Variables
Initialization
Initialization
Explain
Leaderboard
Create
King
GoodToBeKing
KillTheKing
CrownTheKing
LoseTheCrown
KillingBlow
Players
Victory
KickSomeAss
StartLocation
Repick
Marketplace
EnterMarketplace
LeaveMarketplace
Name
Type
is_array
initial_value
List
integer
No
Monsters
unit
Yes
Multiboard_Spots
integer
Yes
OwnedItem
item
No
ItemNull
Player_Count
integer
No
Points
integer
No
0
Timer
timer
No
Default game initialization for all players
Initialization
Events
Map initialization
Conditions
Actions
Set Variable Set Player_Count = (Number of players in (All players controlled by a User player))
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Player - Set (Picked player) . Current gold to 200
Player - Set (Picked player) . Food cap to 5
Player - Turn Gives bounty On for (Picked player)
Camera - . Apply . gg_cam_Camera_001 for (Picked player) over 0.00 seconds
Explain
Events
Time - Elapsed game time is 3.00 seconds
Player - Player 1 (Red) types a chat message containing -explain (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -explain (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -explain (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -explain (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Game - Display to (All players) for 5.00 seconds the text: Welcome to Kerrigan's King of the Hill Arena!
Wait 10.00 game-time seconds
Game - Display to (All players) for 5.00 seconds the text: Each of the players must hold the Crown for 30 seconds in order to gain 1 point. The first player to get 5 points wins the match.
Wait 10.00 game-time seconds
Game - Display to (All players) for 5.00 seconds the text: Leaving the top of the tower will force your Hero to drop the Crown, so don't forget!
Wait 10.00 game-time seconds
Game - Display to (All players) for 5.00 seconds the text: In order to better take the Crown, upgrade your hero at the Armory and Item Shops as you kill other contenders and the King to get funds!
Wait 10.00 game-time seconds
Game - Display to (All players) for 5.00 seconds the text: Type -repick to choose a different Hero, but remember that your character loses everything and starts leveling over from scratch.
Wait 10.00 game-time seconds
Game - Display to (All players) for 5.00 seconds the text: Email me at [email protected] with bugs... and if you can fix them, send me what you fixed! Thanks!
Wait 10.00 game-time seconds
Game - Display to (All players) for 9.00 seconds the text: To display this message again, type -explain.
Create
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players controlled by a User player) titled Kerrigan's King of the Hill v. 1.0
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value ((Picked player) Current lumber)
Leaderboard - Show (Last created leaderboard)
GoodToBeKing
Events
Time - Timer expires
Conditions
Actions
Player - Add 1 to (Owner of gg_item_I000_0000) . Current lumber
Player - Add 200 to (Owner of gg_item_I000_0000) . Current gold
Game - Display to (All players) the text: ((Name of (Owner of gg_item_I000_0000)) + ( earns a point! They only need + ((String((5 - ((Owner of gg_item_I000_0000) Current lumber)))) + more to win the map!)))
Leaderboard - Change the value for (Owner of gg_item_I000_0000) in (Last created leaderboard) to ((Owner of gg_item_I000_0000) Current lumber)
KillTheKing
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(KingRegion <gen> contains (Killing unit)) Equal to True
((Dying unit) has an item of type Crown of the King) Equal to True
Then - Actions
Hero - Give (Item carried by (Dying unit) of type Crown of the King) to (Killing unit)
Item - Change ownership of gg_item_I000_0000 to (Owner of (Hero manipulating item)) and Change color
Leaderboard - Change the label for (Owner of (Killing unit)) in (Last created leaderboard) to ((Name of (Owner of (Triggering unit))) + - King)
Game - Display to (All players matching ((Owner of (Killing unit)) Equal to (Matching player)).) the text: You're the King, baby! Defend your crown!
Game - Display to (All players controlled by a User player) the text: ((Name of (Owner of (Dying unit))) + ('s Crown was taken by + (Name of (Owner of (Killing unit)))))
Else - Actions
Do nothing
CrownTheKing
Events
Unit - A unit Acquires an item
Conditions
And - All (Conditions) are true
Conditions
((Triggering unit) has (Item carried by (Triggering unit) of type Crown of the King)) Equal to True
(KingRegion <gen> contains (Triggering unit)) Equal to True
((Triggering unit) is A Hero) Equal to True
Actions
Leaderboard - Change the label for (Owner of gg_item_I000_0000) in (Last created leaderboard) to ((Name of (Owner of gg_item_I000_0000)) + - King)
Item - Change ownership of gg_item_I000_0000 to (Owner of (Hero manipulating item)) and Change color
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of (Triggering unit) using Abilities\Spells\Undead\RegenerationAura\ObsidianRegenAura.mdl
Game - Display to (All players) for 5.00 seconds the text: ((Name of (Triggering player)) + is the King!)
Countdown Timer - Start Timer as a Repeating timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Triggering player))
Countdown Timer - Show (Last created timer window)
LoseTheCrown
Events
Unit - A unit leaves KingRegion <gen>
Conditions
((Triggering unit) has an item of type Crown of the King) Equal to True
Actions
Hero - Drop (Item carried by (Triggering unit) of type Crown of the King) from (Triggering unit) .
Item - Move (Last dropped item) to (Center of KingRegion <gen>)
Item - Change ownership of gg_item_I000_0000 to Neutral Passive and Change color
Countdown Timer - Destroy (Last created timer window)
Special Effect - Destroy (Last created special effect)
Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the text: You lost the Crown, fool! Go get it back!
KillingBlow
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Hero - Instantly revive (Dying unit) at ((Owner of (Dying unit)) start location) , Show revival graphics
Game - Display to (All players matching ((Owner of (Dying unit)) Equal to (Matching player)).) the text: I didn't hear no bell! Get back in the ring!
Countdown Timer - Destroy (Last created timer window)
Victory
Events
Time - Timer expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of gg_item_I000_0000) Lumber Harvested) Equal to 5
(gg_item_I000_0000 is owned) Equal to True
Then - Actions
Game - Victory (Owner of gg_item_I000_0000) ( Show dialogs, Show scores)
Else - Actions
KickSomeAss
Events
Unit - A unit enters KingRegion <gen>
Conditions
(Number of living Sea Witch units owned by Neutral Hostile) Equal to 0
(gg_item_I000_0000 is owned) Equal to False
Actions
Unit - Create 1 . Sea Witch for Neutral Hostile at (Center of KingRegion <gen>) facing Default building facing degrees
Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player)).) the text: By the way, I protected the Crown. What, thought I'd make it easy on you?
StartLocation
Events
Unit - A unit Sells a unit
Conditions
Actions
Player Group - Pick every player in (All players) and do (Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player))
Player - Set (Owner of (Sold unit)) . Food cap to 0
Unit - Move (Sold unit) instantly to ((Owner of (Sold unit)) start location) , facing Default building facing degrees
Camera - Pan camera for (Owner of (Sold unit)) to ((Owner of (Sold unit)) start location) over 0 seconds
Repick
Events
Player - Player 1 (Red) types a chat message containing -repick (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -repick (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -repick (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -repick (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True).) and do (Actions)
Loop - Actions
Player Group - Pick every player in (All players) and do (Make (Unit-type of (Sold unit)) Available for training/construction by (Picked player))
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.