Events
Player - Player 1 (Red) types a chat message containing -ar as An exact match
Conditions
Actions
Trigger - Turn off Random Command
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Set Random_Hero = (Random integer number between 1 and Random_Count)
Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
Selection - Select (Last created unit) for (Owner of (Last created unit))
Game - Display to (All players) the text: (A player has randomed + (Name of (Last created unit)))
Player - Add -425 to (Player((Integer A))) Current gold
Set Random_Data[Random_Hero] = Random_Count
Set Random_Count = (Random_Count - 1)
Else - Actions
Do nothing