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
Greedy Ghouls.w3x
Variables
Initialization
map init
hiss flytta pa sig
spawn folk
leave
guld
leaderbord
die
r1
r2
r3
r4
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
folk
group
No
guld2
group
No
hiss
integer
Yes
hiss2323
destructable
Yes
hisssak
integer
No
kills
integer
Yes
rematch
integer
No
vinna
integer
No
map init
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Set Variable Set hiss2323[0] = Elevator 0000 <gen>
Set Variable Set hiss2323[1] = Elevator 0001 <gen>
Set Variable Set hiss2323[2] = Elevator 0002 <gen>
Set Variable Set hiss2323[3] = Elevator 0003 <gen>
Set Variable Set hiss2323[4] = Elevator 0004 <gen>
Set Variable Set hiss2323[5] = Elevator 0005 <gen>
Set Variable Set hiss2323[6] = Elevator 0006 <gen>
Set Variable Set hiss2323[7] = Elevator 0007 <gen>
Set Variable Set hiss2323[8] = Elevator 0008 <gen>
Set Variable Set hiss2323[9] = Elevator 0009 <gen>
Set Variable Set hiss2323[10] = Elevator 0010 <gen>
Set Variable Set hiss2323[11] = Elevator 0011 <gen>
Set Variable Set hiss2323[12] = Elevator 0012 <gen>
Set Variable Set hiss2323[13] = Elevator 0013 <gen>
Set Variable Set hiss2323[14] = Elevator 0014 <gen>
Set Variable Set hiss2323[15] = Elevator 0015 <gen>
Set Variable Set hiss2323[16] = Elevator 0016 <gen>
Set Variable Set hiss2323[17] = Elevator 0017 <gen>
Set Variable Set hiss2323[18] = Elevator 0018 <gen>
Set Variable Set hiss2323[19] = Elevator 0019 <gen>
Game - Display to (All players) the text: Welcome to |cfee00ffFFoerhaexxaren's|r |cfccccccFGreedy Ghouls|r. Attack the |cfffff00Fgold|r to get it. First player to reach 25 |cfffff00Fgold|r wins! (Rematch is available when someone wins.) |cfff0000FGood Luck! (^_^)|r
Default melee game initialization for all players
hiss flytta pa sig
Events
Map initialization
Time - Every 5.00 seconds of game time
Conditions
Actions
Set Variable Set hisssak = "0"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
For each (Integer A) from 0 to 19 , do (Actions)
Loop - Actions
Set Variable Set hiss[(Integer A)] = (Random integer number between 0 and 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
hiss[(Integer A)] Equal to 0
Then - Actions
Destructible - Set height of hiss2323[(Integer A)] to 1
Destructible - Open All walls of hiss2323[(Integer A)]
Else - Actions
Destructible - Set height of hiss2323[(Integer A)] to 2
Destructible - Close All walls of hiss2323[(Integer A)]
Else - Actions
spawn folk
Events
Map initialization
Conditions
Actions
Wait 0.30 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . Greedy Ghoul for Player 1 (Red) at (Random point in Region_000 <gen>) facing Default building facing degrees
Unit Group - Add (Last created unit) to folk
Unit - Add Blink to (Last created unit)
Unit - Add Ensnare MIN EGNA! to (Last created unit)
Camera - Lock camera target for Player 1 (Red) to (Last created unit) , offset by ( 0 , 0 ) using Default rotation
Selection - Select (Last created unit) for Player 1 (Red)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . Greedy Ghoul for Player 2 (Blue) at (Random point in Region_000 <gen>) facing Default building facing degrees
Unit Group - Add (Last created unit) to folk
Unit - Add Blink to (Last created unit)
Unit - Add Ensnare MIN EGNA! to (Last created unit)
Camera - Lock camera target for Player 2 (Blue) to (Last created unit) , offset by ( 0 , 0 ) using Default rotation
Selection - Select (Last created unit) for Player 2 (Blue)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 3 (Teal) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . Greedy Ghoul for Player 3 (Teal) at (Random point in Region_000 <gen>) facing Default building facing degrees
Unit Group - Add (Last created unit) to folk
Unit - Add Blink to (Last created unit)
Unit - Add Ensnare MIN EGNA! to (Last created unit)
Camera - Lock camera target for Player 3 (Teal) to (Last created unit) , offset by ( 0 , 0 ) using Default rotation
Selection - Select (Last created unit) for Player 3 (Teal)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 4 (Purple) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . Greedy Ghoul for Player 4 (Purple) at (Random point in Region_000 <gen>) facing Default building facing degrees
Unit Group - Add (Last created unit) to folk
Unit - Add Blink to (Last created unit)
Unit - Add Ensnare MIN EGNA! to (Last created unit)
Camera - Lock camera target for Player 4 (Purple) to (Last created unit) , offset by ( 0 , 0 ) using Default rotation
Selection - Select (Last created unit) for Player 4 (Purple)
Else - Actions
leave
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
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + was fag and left.)
guld
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Gold for Player 5 (Yellow) at (Random point in Region_000 <gen>) facing Default building facing degrees
Unit Group - Add (Last created unit) to guld2
Unit - Create 1 . Gold for Player 5 (Yellow) at (Random point in Region_000 <gen>) facing Default building facing degrees
Unit Group - Add (Last created unit) to guld2
Unit - Create 1 . Gold for Player 5 (Yellow) at (Random point in Region_000 <gen>) facing Default building facing degrees
Unit Group - Add (Last created unit) to guld2
leaderbord
Events
Time - Elapsed game time is 0.30 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Gold
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label (Name of Player 1 (Red)) and value 0
Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label (Name of Player 2 (Blue)) and value 0
Leaderboard - Add Player 3 (Teal) to (Last created leaderboard) with label (Name of Player 3 (Teal)) and value 0
Leaderboard - Add Player 4 (Purple) to (Last created leaderboard) with label (Name of Player 4 (Purple)) and value 0
Leaderboard - Change the color of the label for Player 1 (Red) in (Last created leaderboard) to ( 100 %, 0.00 %, 0.00 %) with 0 % transparency
Leaderboard - Change the color of the label for Player 2 (Blue) in (Last created leaderboard) to ( 0.00 %, 0.00 %, 100.00 %) with 0 % transparency
Leaderboard - Change the color of the label for Player 3 (Teal) in (Last created leaderboard) to ( 0.00 %, 100.00 %, 100.00 %) with 0 % transparency
Leaderboard - Change the color of the label for Player 4 (Purple) in (Last created leaderboard) to ( 50.00 %, 0.00 %, 80.00 %) with 0 % transparency
Leaderboard - Change the color of the value for Player 4 (Purple) in (Last created leaderboard) to ( 50.00 %, 0.00 %, 80.00 %) with 0 % transparency
Leaderboard - Show (Last created leaderboard)
die
Events
Unit - A unit owned by Player 5 (Yellow) . Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
Then - Actions
Set Variable Set kills[0] = (kills[0] + 1)
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to kills[0]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 2 (Blue)
Then - Actions
Set Variable Set kills[1] = (kills[1] + 1)
Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to kills[1]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 3 (Teal)
Then - Actions
Set Variable Set kills[2] = (kills[2] + 1)
Leaderboard - Change the value for Player 3 (Teal) in (Last created leaderboard) to kills[2]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 4 (Purple)
Then - Actions
Set Variable Set kills[3] = (kills[3] + 1)
Leaderboard - Change the value for Player 4 (Purple) in (Last created leaderboard) to kills[3]
Else - Actions
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[0] Equal to 25
Then - Actions
Trigger - Turn off (This trigger)
Game - Display to (All players) the text: ((Name of Player 1 (Red)) + has won the match!)
Game - Display to (All players) the text: The game will end in 30 seconds if not 2 or more players write. "-rematch"
Trigger - Turn on r1 <gen>
Trigger - Turn on r2 <gen>
Trigger - Turn on r3 <gen>
Trigger - Turn on r4 <gen>
Trigger - Turn off guld <gen>
Unit Group - Pick every unit in folk and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Unit Group - Pick every unit in guld2 and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Wait 2 seconds
For each (Integer B) from 0 to 29 , do (Actions)
Loop - Actions
Game - Display to (All players) the text: (String((Abs((30 - (Integer B))))))
Wait 1.00 seconds
Set Variable Set vinna = "1"
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[1] Equal to 25
Then - Actions
Trigger - Turn off (This trigger)
Game - Display to (All players) the text: ((Name of Player 2 (Blue)) + has won the match!)
Game - Display to (All players) the text: The game will end in 10 seconds.
Trigger - Turn on r1 <gen>
Trigger - Turn on r2 <gen>
Trigger - Turn on r3 <gen>
Trigger - Turn on r4 <gen>
Trigger - Turn off guld <gen>
Unit Group - Pick every unit in folk and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Unit Group - Pick every unit in guld2 and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
For each (Integer B) from 0 to 29 , do (Actions)
Loop - Actions
Game - Display to (All players) the text: (String((Abs((30 - (Integer B))))))
Wait 1.00 seconds
Set Variable Set vinna = "1"
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[2] Equal to 25
Then - Actions
Trigger - Turn off (This trigger)
Game - Display to (All players) the text: ((Name of Player 3 (Teal)) + has won the match!)
Game - Display to (All players) the text: The game will end in 10 seconds.
Trigger - Turn on r1 <gen>
Trigger - Turn on r2 <gen>
Trigger - Turn on r3 <gen>
Trigger - Turn on r4 <gen>
Trigger - Turn off guld <gen>
Unit Group - Pick every unit in folk and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Unit Group - Pick every unit in guld2 and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
For each (Integer B) from 0 to 29 , do (Actions)
Loop - Actions
Game - Display to (All players) the text: (String((Abs((30 - (Integer B))))))
Wait 1.00 seconds
Set Variable Set vinna = "1"
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[3] Equal to 25
Then - Actions
Trigger - Turn off (This trigger)
Game - Display to (All players) the text: ((Name of Player 4 (Purple)) + has won the match!)
Game - Display to (All players) the text: The game will end in 30 seconds if not 2 or more players write. "-rematch"
Trigger - Turn on r1 <gen>
Trigger - Turn on r2 <gen>
Trigger - Turn on r3 <gen>
Trigger - Turn on r4 <gen>
Trigger - Turn off guld <gen>
Unit Group - Pick every unit in folk and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Unit Group - Pick every unit in guld2 and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
For each (Integer B) from 0 to 29 , do (Actions)
Loop - Actions
Game - Display to (All players) the text: (String((Abs((30 - (Integer B))))))
Wait 1.00 seconds
Set Variable Set vinna = "1"
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
vinna Equal to 1
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
rematch Greater than 1
Then - Actions
Set Variable Set kills[0] = "0"
Set Variable Set kills[1] = "0"
Set Variable Set kills[2] = "0"
Set Variable Set kills[3] = "0"
Trigger - Turn on guld <gen>
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to kills[0]
Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to kills[0]
Leaderboard - Change the value for Player 3 (Teal) in (Last created leaderboard) to kills[0]
Leaderboard - Change the value for Player 4 (Purple) in (Last created leaderboard) to kills[0]
Set Variable Set vinna = "0"
Unit Group - Pick every unit in folk and do (Actions)
Loop - Actions
Hero - Instantly revive (Picked unit) at (Random point in Region_000 <gen>) , Show revival graphics
Else - Actions
Game - Defeat Player 1 (Red) with the message: Game Ended.
Game - Defeat Player 2 (Blue) with the message: Game Ended.
Game - Defeat Player 3 (Teal) with the message: Game Ended.
Game - Defeat Player 4 (Purple) with the message: Game Ended.
Else - Actions
r1
Events
Player - Player 1 (Red) types a chat message containing -rematch (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Set Variable Set rematch = (rematch + 1)
Trigger - Turn off (This trigger)
r2
Events
Player - Player 2 (Blue) types a chat message containing -rematch (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Set Variable Set rematch = (rematch + 1)
Trigger - Turn off (This trigger)
r3
Events
Player - Player 3 (Teal) types a chat message containing -rematch (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Set Variable Set rematch = (rematch + 1)
Trigger - Turn off (This trigger)
r4
Events
Player - Player 4 (Purple) types a chat message containing -rematch (Unexpected type: 'stringnoformat') as An exact match
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.