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
ZombieLakev0.1.w3x
Variables
Player Leaderboard
Set Up Leaderboard
Update Leaderboard
Change Value
Nemesis Leaderboard
Set Up Leaderboard Copy
Update Leaderboard Copy
Change Value Copy
Initialisation
AntiFReeSlot
Gold Reward
Zombie
Vulture
Rules and Values
NOP
Zombie Master Death
defeat red
defeat blue
defeat teal
defeat purple
defeat yellow
defeat orange
defeat green
defeat dark green
Zombie victory
Class Select
Dialog Clicked
ClassSelectArray
Create Dialog
Custom Items
Inn Key
Name
Type
is_array
initial_value
ClassDialogButtons
button
Yes
Classes
unitcode
Yes
ClassSelect
dialog
No
Gold
integer
Yes
GoldBoard
leaderboard
No
innkey
itemcode
No
I000
kills
integer
Yes
TheLeaderBoard
leaderboard
No
Set Up Leaderboard
Events
Time - Elapsed game time is 5 seconds
Conditions
Actions
For each (Integer A) from 1 to 14 , do (Set VariableSet kills[(Integer A)] = "0")
Wait 1.00 seconds
Leaderboard - Create a leaderboard for (All players) titled Kills
Set Variable Set TheLeaderBoard = (Last created leaderboard)
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Add Player 1 (Red) to (Last created leaderboard) with label (Name of Player 1 (Red)) and value 0) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Add Player 2 (Blue) to (Last created leaderboard) with label (Name of Player 2 (Blue)) and value 0) else do (Do nothing)
If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Add Player 3 (Teal) to (Last created leaderboard) with label (Name of Player 3 (Teal)) and value 0) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Add Player 4 (Purple) to (Last created leaderboard) with label (Name of Player 4 (Purple)) and value 0) else do (Do nothing)
If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Add Player 5 (Yellow) to (Last created leaderboard) with label (Name of Player 5 (Yellow)) and value 0) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Add Player 6 (Orange) to (Last created leaderboard) with label (Name of Player 6 (Orange)) and value 0) else do (Do nothing)
If ((Player 7 (Green) slot status) Equal to Is playing) then do (Add Player 7 (Green) to (Last created leaderboard) with label (Name of Player 7 (Green)) and value 0) else do (Do nothing)
If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Add Player 8 (Pink) to (Last created leaderboard) with label (Name of Player 8 (Pink)) and value 0) else do (Do nothing)
If ((Player 9 (Gray) slot status) Equal to Is playing) then do (Add Player 9 (Gray) to (Last created leaderboard) with label (Name of Player 9 (Gray)) and value 0) else do (Do nothing)
If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Add Player 10 (Light Blue) to (Last created leaderboard) with label (Name of Player 10 (Light Blue)) and value 0) else do (Do nothing)
If ((Player 11 (Dark Green) slot status) Equal to Is playing) then do (Add Player 11 (Dark Green) to (Last created leaderboard) with label (Name of Player 11 (Dark Green)) and value 0) else do (Do nothing)
Trigger - Turn on Update_Leaderboard <gen>
Leaderboard - Show TheLeaderBoard
Update Leaderboard
Events
Conditions
Actions
Leaderboard - Change the value for Player 1 (Red) in TheLeaderBoard to kills[1]
Leaderboard - Change the value for Player 2 (Blue) in TheLeaderBoard to kills[2]
Leaderboard - Change the value for Player 3 (Teal) in TheLeaderBoard to kills[3]
Leaderboard - Change the value for Player 4 (Purple) in TheLeaderBoard to kills[4]
Leaderboard - Change the value for Player 5 (Yellow) in TheLeaderBoard to kills[5]
Leaderboard - Change the value for Player 6 (Orange) in TheLeaderBoard to kills[6]
Leaderboard - Change the value for Player 7 (Green) in TheLeaderBoard to kills[7]
Leaderboard - Change the value for Player 8 (Pink) in TheLeaderBoard to kills[8]
Leaderboard - Change the value for Player 9 (Gray) in TheLeaderBoard to kills[9]
Leaderboard - Change the value for Player 10 (Light Blue) in TheLeaderBoard to kills[10]
Leaderboard - Change the value for Player 11 (Dark Green) in TheLeaderBoard to kills[11]
Change Value
Events
Unit - A unit owned by Player 12 (Brown) . Dies
Conditions
((Owner of (Killing unit)) is in (All players).) Equal to True
Actions
Set Variable Set kills[(Player number of (Owner of (Killing unit)))] = (kills[(Player number of (Owner of (Killing unit)))] + 1)
Trigger - Run Update_Leaderboard <gen> (ignoring conditions)
Set Up Leaderboard Copy
Events
Time - Elapsed game time is 10.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 14 , do (Set VariableSet Gold[(Integer A)] = "0")
Wait 1.00 seconds
Leaderboard - Create a leaderboard for Player Group - Player 12 (Brown) titled Gold
Set Variable Set GoldBoard = (Last created leaderboard)
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Add Player 1 (Red) to (Last created leaderboard) with label (Name of Player 1 (Red)) and value 0) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Add Player 2 (Blue) to (Last created leaderboard) with label (Name of Player 2 (Blue)) and value 0) else do (Do nothing)
If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Add Player 3 (Teal) to (Last created leaderboard) with label (Name of Player 3 (Teal)) and value 0) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Add Player 4 (Purple) to (Last created leaderboard) with label (Name of Player 4 (Purple)) and value 0) else do (Do nothing)
If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Add Player 5 (Yellow) to (Last created leaderboard) with label (Name of Player 5 (Yellow)) and value 0) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Add Player 6 (Orange) to (Last created leaderboard) with label (Name of Player 6 (Orange)) and value 0) else do (Do nothing)
If ((Player 7 (Green) slot status) Equal to Is playing) then do (Add Player 7 (Green) to (Last created leaderboard) with label (Name of Player 7 (Green)) and value 0) else do (Do nothing)
If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Add Player 8 (Pink) to (Last created leaderboard) with label (Name of Player 8 (Pink)) and value 0) else do (Do nothing)
If ((Player 9 (Gray) slot status) Equal to Is playing) then do (Add Player 9 (Gray) to (Last created leaderboard) with label (Name of Player 9 (Gray)) and value 0) else do (Do nothing)
If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Add Player 10 (Light Blue) to (Last created leaderboard) with label (Name of Player 10 (Light Blue)) and value 0) else do (Do nothing)
If ((Player 11 (Dark Green) slot status) Equal to Is playing) then do (Add Player 11 (Dark Green) to (Last created leaderboard) with label (Name of Player 11 (Dark Green)) and value 0) else do (Do nothing)
Trigger - Turn on Update_Leaderboard_Copy <gen>
Leaderboard - Show GoldBoard
Update Leaderboard Copy
Events
Conditions
Actions
Leaderboard - Change the value for Player 1 (Red) in GoldBoard to Gold[1]
Leaderboard - Change the value for Player 2 (Blue) in GoldBoard to Gold[2]
Leaderboard - Change the value for Player 3 (Teal) in GoldBoard to Gold[3]
Leaderboard - Change the value for Player 4 (Purple) in GoldBoard to Gold[4]
Leaderboard - Change the value for Player 5 (Yellow) in GoldBoard to Gold[5]
Leaderboard - Change the value for Player 6 (Orange) in GoldBoard to Gold[6]
Leaderboard - Change the value for Player 7 (Green) in GoldBoard to Gold[7]
Leaderboard - Change the value for Player 8 (Pink) in GoldBoard to Gold[8]
Leaderboard - Change the value for Player 9 (Gray) in GoldBoard to Gold[9]
Leaderboard - Change the value for Player 10 (Light Blue) in GoldBoard to Gold[10]
Leaderboard - Change the value for Player 11 (Dark Green) in GoldBoard to Gold[11]
Change Value Copy
Events
Unit - A unit owned by Player 12 (Brown) . Dies
Conditions
((Owner of (Killing unit)) is in (All players).) Equal to True
Actions
Set Variable Set Gold[(Player number of (Owner of (Killing unit)))] = ((Owner of (Killing unit)) Current gold)
Trigger - Run Update_Leaderboard_Copy <gen> (ignoring conditions)
AntiFReeSlot
Events
Map initialization
Conditions
Actions
If ((Player 1 (Red) slot status) Equal to Is unused) then do (Pick every unit in (Units owned by Player 1 (Red).) and do (Remove (Picked unit) from the game)) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Is unused) then do (Pick every unit in (Units owned by Player 2 (Blue).) and do (Remove (Picked unit) from the game)) else do (Do nothing)
If ((Player 3 (Teal) slot status) Equal to Is unused) then do (Pick every unit in (Units owned by Player 3 (Teal).) and do (Remove (Picked unit) from the game)) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is unused) then do (Pick every unit in (Units owned by Player 4 (Purple).) and do (Remove (Picked unit) from the game)) else do (Do nothing)
If ((Player 5 (Yellow) slot status) Equal to Is unused) then do (Pick every unit in (Units owned by Player 5 (Yellow).) and do (Remove (Picked unit) from the game)) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is unused) then do (Pick every unit in (Units owned by Player 6 (Orange).) and do (Remove (Picked unit) from the game)) else do (Do nothing)
If ((Player 7 (Green) slot status) Equal to Is unused) then do (Pick every unit in (Units owned by Player 7 (Green).) and do (Remove (Picked unit) from the game)) else do (Do nothing)
If ((Player 11 (Dark Green) slot status) Equal to Is unused) then do (Pick every unit in (Units owned by Player 11 (Dark Green).) and do (Remove (Picked unit) from the game)) else do (Do nothing)
Zombie
Events
Unit - A unit owned by Player 12 (Brown) . Dies
Conditions
(Unit-type of (Dying unit)) Equal to Zombie
Actions
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of (Dying unit) using UI\Feedback\GoldCredit\GoldCredit.mdl
Player - Set (Owner of (Killing unit)) . Current gold to (((Owner of (Killing unit)) Current gold) + (Random integer number between 1 and 3))
Vulture
Events
Unit - A unit owned by Player 12 (Brown) . Dies
Conditions
(Unit-type of (Dying unit)) Equal to Vulture (Level 1)
Actions
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of (Dying unit) using UI\Feedback\GoldCredit\GoldCredit.mdl
Player - Set (Owner of (Killing unit)) . Current gold to (((Owner of (Killing unit)) Current gold) + (Random integer number between 1 and 3))
NOP
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
If ((Player 1 (Red) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 1 (Red).) and do (Kill (Picked unit))) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 2 (Blue).) and do (Kill (Picked unit))) else do (Do nothing)
If ((Player 3 (Teal) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 3 (Teal).) and do (Kill (Picked unit))) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 4 (Purple).) and do (Kill (Picked unit))) else do (Do nothing)
If ((Player 5 (Yellow) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 5 (Yellow).) and do (Kill (Picked unit))) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 6 (Orange).) and do (Kill (Picked unit))) else do (Do nothing)
If ((Player 7 (Green) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 7 (Green).) and do (Kill (Picked unit))) else do (Do nothing)
If ((Player 11 (Dark Green) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 11 (Dark Green).) and do (Kill (Picked unit))) else do (Do nothing)
If ((Player 12 (Brown) slot status) Equal to Has left the game) then do (Pick every unit in (Units owned by Player 12 (Brown).) and do (Kill (Picked unit))) else do (Do nothing)
Zombie Master Death
Events
Unit - Zombie Master 0030 <gen> Dies
Conditions
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Game - Victory Player 4 (Purple) ( Show dialogs, Show scores)
Game - Victory Player 5 (Yellow) ( Show dialogs, Show scores)
Game - Victory Player 6 (Orange) ( Show dialogs, Show scores)
Game - Victory Player 7 (Green) ( Show dialogs, Show scores)
Game - Victory Player 11 (Dark Green) ( Show dialogs, Show scores)
Game - Defeat Player 12 (Brown) with the message: Defeat!
defeat red
Events
Unit - A unit owned by Player 1 (Red) . Dies
Conditions
(((Unit-type of (Dying unit)) Equal to Paladin) or (((Unit-type of (Dying unit)) Equal to Warrior) or (((Unit-type of (Dying unit)) Equal to Sorceror) or (((Unit-type of (Dying unit)) Equal to Ranger) or ((Unit-type of (Dying unit)) Equal to H005))))) or ((Unit-type of (Dying unit)) Equal to H000)
Actions
Game - Defeat Player 1 (Red) with the message: |CFFFF0000YOU DIED|r
defeat blue
Events
Unit - A unit owned by Player 2 (Blue) . Dies
Conditions
(((Unit-type of (Dying unit)) Equal to Paladin) or (((Unit-type of (Dying unit)) Equal to Warrior) or (((Unit-type of (Dying unit)) Equal to Sorceror) or (((Unit-type of (Dying unit)) Equal to Ranger) or ((Unit-type of (Dying unit)) Equal to H005))))) or ((Unit-type of (Dying unit)) Equal to H000)
Actions
Game - Defeat Player 2 (Blue) with the message: |CFFFF0000YOU DIED|r
defeat teal
Events
Unit - A unit owned by Player 3 (Teal) . Dies
Conditions
(((Unit-type of (Dying unit)) Equal to Paladin) or (((Unit-type of (Dying unit)) Equal to Warrior) or (((Unit-type of (Dying unit)) Equal to Sorceror) or (((Unit-type of (Dying unit)) Equal to Ranger) or ((Unit-type of (Dying unit)) Equal to H005))))) or ((Unit-type of (Dying unit)) Equal to H000)
Actions
Game - Defeat Player 3 (Teal) with the message: |CFFFF0000YOU DIED|r
defeat purple
Events
Unit - A unit owned by Player 4 (Purple) . Dies
Conditions
(((Unit-type of (Dying unit)) Equal to Paladin) or (((Unit-type of (Dying unit)) Equal to Warrior) or (((Unit-type of (Dying unit)) Equal to Sorceror) or (((Unit-type of (Dying unit)) Equal to Ranger) or ((Unit-type of (Dying unit)) Equal to H005))))) or ((Unit-type of (Dying unit)) Equal to H000)
Actions
Game - Defeat Player 4 (Purple) with the message: |CFFFF0000YOU DIED|r
defeat yellow
Events
Unit - A unit owned by Player 5 (Yellow) . Dies
Conditions
(((Unit-type of (Dying unit)) Equal to Paladin) or (((Unit-type of (Dying unit)) Equal to Warrior) or (((Unit-type of (Dying unit)) Equal to Sorceror) or (((Unit-type of (Dying unit)) Equal to Ranger) or ((Unit-type of (Dying unit)) Equal to H005))))) or ((Unit-type of (Dying unit)) Equal to H000)
Actions
Game - Defeat Player 5 (Yellow) with the message: |CFFFF0000YOU DIED|r
defeat orange
Events
Unit - A unit owned by Player 6 (Orange) . Dies
Conditions
(((Unit-type of (Dying unit)) Equal to Paladin) or (((Unit-type of (Dying unit)) Equal to Warrior) or (((Unit-type of (Dying unit)) Equal to Sorceror) or (((Unit-type of (Dying unit)) Equal to Ranger) or ((Unit-type of (Dying unit)) Equal to H005))))) or ((Unit-type of (Dying unit)) Equal to H000)
Actions
Game - Defeat Player 6 (Orange) with the message: |CFFFF0000YOU DIED|r
defeat green
Events
Unit - A unit owned by Player 7 (Green) . Dies
Conditions
(((Unit-type of (Dying unit)) Equal to Paladin) or (((Unit-type of (Dying unit)) Equal to Warrior) or (((Unit-type of (Dying unit)) Equal to Sorceror) or (((Unit-type of (Dying unit)) Equal to Ranger) or ((Unit-type of (Dying unit)) Equal to H005))))) or ((Unit-type of (Dying unit)) Equal to H000)
Actions
Game - Defeat Player 7 (Green) with the message: |CFFFF0000YOU DIED|r
defeat dark green
Events
Unit - A unit owned by Player 11 (Dark Green) . Dies
Conditions
(((Unit-type of (Dying unit)) Equal to Paladin) or (((Unit-type of (Dying unit)) Equal to Warrior) or (((Unit-type of (Dying unit)) Equal to Sorceror) or (((Unit-type of (Dying unit)) Equal to Ranger) or ((Unit-type of (Dying unit)) Equal to H005))))) or ((Unit-type of (Dying unit)) Equal to H000)
Actions
Game - Defeat Player 11 (Dark Green) with the message: |CFFFF0000YOU DIED|r
Zombie victory
Events
Time - Every 15.00 seconds of game time
Conditions
((Player 1 (Red) slot status) Equal to Has left the game) or ((Player 1 (Red) slot status) Equal to Is unused)
((Player 2 (Blue) slot status) Equal to Has left the game) or ((Player 2 (Blue) slot status) Equal to Is unused)
((Player 3 (Teal) slot status) Equal to Has left the game) or ((Player 3 (Teal) slot status) Equal to Is unused)
((Player 4 (Purple) slot status) Equal to Has left the game) or ((Player 4 (Purple) slot status) Equal to Is unused)
((Player 5 (Yellow) slot status) Equal to Has left the game) or ((Player 5 (Yellow) slot status) Equal to Is unused)
((Player 6 (Orange) slot status) Equal to Has left the game) or ((Player 6 (Orange) slot status) Equal to Is unused)
((Player 7 (Green) slot status) Equal to Has left the game) or ((Player 7 (Green) slot status) Equal to Is unused)
((Player 11 (Dark Green) slot status) Equal to Has left the game) or ((Player 11 (Dark Green) slot status) Equal to Is unused)
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red).) and do (Explode (Picked unit).)
Unit Group - Pick every unit in (Units owned by Player 2 (Blue).) and do (Explode (Picked unit).)
Unit Group - Pick every unit in (Units owned by Player 3 (Teal).) and do (Explode (Picked unit).)
Unit Group - Pick every unit in (Units owned by Player 4 (Purple).) and do (Explode (Picked unit).)
Unit Group - Pick every unit in (Units owned by Player 5 (Yellow).) and do (Explode (Picked unit).)
Unit Group - Pick every unit in (Units owned by Player 6 (Orange).) and do (Explode (Picked unit).)
Unit Group - Pick every unit in (Units owned by Player 7 (Green).) and do (Explode (Picked unit).)
Unit Group - Pick every unit in (Units owned by Player 11 (Dark Green).) and do (Explode (Picked unit).)
Game - Victory Player 12 (Brown) ( Show dialogs, Show scores)
Dialog Clicked
Events
Dialog - A dialog button is clicked for ClassSelect
Conditions
Actions
For each (Integer A) from 0 to 4 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to ClassDialogButtons[(Integer A)]
Then - Actions
Unit - Create 1 . Classes[(Integer A)] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (Player group((Triggering player))) the text: (Name of (Last created unit))
Player - Set (Triggering player) . Current gold to 50
Else - Actions
ClassSelectArray
Events
Map initialization
Conditions
Actions
Set Variable Set Classes[0] = "H001"
Set Variable Set Classes[1] = "H007"
Set Variable Set Classes[2] = "H006"
Set Variable Set Classes[3] = "H009"
Set Variable Set Classes[4] = "H008"
Create Dialog
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog - Clear ClassSelect
Dialog - Change the title of ClassSelect to Class Select
Dialog - Create a dialog button for ClassSelect labelled Warrior
Set Variable Set ClassDialogButtons[0] = (Last created dialog Button)
Dialog - Create a dialog button for ClassSelect labelled Ranger
Set Variable Set ClassDialogButtons[1] = (Last created dialog Button)
Dialog - Create a dialog button for ClassSelect labelled Paladin
Set Variable Set ClassDialogButtons[2] = (Last created dialog Button)
Dialog - Create a dialog button for ClassSelect labelled Cleric
Set Variable Set ClassDialogButtons[3] = (Last created dialog Button)
Dialog - Create a dialog button for ClassSelect labelled Sorceror
Set Variable Set ClassDialogButtons[4] = (Last created dialog Button)
Player Group - Pick every player in (All enemies of Player 12 (Brown).) and do (Actions)
Loop - Actions
Dialog - Show ClassSelect for (Picked player)
Inn Key
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to innkey
Actions
Cinematic - Disable user control for (Player group((Owner of (Triggering unit)))) .
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of (Triggering unit) using Abilities\Spells\Undead\Sleep\SleepSpecialArt.mdl
Unit - Set life of (Triggering unit) to 100 %
Unit - Set mana of (Triggering unit) to 100 %
Unit - Reset ability cooldowns for (Triggering unit) .
Wait 5.00 seconds
Cinematic - Enable user control for (Player group((Owner of (Triggering unit)))) .
Special Effect - Destroy (Last created special effect)
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.