Undead_Lives
New Member
Here's a couple triggers I came up with for AoS's for -allrandom mode.
This one for heroes that are on the map:
<div class='triggertop'>TRIGGER</div><div class='triggermain'>
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing -allrandom as An exact match
Conditions
Actions
Set PHero[1] = (Unit-type of (Random unit from (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))))
Set PHero[2] = (Unit-type of (Random unit from (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))))
Set PHero[3] = (Unit-type of (Random unit from (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))))
Unit - Create 1 PHero[1] for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 PHero[2] for Player 2 (Blue) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 PHero[3] for Player 3 (Teal) at (Center of (Playable map area)) facing Default building facing degrees
</div>
And this one for heroes not on the map.
<div class='triggertop'>TRIGGER</div><div class='triggermain'>
Untitled Trigger 002
Events
Player - Player 1 (Red) types a chat message containing -allrandom as An exact match
Conditions
Actions
Set PHero[1] = Paladin
Set PHero[2] = Archmage
Set PHero[3] = Mountain King
Unit - Create 1 PHero[(Random integer number between 1 and 3)] for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 PHero[(Random integer number between 1 and 3)] for Player 2 (Blue) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 PHero[(Random integer number between 1 and 3)] for Player 3 (Teal) at (Center of (Playable map area)) facing Default building facing degrees
</div>
For both triggers you need to modify the degrees, regions and the Array number, according to how many heroes you have.
Hope this helps some people.
This one for heroes that are on the map:
<div class='triggertop'>TRIGGER</div><div class='triggermain'>




























</div>
And this one for heroes not on the map.
<div class='triggertop'>TRIGGER</div><div class='triggermain'>



























</div>
For both triggers you need to modify the degrees, regions and the Array number, according to how many heroes you have.
Hope this helps some people.