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
Hemuli musa.w3x
Variables
Initialization
init piggy
init
potion
lboard
leaderboard
kill
win
revive
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
kills
integer
Yes
this trigger has been made by Kitabatake
init piggy
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units of type Fel Boar) and do (Change ownership of (Picked unit) to Neutral Hostile and Change color)
Game - Display to (All players) the text: THE FIRST ONE TO ACHIEVE 100 KILLS WINS!!
For each (Integer A) from 1 to 80 , do (Actions)
Loop - Actions
Unit - Create 1 . Fel Boar for Neutral Hostile at (Random point in (Playable map area)) facing Default building facing degrees
Wait 5.00 seconds
Game - Display to (All players) the text: Use all means necessary
Wait 5.00 seconds
Game - Display to (All players) the text: If you die, you will respawn
this trigger has been made by Kitabatake
init
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Player Group - Pick every player in (All players) and do (Lock camera target for (Picked player) to (Random unit from (Units owned by (Picked player).)), offset by (0, 0) using Default rotation)
this trigger has been made by Kitabatake
potion
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Item - Create Potion of Healing at (Random point in (Playable map area))
Wait 5.00 seconds
Item - Create Potion of Mana at (Random point in (Playable map area))
Wait 45.00 seconds
Item - Remove (Random item in (Playable map area))
Wait 5.00 seconds
Item - Remove (Random item in (Playable map area))
this trigger has been made by Kitabatake
leaderboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled |cffff0000Top ranking piggy slayer:
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 - Add Player 5 (Yellow) to (Last created leaderboard) with label (Name of Player 5 (Yellow)) and value 0
Leaderboard - Add Player 6 (Orange) to (Last created leaderboard) with label (Name of Player 6 (Orange)) and value 0
this trigger has been made by Kitabatake
kill
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Fel Boar
Actions
Set Variable Set kills[(Player number of (Owner of (Killing unit)))] = (kills[(Player number of (Owner of (Killing unit)))] + 1)
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to kills[1]
Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to kills[2]
Leaderboard - Change the value for Player 3 (Teal) in (Last created leaderboard) to kills[3]
Leaderboard - Change the value for Player 4 (Purple) in (Last created leaderboard) to kills[4]
Leaderboard - Change the value for Player 5 (Yellow) in (Last created leaderboard) to kills[5]
Leaderboard - Change the value for Player 6 (Orange) in (Last created leaderboard) to kills[6]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Wait 10.00 seconds
Unit - Create 1 . Fel Boar for Neutral Hostile at (Random point in Region_000 <gen>) facing Default building facing degrees
this trigger has been made by Kitabatake
win
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[1] Greater than or equal to 100
Then - Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Wait 5.00 seconds
Player Group - Pick every player in (All players) and do (Defeat (Picked player) with the message: |cffff0000You have lost!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[2] Greater than or equal to 100
Then - Actions
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Wait 5.00 seconds
Player Group - Pick every player in (All players) and do (Defeat (Picked player) with the message: |cffff0000You have lost!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[3] Greater than or equal to 100
Then - Actions
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Wait 5.00 seconds
Player Group - Pick every player in (All players) and do (Defeat (Picked player) with the message: |cffff0000You have lost!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[4] Greater than or equal to 100
Then - Actions
Game - Victory Player 4 (Purple) ( Show dialogs, Show scores)
Wait 5.00 seconds
Player Group - Pick every player in (All players) and do (Defeat (Picked player) with the message: |cffff0000You have lost!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[5] Greater than or equal to 100
Then - Actions
Game - Victory Player 5 (Yellow) ( Show dialogs, Show scores)
Wait 5.00 seconds
Player Group - Pick every player in (All players) and do (Defeat (Picked player) with the message: |cffff0000You have lost!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
kills[6] Greater than or equal to 100
Then - Actions
Game - Victory Player 6 (Orange) ( Show dialogs, Show scores)
Wait 5.00 seconds
Player Group - Pick every player in (All players) and do (Defeat (Picked player) with the message: |cffff0000You have lost!)
Else - Actions
Do nothing
this trigger has been made by Kitabatake
revive
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Not equal to Fel Boar
Actions
Wait 10.00 seconds
Hero - Instantly revive (Dying unit) at (Random point in Region_000 <gen>) , Hide revival graphics
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.