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
Blademaster Dules.w3x
Variables
Initialization
Melee Initialization
Transporter
Kills Disabler Copy
Kills Maker Copy
Timer Starter Copy Copy
Gold giving Copy
Aurur Win Copy
DeathEater Win Copy
Killing
Untitled Trigger 001
Items
Armor Copy
Ability Helpers
Chopper
Blade Leap
Crash Landing
Berzerk Warning
Pigs
Meat
Cooking
Digging
Repig
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
Edeath
integer
No
Tempinteger
integer
No
Temppoint
location
No
UberChop
location
No
Wdeath
integer
No
Winscore
integer
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Unit Group - Pick every unit in (Units in East_Miners <gen>) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack . Rock 0066 <gen>
Unit Group - Pick every unit in (Units in West_miners <gen>) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack . Rock 0020 <gen>
Player - Set Player 1 (Red) . Current gold to 20
Player - Set Player 2 (Blue) . Current gold to 20
Player - Set Player 3 (Teal) . Current gold to 20
Player - Set Player 4 (Purple) . Current gold to 20
Player - Set Player 5 (Yellow) . Current gold to 20
Player - Set Player 7 (Green) . Current gold to 20
Player - Set Player 8 (Pink) . Current gold to 20
Player - Set Player 9 (Gray) . Current gold to 20
Player - Set Player 10 (Light Blue) . Current gold to 20
Player - Set Player 11 (Dark Green) . Current gold to 20
Player - Turn Gives bounty On for Player 1 (Red)
Player - Turn Gives bounty On for Player 2 (Blue)
Player - Turn Gives bounty On for Player 3 (Teal)
Player - Turn Gives bounty On for Player 4 (Purple)
Player - Turn Gives bounty On for Player 5 (Yellow)
Player - Turn Gives bounty On for Player 7 (Green)
Player - Turn Gives bounty On for Player 8 (Pink)
Player - Turn Gives bounty On for Player 9 (Gray)
Player - Turn Gives bounty On for Player 10 (Light Blue)
Player - Turn Gives bounty On for Player 11 (Dark Green)
Set Variable Set Temppoint = (Center of Pig_Charge_Point <gen>)
Unit - Order Pig Den 0021 <gen> to Set Rally Point To . Temppoint
Custom script: call RemoveLocation(udg_Temppoint)
Kills Disabler Copy
Events
Time - Elapsed game time is 15.00 seconds
Conditions
Actions
Trigger - Turn off Kills_Maker_Copy <gen>
Game - Display to (All players) the text: Player 1 has nor chosen a kill requirement, so it will be set to the defalt value of 60.
Set Variable Set Winscore = "60"
Kills Maker Copy
Events
Player - Player 1 (Red) types a chat message containing -20kills (Unexpected type: 'stringnoformat') as An exact match
Player - Player 1 (Red) types a chat message containing -40kills (Unexpected type: 'stringnoformat') as An exact match
Player - Player 1 (Red) types a chat message containing -60kills (Unexpected type: 'stringnoformat') as An exact match
Player - Player 1 (Red) types a chat message containing -80kills (Unexpected type: 'stringnoformat') as An exact match
Player - Player 1 (Red) types a chat message containing -100kills (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -20kills
Then - Actions
Set Variable Set Winscore = "20"
Game - Display to (All players) the text: The kills requirement is 20.
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -40kills
Then - Actions
Set Variable Set Winscore = "40"
Game - Display to (All players) the text: The kills requirement is 40.
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -60kills
Then - Actions
Set Variable Set Winscore = "60"
Game - Display to (All players) the text: The kills requirement is 60.
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -80kills
Then - Actions
Set Variable Set Winscore = "80"
Game - Display to (All players) the text: The kills requirement is 80.
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to -100kills
Then - Actions
Set Variable Set Winscore = "100"
Game - Display to (All players) the text: The kills requirement is 100.
Else - Actions
Do nothing
Trigger - Turn off (This trigger)
Trigger - Turn off Kills_Disabler_Copy <gen>
Timer Starter Copy Copy
Events
Time - Elapsed game time is 15.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled (Kills ( + ((String(Winscore)) + needed to win!)))
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label West and value 0
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label East and value 0
Gold giving Copy
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Dying unit)) Equal to Blademaster
(Unit-type of (Dying unit)) Equal to Blademaster (Leaping)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Dying unit)) Current gold) Greater than or equal to 1
Then - Actions
Player - Set (Owner of (Dying unit)) . Current gold to (((Owner of (Dying unit)) Current gold) - 1)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Dying unit)) Equal to Player 1 (Red)
(Owner of (Dying unit)) Equal to Player 2 (Blue)
(Owner of (Dying unit)) Equal to Player 3 (Teal)
(Owner of (Dying unit)) Equal to Player 4 (Purple)
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
Then - Actions
Set Variable Set Wdeath = (Wdeath + 1)
Leaderboard - Change the value for Player 7 (Green) in (Last created leaderboard) to Wdeath
Else - Actions
Set Variable Set Edeath = (Edeath + 1)
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Edeath
Trigger - Run Aurur_Win_Copy <gen> (checking conditions)
Trigger - Run DeathEater_Win_Copy <gen> (checking conditions)
Aurur Win Copy
Events
Conditions
Edeath Equal to Winscore
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Defeat Player 7 (Green) with the message: Defeat!
DeathEater Win Copy
Events
Conditions
Wdeath Equal to Winscore
Actions
Game - Victory Player 7 (Green) ( Show dialogs, Show scores)
Game - Defeat Player 1 (Red) with the message: Defeat!
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
((Owner of (Dying unit)) Current gold) Greater than 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Dying unit)) Current gold) Greater than 5
Then - Actions
Player - Set (Owner of (Dying unit)) . Current gold to (((Owner of (Dying unit)) Current gold) - 5)
Else - Actions
Player - Set (Owner of (Dying unit)) . Current gold to 0
Armor Copy
Events
Unit - A unit Acquires an item
Conditions
Actions
Set Variable Set Tempinteger = "0"
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If ((Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Permanent) then do (Set VariableSet Tempinteger = (Tempinteger + 1)) else do (Do nothing)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Tempinteger Greater than or equal to 2
Then - Actions
Set Variable Set Temppoint = (Position of (Hero manipulating item))
Unit - Order (Hero manipulating item) to drop (Item being manipulated) at Temppoint
Game - Display to (All allies of (Owner of (Hero manipulating item)).) the text: I canna swing me blade in all that awma!
Custom script: call RemoveLocation(udg_Temppoint)
Else - Actions
Do nothing
Chopper
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Chop
Actions
Unit - Add Invulnerable (Neutral) to (Casting unit)
Set Variable Set Temppoint = (Target point of ability being cast)
Unit - Cause (Casting unit) to damage circular area after 0.16 seconds of radius 50.00 at Temppoint , dealing (53.33 + (6.67 x (Real((Level of Chop for (Casting unit)))))) damage of attack type Normal and damage type Normal
Custom script: call RemoveLocation(udg_Temppoint)
Wait 0.40 seconds
Unit - Remove Invulnerable (Neutral) from (Casting unit)
Blade Leap
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Blade Leap
Actions
Set Variable Set Temppoint = (Target point of ability being cast)
Set Variable Set UberChop = (Temppoint offset by 120.00 towards (Facing of (Casting unit)) degrees.)
Unit - Cause (Casting unit) to damage circular area after 0.33 seconds of radius 75.00 at UberChop , dealing (100.00 + (10.00 x (Real((Level of Blade Leap for (Casting unit)))))) damage of attack type Normal and damage type Normal
Custom script: call RemoveLocation(udg_Temppoint)
Custom script: call RemoveLocation(udg_UberChop)
Crash Landing
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flying Leap
Actions
Unit - Add Trample to (Casting unit)
Wait (1.20 + (0.10 x (Real((Level of (Ability being cast) for (Casting unit)))))) seconds
Animation - Change (Casting unit) flying height to 0.00 at 90.00
Unit - Remove Trample from (Casting unit)
Berzerk Warning
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Berzerker Fury
Actions
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of (Casting unit) using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
Meat
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Dying unit)) Equal to Passive Pig
(Unit-type of (Dying unit)) Equal to Violent Pig
Actions
Set Variable Set Temppoint = (Position of (Dying unit))
Item - Create Raw Pork at Temppoint
Custom script: call RemoveLocation(udg_Temppoint)
Cooking
Events
Unit - A unit Acquires an item
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Hero manipulating item)) Equal to Fire
(Item-type of (Item being manipulated)) Equal to Raw Pork
Actions
Set Variable Set Temppoint = (Position of (Hero manipulating item))
Item - Create Pork at Temppoint
Item - Remove (Item being manipulated)
Custom script: call RemoveLocation(udg_Temppoint)
Digging
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to Root
Actions
Unit - Kill (Trained unit)
Set Variable Set Temppoint = (Position of (Trained unit))
Item - Create Root at Temppoint
Custom script: call RemoveLocation(udg_Temppoint)
Repig
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Dying unit)) Equal to Passive Pig
(Unit-type of (Dying unit)) Equal to Violent Pig
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Passive Pig
Then - Actions
Unit - Order Pig Den 0021 <gen> to train/upgrade to a Passive Pig
Else - Actions
Unit - Order Pig Den 0021 <gen> to train/upgrade to a Violent Pig
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.