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
Troll Melee.w3x
Variables
Initialization
Init
Dialog
Setup
Buttons
Units
Add
Timer Create Units
No Spawn
Die
Win
Gore Mode
Turn On
Turn Off
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
Dialog
dialog
No
Dialog_Buttons
button
Yes
goreMode
boolean
No
nUnits
integer
Yes
Timer
timer
No
Init
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Trigger - Turn off Win <gen>
Unit Group - Pick every unit in (Units owned by Player 2 (Blue).) and do (Remove (Picked unit) from the game)
Unit Group - Pick every unit in (Units owned by Player 3 (Teal).) and do (Remove (Picked unit) from the game)
Trigger - Turn on Win <gen>
Unit - Hide 0000 <gen>
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Playable map area)
Player - Make Player 1 (Red) treat Player 3 (Teal) as an Ally with shared vision
Player - Make Player 3 (Teal) treat Player 1 (Red) as an Ally with shared vision
Player - Make Player 3 (Teal) treat Player 2 (Blue) as an Enemy with shared vision
Player - Make Player 2 (Blue) treat Player 3 (Teal) as an Enemy with shared vision
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Enemy with shared vision
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Neutral with shared vision
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Execution count of (This trigger)) Less than or equal to 1
Then - Actions
Game - Display to (All players) for 10.00 seconds the text: |cffffcc00Hint:|r Type -on for gore mode; if you wan't it turned off, then type -off
Else - Actions
Wait 1.00 seconds
Trigger - Run Setup <gen> (ignoring conditions)
Setup
Events
Conditions
Actions
Dialog - Clear Dialog
Dialog - Change the title of Dialog to |cffff0000Enemies:
Dialog - Create a dialog button for Dialog labelled |cff00CD0020
Set Variable Set Dialog_Buttons[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled |cffEE9A0040
Set Variable Set Dialog_Buttons[2] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled |cff80000080
Set Variable Set Dialog_Buttons[3] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled |cffCD00ffRandom
Set Variable Set Dialog_Buttons[4] = (Last created dialog Button)
Dialog - Show Dialog for Player 1 (Red)
20-30 - 90-105
Buttons
Events
Dialog - A dialog button is clicked for Dialog
Conditions
Actions
Trigger - Turn off Setup <gen>
Countdown Timer - Start Timer as a One-shot timer that will expire in 10.00 seconds
Countdown Timer - Create a timer window for Timer with title Start:
Countdown Timer - Show (Last created timer window) for Player 1 (Red)
Unit - Unhide 0000 <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Dialog_Buttons[1]
Then - Actions
Set Variable Set nUnits[1] = "20"
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Dialog_Buttons[2]
Then - Actions
Set Variable Set nUnits[1] = "40"
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Dialog_Buttons[3]
Then - Actions
Set Variable Set nUnits[1] = "80"
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to Dialog_Buttons[4]
Then - Actions
Set Variable Set nUnits[1] = (Random integer number between (Random integer number between 20 and 30) and (Random integer number between 90 and 100))
Else - Actions
Dialog - Clear Dialog
Add
Events
Unit - 0000 <gen> Is selected
Conditions
Actions
Set Variable Set nUnits[0] = (nUnits[0] + 1)
Floating Text - Destroy (Last created floating text)
Floating Text - Create floating text that reads ((String(nUnits[0])) + ( vs. + (String(nUnits[1])))) above 0000 <gen> with Z offset 0 , using font size 20.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Timer Create Units
Events
Time - Timer expires
Conditions
Actions
Floating Text - Destroy (Last created floating text)
Countdown Timer - Destroy (Last created timer window)
Unit - Hide 0000 <gen>
Unit - Create nUnits[1] . Fighter Blue for Player 2 (Blue) at (Center of Up <gen>) facing 270.00 degrees
Unit - Create nUnits[0] . Fighter Red for Player 3 (Teal) at (Center of Down <gen>) facing 90.00 degrees
Unit Group - Pick every unit in (Units owned by Player 3 (Teal).) and do (Order (Picked unit) to Attack-Move To.(Random point in Up <gen>))
Unit Group - Pick every unit in (Units owned by Player 2 (Blue).) and do (Order (Picked unit) to Attack-Move To.(Random point in Down <gen>))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
nUnits[0] Equal to 0
Then - Actions
Trigger - Run Init <gen> (ignoring conditions)
Game - Display to (All players) the text: |cffff0000Spawn units, please.
Skip remaining actions
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffff0000Charge!
Sound - Play Charge <gen>
Trigger - Turn on Win <gen>
No Spawn
Events
Conditions
Actions
Die
Events
Unit - A unit Is attacked
Conditions
Actions
If (goreMode Equal to True) then do (Explode (Attacking unit).) else do (Kill (Attacking unit))
If (goreMode Equal to True) then do (Explode (Attacked unit).) else do (Kill (Attacked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
goreMode Equal to True
Then - Actions
Special Effect - Create a special effect at (Position of (Attacking unit)) using Objects\Spawnmodels\NightElf\NightElfBlood\NightElfBloodChimaera.mdl
Special Effect - Create a special effect at (Position of (Attacked unit)) using Objects\Spawnmodels\NightElf\NightElfBlood\NightElfBloodChimaera.mdl
Special Effect - Create a special effect at (Position of (Attacking unit)) using Objects\Spawnmodels\Orc\Orcblood\OrdBloodWyvernRider.mdl
Special Effect - Create a special effect at (Position of (Attacked unit)) using Objects\Spawnmodels\NightElf\NightElfBlood\NightElfBloodChimaera.mdl
Special Effect - Create a special effect at (Position of (Attacking unit)) using Objects\Spawnmodels\NightElf\NightElfBlood\NightElfBloodDruidoftheClaw.mdl
Special Effect - Create a special effect at (Position of (Attacking unit)) using Objects\Spawnmodels\NightElf\NightElfBlood\NightElfBloodDruidoftheClaw.mdl
Special Effect - Create a special effect at (Position of (Attacked unit)) using Objects\Spawnmodels\NightElf\NightElfBlood\NightElfBloodDruidoftheClaw.mdl
Special Effect - Create a special effect at (Position of (Attacked unit)) using Objects\Spawnmodels\NightElf\NightElfBlood\NightElfBloodDruidoftheClaw.mdl
Else - Actions
Win
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) Food used) Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Set Variable Set nUnits[0] = "0"
Set Variable Set nUnits[1] = "0"
Game - Display to (All players) for 2.00 seconds the text: |cff00CD00You've won the battle!
Wait 1.00 seconds
Trigger - Run Init <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 3 (Teal) Food used) Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Set Variable Set nUnits[0] = "0"
Set Variable Set nUnits[1] = "0"
Wait 1.00 seconds
Trigger - Run Init <gen> (ignoring conditions)
Else - Actions
Turn On
Events
Player - Player 1 (Red) types a chat message containing -on (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Set Variable Set goreMode = "true"
Turn Off
Events
Player - Player 1 (Red) types a chat message containing -off (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.