A few useful triggers for hero wars:
Melee Initialization
Melee Initialization
-
Melee Initialization
-
Events
- Map initialization
- Conditions
-
Actions
- Game - Set the time of day to 24.00
- Game - Turn the day/night cycle Off
- Player Group - Pick every player in (All players) and do (Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across (Playable map area))
- Player Group - Pick every player in (All players controlled by a User player) and do (Player - Add 40 to (Picked player) Current gold)
- Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for (Picked player))
- Player - Turn Gives bounty On for Player 4 (Purple)
- Player - Turn Gives bounty On for Player 9 (Gray)
- Player - Turn Gives bounty On for Player 11 (Dark Green)
- Player - Turn Gives bounty On for Player 12 (Brown)
- For each (Integer A) from 1 to 10, do (Set Income[(Integer A)] = 20)
- Set End = 100
- Set END2 = 100
- Set END3 = 100
- Set END4 = 100
- Quest - Create a Required quest titled Changes and Updates with the description Changes: -Most hot..., using icon path ReplaceableTextures\WorldEditUI\StartingLocation.blp
- Quest - Create a Required quest titled Things to come with the description Things I want to in..., using icon path ReplaceableTextures\WorldEditUI\StartingLocation.blp
- Quest - Flash the quest dialog button
-
Events
-
RedSpawnIncome
-
Events
- Unit - A unit enters 1Make <gen>
-
Conditions
- ((Entering unit) is A structure) Equal to False
-
Actions
- Unit - Remove (Triggering unit) from the game
- If ((Unit-type of (Entering unit)) Equal to Skorpion) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Rogue) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Centaur Archer) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 4)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Spider Crab Behemoth) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 8)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Dark Troll Shadow Priest) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 12)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Draenei Protector) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 14)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Black Drake) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 22)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Skeletal Mage) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 37)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Poison Treant) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 50)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Eredar Diabolist) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 100)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Hous lv. 2) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 100)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Bloodfiend) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 80)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Forest Troll Shadow Priest) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 90)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Furbolg Shaman) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 100)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Wraith) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 150)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Sea Giant Hunter) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 200)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Brood Mother) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 250)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Gnoll Assassin) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 350)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Siege Golem) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 500)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Harpy Queen) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 600)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Ancient Hydra) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 700)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Hous lv. 3) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1000)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Infernal Juggernaut) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 800)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Kobold Geomancer) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1000)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Thunder Lizard) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1200)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Avatar) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1400)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Magnataur Reaver) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1500)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Dire Mammoth) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1600)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Mur'gul Blood-Gill) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1700)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Murloc Plaguebearer) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1800)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Nerubian Queen) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 1900)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Ogre Mauler) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2000)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Berserk Wildkin) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2100)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Giant Polar Bear) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2200)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Polar Furbolg Champion) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2300)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Razormane Medicine Man) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2400)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Lightning Revenant) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2400)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Beschworene Krabbe (Level 3)) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 2500)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Hous lv. 4) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 100000)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Tuskarr Sorcerer) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 10000)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Elder Voidwalker) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 15000)) else do (Do nothing)
- If ((Unit-type of (Entering unit)) Equal to Skeletal Marksman) then do (Set Income[(Player number of (Owner of (Entering unit)))] = (Income[(Player number of (Owner of (Entering unit)))] + 20000)) else do (Do nothing)
-
Events
-
RedSPawn2
-
Events
- Unit - A unit enters 1Make <gen>
-
Conditions
- ((Entering unit) is A structure) Equal to False
- team2 Equal to 1
-
Actions
- Unit - Create 1 (Unit-type of (Triggering unit)) for Player 4 (Purple) at (Random point in Spawn2 <gen>) facing Default building facing degrees
-
Events
-
Setup Board Copy
-
Events
- Time - Elapsed game time is 0.01 seconds
- Conditions
-
Actions
- Leaderboard - Create a leaderboard for (All players) titled Hero Line War
- Set theboard = (Last created leaderboard)
- Leaderboard - Add Player 4 (Purple) to theboard with label Team 1 Chances: and value End
- Leaderboard - Add Player 9 (Gray) to theboard with label Team 2 Chances: and value END2
- Leaderboard - Add Player 11 (Dark Green) to theboard with label Team 3 Chances: and value END3
- Leaderboard - Add Player 12 (Brown) to theboard with label Team 4 Chances: and value END4
-
Events