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
MY HERO ARENA v2.5.w3x
Variables
Initialization
Melee Initialization
start text
Start Camera
random creep make
Creep lvl up
Gold
Gold random
make hero
make hero 2
make hero 3
make hero 4
make hero 5
make hero 6
make hero 7
make hero 8
make hero 9
creeps
Leave base 1
Leave base 2
bases
bases 2
revive
When hero dies
End game force 1
End game force 2
How many kills Team Red
How many kills Team Red Copy
How many kills Team Red Copy 2
How many kills Team Blue
How many kills Team Blue Copy
How many kills Team Blue Copy 2
tely into boss
tely into boss 2
tely out of boss 1
tely out of boss 2
Gold loss when dieing
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
Killcounter
integer
Yes
0
Level_creep_up_corner
integer
No
0
Level_creep_up_random
integer
No
0
Default melee game initialization for all players
Melee Initialization
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Visibility - Disable black mask
Visibility - Disable fog of war
Player - Set Player 1 (Red) . Current gold to 750
Player - Set Player 2 (Blue) . Current gold to 750
Player - Set Player 3 (Teal) . Current gold to 750
Player - Set Player 4 (Purple) . Current gold to 750
Player - Set Player 5 (Yellow) . Current gold to 750
Player - Set Player 6 (Orange) . Current gold to 750
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Run melee AI scripts (for computer players)
Set Variable Set Level_creep_up_corner = "1"
Set Variable Set Level_creep_up_random = "2"
start text
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Game - Display to (All players) for 30 seconds the text: To win this game you must kill your oposing teams farm which is located right in front of their base. Oh yea and creeps level up in 10 minutes.
Start Camera
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Camera - Pan camera for Player 1 (Red) to (Center of start_camera_position <gen>) over 0 seconds
Camera - Pan camera for Player 2 (Blue) to (Center of start_camera_position <gen>) over 0 seconds
Camera - Pan camera for Player 3 (Teal) to (Center of start_camera_position <gen>) over 0 seconds
Camera - Pan camera for Player 4 (Purple) to (Center of start_camera_position <gen>) over 0 seconds
Camera - Pan camera for Player 5 (Yellow) to (Center of start_camera_position <gen>) over 0 seconds
Camera - Pan camera for Player 6 (Orange) to (Center of start_camera_position <gen>) over 0 seconds
random creep make
Events
Time - Every 25.00 seconds of game time
Conditions
Actions
Unit - Create 1 . (Random level Level_creep_up_corner creep unit-type) for Neutral Hostile at (Center of Region_006 <gen>) facing Default building facing degrees
Unit - Create 1 . (Random level Level_creep_up_corner creep unit-type) for Neutral Hostile at (Center of Region_005 <gen>) facing Default building facing degrees
Creep lvl up
Events
Time - Elapsed game time is 600.00 seconds
Conditions
Actions
Game - Display to (All players) the text: The Creep level has just gone up.You should prepair yourself for theseSTRONGER CREEPS.
Set Variable Set Level_creep_up_corner = "2"
Set Variable Set Level_creep_up_random = "5"
Trigger - Turn off (This trigger)
Default melee game initialization for all players
Gold
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Player - Add 50 to Player 2 (Blue) . Current gold
Player - Add 50 to Player 4 (Purple) . Current gold
Player - Add 50 to Player 3 (Teal) . Current gold
Player - Add 50 to Player 5 (Yellow) . Current gold
Player - Add 50 to Player 6 (Orange) . Current gold
Player - Add 50 to Player 1 (Red) . Current gold
Gold random
Events
Time - Every 120.00 seconds of game time
Conditions
Actions
Item - Create Gold Coins at (Random point in Region_017 <gen>)
make hero
Events
Unit - A unit enters Region_003 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 . Mountain King for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing Default building facing degrees
make hero 2
Events
Unit - A unit enters Region_000 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 . Punc Che Mout for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing Default building facing degrees
make hero 3
Events
Unit - A unit enters Region_002 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 . Demon Hunter for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing Default building facing degrees
make hero 4
Events
Unit - A unit enters Region_001 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 . Sla Pemsi Lly for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing Default building facing degrees
make hero 5
Events
Unit - A unit enters Region_019 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 Blademaster for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing (Position of (Triggering unit))
make hero 6
Events
Unit - A unit enters Region_020 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 Dreadlord for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing (Position of (Triggering unit))
make hero 7
Events
Unit - A unit enters Region_021 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 Firelord for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing (Position of (Triggering unit))
make hero 8
Events
Unit - A unit enters Region_022 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 Brewmaster for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing (Position of (Triggering unit))
make hero 9
Events
Unit - A unit enters Region_031 <gen>
Conditions
Actions
Unit - Kill (Triggering unit)
Unit - Create 1 Demon Hunter (Evil) for (Owner of (Triggering unit)) at (Center of Region_004 <gen>) facing (Position of (Triggering unit))
creeps
Events
Time - Every 25.00 seconds of game time
Conditions
Actions
Unit - Create 1 . (Random level Level_creep_up_random creep unit-type) for Neutral Hostile at (Random point in Region_017 <gen>) facing Default building facing degrees
Leave base 1
Events
Unit - A unit enters Region_011 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
(Owner of (Triggering unit)) Equal to Player 4 (Purple)
Actions
Unit - Move (Triggering unit) instantly to (Center of Region_012 <gen>)
Leave base 2
Events
Unit - A unit enters Region_013 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
(Owner of (Triggering unit)) Equal to Player 5 (Yellow)
(Owner of (Triggering unit)) Equal to Player 6 (Orange)
Actions
Unit - Move (Triggering unit) instantly to (Center of Region_014 <gen>)
bases
Events
Unit - A unit enters Region_007 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Owner of (Triggering unit)) Equal to Player 4 (Purple)
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
Actions
Unit - Move (Triggering unit) instantly to (Center of Region_010 <gen>)
bases 2
Events
Unit - A unit enters Region_008 <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
(Owner of (Triggering unit)) Equal to Player 5 (Yellow)
(Owner of (Triggering unit)) Equal to Player 6 (Orange)
Actions
Unit - Move (Triggering unit) instantly to (Center of Region_009 <gen>)
revive
Events
Unit - A unit Dies
Conditions
Actions
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 2 (Blue)
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
(Owner of (Dying unit)) Equal to Player 6 (Orange)
Then - Actions
Wait 10.00 seconds
Hero - Instantly revive (Dying unit) at (Center of revive_blue <gen>) , Hide revival graphics
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 4 (Purple)
(Owner of (Dying unit)) Equal to Player 1 (Red)
(Owner of (Dying unit)) Equal to Player 3 (Teal)
Then - Actions
Wait 10.00 seconds
Hero - Instantly revive (Dying unit) at (Center of revive_red <gen>) , Hide revival graphics
Else - Actions
Do nothing
When hero dies
Events
Unit - A unit Dies
Conditions
Actions
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 2 (Blue)
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
(Owner of (Dying unit)) Equal to Player 6 (Orange)
Then - Actions
Set Variable Set Killcounter[2] = (Killcounter[2] + 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 3 (Teal)
(Owner of (Dying unit)) Equal to Player 4 (Purple)
Then - Actions
Set Variable Set Killcounter[1] = (Killcounter[1] + 1)
Else - Actions
Do nothing
End game force 1
Events
Conditions
Killcounter[1] Equal to 30
Actions
Game - Defeat Player 2 (Blue) with the message: Defeat!
Game - Defeat Player 6 (Orange) with the message: Defeat!
Game - Defeat Player 5 (Yellow) with the message: Defeat!
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Game - Victory Player 4 (Purple) ( Show dialogs, Show scores)
End game force 2
Events
Conditions
Killcounter[2] Equal to 30
Actions
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Victory Player 5 (Yellow) ( Show dialogs, Show scores)
Game - Victory Player 6 (Orange) ( Show dialogs, Show scores)
Game - Defeat Player 1 (Red) with the message: Defeat!
Game - Defeat Player 3 (Teal) with the message: Defeat!
Game - Defeat Player 4 (Purple) with the message: Defeat!
How many kills Team Red
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Game - Display to Player Group - Player 1 (Red) the text: (String(Killcounter[1]))
How many kills Team Red Copy
Events
Player - Player 4 (Purple) skips a cinematic sequence
Conditions
Actions
Game - Display to Player Group - Player 4 (Purple) the text: (String(Killcounter[1]))
How many kills Team Red Copy 2
Events
Player - Player 3 (Teal) skips a cinematic sequence
Conditions
Actions
Game - Display to Player Group - Player 3 (Teal) the text: (String(Killcounter[1]))
How many kills Team Blue
Events
Player - Player 2 (Blue) skips a cinematic sequence
Conditions
Actions
Game - Display to Player Group - Player 2 (Blue) the text: (String(Killcounter[2]))
How many kills Team Blue Copy
Events
Player - Player 5 (Yellow) skips a cinematic sequence
Conditions
Actions
Game - Display to Player Group - Player 5 (Yellow) the text: (String(Killcounter[2]))
How many kills Team Blue Copy 2
Events
Player - Player 5 (Yellow) skips a cinematic sequence
Conditions
Actions
Game - Display to Player Group - Player 6 (Orange) the text: (String(Killcounter[2]))
tely into boss
Events
Unit - A unit enters Region_023 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Region_026 <gen>)
tely into boss 2
Events
Unit - A unit enters Region_024 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Region_025 <gen>)
tely out of boss 1
Events
Unit - A unit enters Region_027 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Region_028 <gen>)
tely out of boss 2
Events
Unit - A unit enters Region_029 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Region_030 <gen>)
Gold loss when dieing
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Player - Add -50 to (Owner of (Dying unit)) . Current gold
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.