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 Player Version Fixed.w3x
Variables
Initialization
Init
Start
Need This
Units
Add Red
Add Blue
Timer Create Units
Die
Win
Debug
Red
Blue
Red and Blue
Cheat
Cheat Blue
// By: XxPaLaDiNxX
Name
Type
is_array
initial_value
Dialog
dialog
No
Dialog_Buttons
button
Yes
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 3 (Teal).) and do (Remove (Picked unit) from the game)
Unit Group - Pick every unit in (Units owned by Player 4 (Purple).) and do (Remove (Picked unit) from the game)
Set Variable Set nUnits[0] = "0"
Set Variable Set nUnits[1] = "0"
Trigger - Turn on Win <gen>
Unit - Hide 0000 <gen>
Trigger - Run Need_This <gen> (ignoring conditions)
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Playable map area)
Visibility - Create an initially Enabled visibility modifier for Player 2 (Blue) 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 4 (Purple) as an Enemy with shared vision
Player - Make Player 4 (Purple) treat Player 3 (Teal) as an Enemy with shared vision
-------- -------- --------
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Neutral with shared vision
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Neutral with shared vision
-------- -------- --------
Player - Make Player 2 (Blue) treat Player 4 (Purple) as an Ally with shared vision
Player - Make Player 4 (Purple) treat Player 2 (Blue) as an Ally with shared vision
Need This
Events
Conditions
Actions
Unit - Unhide 0000 <gen>
Countdown Timer - Start Timer as a One-shot timer that will expire in 10.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title Start:
Countdown Timer - Show (Last created timer window)
Add Red
Events
Player - Player 1 (Red) Selects a unit
Conditions
(Triggering unit) Equal to 0000 <gen>
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 26.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Add Blue
Events
Player - Player 2 (Blue) Selects a unit
Conditions
(Triggering unit) Equal to 0000 <gen>
Actions
Set Variable Set nUnits[1] = (nUnits[1] + 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 26.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[0] . Fighter Red for Player 3 (Teal) at (Center of Down <gen>) facing 90.00 degrees
Unit - Create nUnits[1] . Fighter Blue for Player 4 (Purple) at (Center of Up <gen>) facing 270.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 4 (Purple).) and do (Order (Picked unit) to Attack-Move To.(Random point in Down <gen>))
Game - Display to (All players) for 5.00 seconds the text: |cffff0000Charge!
Sound - Play Charge <gen>
Trigger - Turn on Win <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
nUnits[0] Equal to 0
nUnits[1] Equal to 0
Then - Actions
Trigger - Run Red_and_Blue <gen> (ignoring conditions)
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
nUnits[0] Equal to 0
Then - Actions
Trigger - Run Red <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
nUnits[1] Equal to 0
Then - Actions
Trigger - Run Blue <gen> (ignoring conditions)
Else - Actions
Die
Events
Unit - A unit Is attacked
Conditions
Actions
Unit - Kill (Attacking unit)
Win
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 4 (Purple) 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 Player Group - Player 1 (Red) for 2.00 seconds the text: |cff00CD00You've won the battle!
Game - Display to Player Group - Player 2 (Blue) for 2.00 seconds the text: |cff00CD00You've lost 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"
Game - Display to Player Group - Player 1 (Red) for 2.00 seconds the text: |cff00CD00You've lost the battle.
Game - Display to Player Group - Player 2 (Blue) for 2.00 seconds the text: |cff00CD00You've won the battle!
Wait 1.00 seconds
Trigger - Run Init <gen> (ignoring conditions)
Else - Actions
Red
Events
Conditions
Actions
Game - Display to (All players) the text: |cffff0000Red didn't create any units; the game will remake.
Trigger - Run Init <gen> (ignoring conditions)
Blue
Events
Conditions
Actions
Game - Display to (All players) the text: |cffff0000Blue didn't create any units; the game will remake.
Trigger - Run Init <gen> (ignoring conditions)
Red and Blue
Events
Conditions
Actions
Game - Display to (All players) the text: |cffff0000Both of you didn't create any units; the game will remake.
Trigger - Run Init <gen> (ignoring conditions)
Cheat
Events
Player - Player 1 (Red) types a chat message containing -overload (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Name of (Triggering player)) Equal to XxPaLaDiNxX
Then - Actions
Set Variable Set nUnits[0] = "150"
Else - Actions
Game - Display to Player Group - Player 1 (Red) the text: |cff00CD00Cheating is wrong! Only XxPaLaDiN is allowed :-D
Cheat Blue
Events
Player - Player 2 (Blue) types a chat message containing -overload (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Name of (Triggering player)) Equal to XxPaLaDiNxX
Then - Actions
Set Variable Set nUnits[1] = "150"
Else - Actions
Game - Display to Player Group - Player 2 (Blue) the text: |cff00CD00Cheating is wrong! Only XxPaLaDiN is allowed :-D
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.