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
Dwarfwars_HSurvival_006_byMozilaX.w3x
Variables
Timer
Creater Timer
Timer End Vitoria
Derrota
Heroes
Revive Hero
Hero Teleport
Enemies
Turn On Units
Send units
Create Gunners
Create Dwarf Team
Create Flying Dwarf
Create Units
Create Bosses
Create Final Boss
Events
Savior
Effects
Dialog
Create Dialog
Easy
Medium
Hard
Left Game
Player 1
Player 2
Player 3
Player 4
Player 5
Player 6
Player 7
Player 8
Dwarf Wars
Bonus Gold
Upgrade
Begin
Name
Type
is_array
initial_value
Creeptimer
timer
No
difficult
dialog
No
easybutton
button
No
hardbutton
button
No
mediumbutton
button
No
Research
integer
No
0
Spawn_Time
real
No
12.00
WinTimer
timer
No
Creater Timer
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Countdown Timer - Create a timer window for WinTimer with title Remaining Time
Countdown Timer - Show (Last created timer window)
Countdown Timer - Create a timer window for Creeptimer with title Dwarves Arrival
Countdown Timer - Show (Last created timer window)
Countdown Timer - Start WinTimer as a One-shot timer that will expire in 1200.00 seconds
Countdown Timer - Start Creeptimer as a One-shot timer that will expire in 72.00 seconds
Timer End Vitoria
Events
Time - WinTimer expires
Conditions
Actions
Trigger - Turn off Create_Bosses <gen>
Trigger - Turn off Create_Units <gen>
Game - Display to (All players) for 5.00 seconds the text: CONGRATULATIONS! U WON!
Player Group - Pick every player in (All allies of Player 9 (Gray).) and do (Victory (Picked player) (Show dialogs, Show scores))
Derrota
Events
Unit - Arcane Tower 0000 <gen> Dies
Conditions
Actions
Player Group - Pick every player in (All allies of Player 9 (Gray).) and do (Defeat (Picked player) with the message: You failed!! NOOB!!)
My code waits five seconds per hero level. To change the time a hero revivs, change the line that says:
-set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
-To change the location your hero is revived at, create a new emtpy trigger with just the REVIVE line.
-Then convert the temp trigger to custom text, copy your line, and paste it.
-After pasting, change the first item to OURHERO just like mine has.
-We use CUSTOM TEXT to give us our local variables. That way, multiple creeps can revive without variables overwriting themselves.
Revive Hero
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
((Triggering unit) belongs to an ally of Player 9 (Gray).) Equal to True
Actions
Custom script: local timerdialog WINDOW
Custom script: local integer HEROWAIT
Custom script: local timer OURTIMER
Custom script: local unit OURHERO
Custom script: set OURHERO = GetDyingUnit()
Custom script: set OURTIMER = CreateTimer()
Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 2 )
Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + 's hero has died and will revive soon.)
Hero Teleport
Events
Unit - A unit enters Hero_Chooser <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Hero - Create Potion of Healing and give it to (Triggering unit)
Unit - Move (Triggering unit) instantly to (Center of Center <gen>)
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Center <gen>) over 0.10 seconds
Turn On Units
Events
Time - Elapsed game time is 75.00 seconds
Conditions
Actions
Trigger - Turn on Create_Units <gen>
Trigger - Turn on Create_Bosses <gen>
Trigger - Turn on Create_Gunners <gen>
Trigger - Turn on Create_Final_Boss <gen>
Trigger - Turn on Create_Dwarf_Team <gen>
Trigger - Turn on Create_Flying_Dwarf <gen>
Send units
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Order (Units in Spawn_East <gen> owned by Player 10 (Light Blue)) to Attack-Move To . (Center of Center <gen>)
Unit Group - Order (Units in Spawn_North <gen> owned by Player 10 (Light Blue)) to Attack-Move To . (Center of Center <gen>)
Unit Group - Order (Units in Spawn_South <gen> owned by Player 10 (Light Blue)) to Attack-Move To . (Center of Center <gen>)
Unit Group - Order (Units in Spawn_West <gen> owned by Player 10 (Light Blue)) to Attack-Move To . (Center of Center <gen>)
Create Gunners
Events
Time - Every 90.00 seconds of game time
Conditions
Actions
Unit - Create 2 Dwarf Gunner for Player 10 (Light Blue) at (Center of Spawn_East <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Dwarf Gunner for Player 10 (Light Blue) at (Center of Spawn_North <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Dwarf Gunner for Player 10 (Light Blue) at (Center of Spawn_South <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Dwarf Gunner for Player 10 (Light Blue) at (Center of Spawn_West <gen>) facing (Position of (Triggering unit))
Create Dwarf Team
Events
Time - Every 150.00 seconds of game time
Conditions
Actions
Unit - Create 2 Dwarf Team for Player 10 (Light Blue) at (Center of Spawn_East <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Dwarf Team for Player 10 (Light Blue) at (Center of Spawn_North <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Dwarf Team for Player 10 (Light Blue) at (Center of Spawn_South <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Dwarf Team for Player 10 (Light Blue) at (Center of Spawn_West <gen>) facing (Position of (Triggering unit))
Create Flying Dwarf
Events
Time - Every 200.00 seconds of game time
Conditions
Actions
Unit - Create 2 Flying Dwarf for Player 10 (Light Blue) at (Center of Spawn_East <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Flying Dwarf for Player 10 (Light Blue) at (Center of Spawn_North <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Flying Dwarf for Player 10 (Light Blue) at (Center of Spawn_South <gen>) facing (Position of (Triggering unit))
Unit - Create 2 Flying Dwarf for Player 10 (Light Blue) at (Center of Spawn_West <gen>) facing (Position of (Triggering unit))
Create Units
Events
Time - Every 12.00 seconds of game time
Conditions
Actions
Countdown Timer - Start Creeptimer as a One-shot timer that will expire in 12.00 seconds
Unit - Create 4 Dwarf for Player 10 (Light Blue) at (Center of Spawn_North <gen>) facing (Position of (Triggering unit))
Unit - Create 3 Dwarf for Player 10 (Light Blue) at (Center of Spawn_South <gen>) facing (Position of (Triggering unit))
Unit - Create 3 Dwarf for Player 10 (Light Blue) at (Center of Spawn_West <gen>) facing (Position of (Triggering unit))
Unit - Create 3 Dwarf for Player 10 (Light Blue) at (Center of Spawn_East <gen>) facing (Position of (Triggering unit))
Create Bosses
Events
Time - Every 180.00 seconds of game time
Conditions
Actions
Unit - Create 1 Dwarf Hero for Player 10 (Light Blue) at (Center of Spawn_East <gen>) facing (Position of (Triggering unit))
Hero - Set (Last created unit) Hero-level to (Research + 3) , Hide level-up graphics
Unit - Create 1 Dwarf Hero for Player 10 (Light Blue) at (Center of Spawn_North <gen>) facing (Position of (Triggering unit))
Hero - Set (Last created unit) Hero-level to (Research + 3) , Hide level-up graphics
Unit - Create 1 Dwarf Hero for Player 10 (Light Blue) at (Center of Spawn_West <gen>) facing (Position of (Triggering unit))
Hero - Set (Last created unit) Hero-level to (Research + 3) , Hide level-up graphics
Unit - Create 1 Dwarf Hero for Player 10 (Light Blue) at (Center of Spawn_East <gen>) facing (Position of (Triggering unit))
Hero - Set (Last created unit) Hero-level to (Research + 3) , Hide level-up graphics
Create Final Boss
Events
Time - Elapsed game time is 1050.00 seconds
Conditions
Actions
Unit - Create 1 Dwarf Devil for Player 10 (Light Blue) at (Center of Spawn_North <gen>) facing (Position of (Triggering unit))
Hero - Set (Last created unit) Hero-level to (Research + 15) , Hide level-up graphics
Game - Display to (All players) for 20.00 seconds the text: The Dwarf Devil is coming to kill everyone! WATCH OUT!
Savior
Events
Unit - Arcane Tower 0000 <gen> 's life becomes Less than (0.15 x (Max life of Arcane Tower 0000 <gen>))
Conditions
Actions
Game - Display to (All players) for 20.00 seconds the text: The savior was called !!!!!!!!
Unit - Create 1 . Savior for Player 9 (Gray) at (Center of Center <gen>) facing Default building facing degrees
Trigger - Turn off (This trigger)
Effects
Events
Time - Elapsed game time is 1100.00 seconds
Conditions
Actions
Environment - Set fog to style Linear , z-start 1000 , z-end 8000 , density 0 and color ( 100 %, 100 %, 100 %)
Environment - Create at Whole <gen> the weather effect Ashenvale Rain (Heavy)
Environment - Create at Whole <gen> the weather effect Northrend Blizzard
Game - Display to (All players) for 10.00 seconds the text: |cffff0000The victory is close motherfuckers! Keep on defending!|r
Create Dialog
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog - Change the title of difficult to Select difficult:
Dialog - Create a dialog button for difficult labelled Easy (normal handcap)
Set Variable Set easybutton = (Last created dialog Button)
Dialog - Create a dialog button for difficult labelled Medium (150% handcap)
Set Variable Set mediumbutton = (Last created dialog Button)
Dialog - Create a dialog button for difficult labelled Hard (200% handcap)
Set Variable Set hardbutton = (Last created dialog Button)
Dialog - Show difficult for Player 1 (Red)
Easy
Events
Dialog - A dialog button is clicked for difficult
Conditions
(Clicked dialog button) Equal to easybutton
Actions
Player - Set Player 10 (Light Blue) handicap to 100.00 %
Game - Display to (All players) for 10.00 seconds the text: (Difficult was set to Easy by + (Name of Player 1 (Red)))
Medium
Events
Dialog - A dialog button is clicked for difficult
Conditions
(Clicked dialog button) Equal to mediumbutton
Actions
Player - Set Player 10 (Light Blue) handicap to 150.00 %
Game - Display to (All players) for 10.00 seconds the text: (Difficult was set to Medium by + (Name of Player 1 (Red)))
Hard
Events
Dialog - A dialog button is clicked for difficult
Conditions
(Clicked dialog button) Equal to hardbutton
Actions
Player - Set Player 10 (Light Blue) handicap to 200.00 %
Game - Display to (All players) for 10.00 seconds the text: (Difficult was set to Hard by + (Name of Player 1 (Red)))
Player 1
Events
Player - Player 1 (Red) leaves the game
Conditions
Actions
Game - Display to (All players) for 12.00 seconds the text: ((Name of (Triggering player)) + has left the game. Fuck him next time!)
Player 2
Events
Player - Player 2 (Blue) leaves the game
Conditions
Actions
Game - Display to (All players) for 12.00 seconds the text: ((Name of (Triggering player)) + has left the game. Fuck him next time!)
Player 3
Events
Player - Player 3 (Teal) leaves the game
Conditions
Actions
Game - Display to (All players) for 12.00 seconds the text: ((Name of (Triggering player)) + has left the game. Fuck him next time!)
Player 4
Events
Player - Player 4 (Purple) leaves the game
Conditions
Actions
Game - Display to (All players) for 12.00 seconds the text: ((Name of (Triggering player)) + has left the game. Fuck him next time!)
Player 5
Events
Player - Player 5 (Yellow) leaves the game
Conditions
Actions
Game - Display to (All players) for 12.00 seconds the text: ((Name of (Triggering player)) + has left the game. Fuck him next time!)
Player 6
Events
Player - Player 6 (Orange) leaves the game
Conditions
Actions
Game - Display to (All players) for 12.00 seconds the text: ((Name of (Triggering player)) + has left the game. Fuck him next time!)
Player 7
Events
Player - Player 7 (Green) leaves the game
Conditions
Actions
Game - Display to (All players) for 12.00 seconds the text: ((Name of (Triggering player)) + has left the game. Fuck him next time!)
Player 8
Events
Player - Player 8 (Pink) leaves the game
Conditions
Actions
Game - Display to (All players) for 12.00 seconds the text: ((Name of (Triggering player)) + has left the game. Fuck him next time!)
Bonus Gold
Events
Time - Every 300.00 seconds of game time
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: You got extra gold from the tower. |cffffcc00(+300)|r
Player Group - Pick every player in (All players) and do (Add 300 to (Picked player).Current gold)
Upgrade
Events
Time - Every 150.00 seconds of game time
Conditions
Actions
Set Variable Set Research = (Research + 1)
Player Group - Pick every player in (All players) and do (Set the current research level of Rhme (Unexpected type: 'techcode') to Research for (Picked player))
Game - Display to (All players) for 6.00 seconds the text: |cffffcc00Dwarves are stronger. Training units too.|r
Begin
Events
Map initialization
Conditions
Actions
Game - Turn the day/night cycle Off
Game - Display to (All players) for 20.00 seconds the text: Welcome to |cff32cd32Dwarfwars Hero Survival|rPlease choose your hero at the Tavern and move to the teleport.If you die you will revive in a few seconds.The objective of the game is to protect the tower for 20 minutes.|cffffcc00Good luck!|r
Player Group - Pick every player in (All players) and do (Set (Picked player).Current gold to 300)
Player Group - Pick every player in (All players) and do (Set (Picked player).Current lumber to 1)
Player Group - Pick every player in (All players) and do (Actions)
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.