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
Gnist (Hero Arena) Beta (1.0.4).w3x
Variables
Initialization
Initialization
Hero Pick
Hero Dies
Income
Safe Zone In
Safe Zone Out
Tip
Victory
LeaderBoard
Create LeaderBoard
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
Income
integer
Yes
50
Kills
integer
Yes
Pick
unit
Yes
Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Set (Picked player) . Current lumber to 1
Unit - Create 1 . Peasant for (Picked player) at ((Picked player) start location) facing Default building facing degrees
Set Variable Set Pick[(Player number of (Picked player))] = (Last created unit)
Visibility - Disable fog of war
Visibility - Disable black mask
Hero Pick
Events
Unit - A unit enters Region_000 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Special Effect - Create a special effect at (Position of Pick[(Player number of (Owner of (Entering unit)))]) using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
Unit - Remove Pick[(Player number of (Owner of (Entering unit)))] from the game
Hero Dies
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Set Variable Set Income[(Player number of (Owner of (Dying unit)))] = (Income[(Player number of (Owner of (Dying unit)))] - 5)
Set Variable Set Income[(Player number of (Owner of (Killing unit)))] = (Income[(Player number of (Owner of (Killing unit)))] + 10)
Set Variable Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
Wait 3.00 seconds
Camera - Pan camera for (Owner of (Dying unit)) to (Center of Region_000 <gen>) over 1.00 seconds
Hero - Instantly revive (Dying unit) at (Center of Region_000 <gen>) , Show revival graphics
Income
Events
Time - Every 30.00 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (Income[(Player number of (Picked player))] Greater than or equal to 50) then do (If (Income[(Player number of (Picked player))] Less than or equal to 500) then do (Add Income[(Player number of (Picked player))] to (Picked player).Current gold) else do (Add 500 to (Picked player).Current gold)) else do (Add 50 to (Picked player).Current gold)
Game - Display to (All allies of (Picked player).) the text: (|c00ABBA01Your income is + ((String(Income[(Player number of (Picked player))])) + .|r))
Safe Zone In
Events
Unit - A unit enters Region_000 <gen>
Conditions
Actions
Unit - Make (Entering unit) Invulnerable
Safe Zone Out
Events
Unit - A unit leaves Region_000 <gen>
Conditions
Actions
Unit - Make (Leaving unit) Vulnerable
Tip
Events
Time - Elapsed game time is 25.00 seconds
Conditions
Actions
Game - Display to (All players) the text: |c00ABBA50Concerning Income,|r|c00ABBA99Remember that if your income shows a number lower than 50 you will still get 50 gold per 30 seconds. And if it shows more than 500 you will only get 500 gold per second. The good thing about it is that if your income is above 500 it will take more deaths to reach below the maximum limit, on the other hand if it is under 50 it will take longer for you to increase your income again.|r
Victory
Events
Unit - A unit Dies
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (Kills[(Player number of (Picked player))] Greater than or equal to 100) then do (Victory (Owner of (Killing unit)) (Show dialogs, Show scores)) else do (Do nothing)
LeaderBoard
Events
Unit - A unit Dies
Conditions
Actions
Player Group - Pick every player in (All players) and do (Change the value for (Picked player) in (Last created leaderboard) to Kills[(Player number of (Picked player))])
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Create LeaderBoard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Scores
Player Group - Pick every player in (All players) and do (Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0)
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.