- Joined
- Aug 28, 2005
- Messages
- 271
I have all random mode in my aos but it doesn't work. Here are my triggers:
-
setting hero types
-
Events
- Map initialization
- Conditions
-
Actions
- -------- Alliance Heroes --------
- Set hero_types[1] = Knight
- Set hero_types[2] = Grey Wolf
- Set hero_types[3] = Inquisitor
- Set hero_types[4] = Water Mage
- Set hero_types[5] = Forest Druid
- -------- Horde Heroes --------
- Set hero_types[6] = Forest Witch
- Set hero_types[7] = Herbalist
- Set hero_types[8] = Restless Ghost
- Set hero_types[9] = Fire Imp
- Set hero_types[10] = Macroscopic Amoeba
- -------- Other Sets --------
-
Events
-
all random
-
Events
- Dialog - A dialog button is clicked for Game_Mode
-
Conditions
- (Clicked dialog button) Equal to all_random
-
Actions
- Game - Display to (All players controlled by a User player) for 15.00 seconds the text: Game Mode set to |c...
- Set hero_choosers_mode_clear = (Units of type Hero chooser)
- Unit Group - Pick every unit in hero_choosers_mode_clear and do (Unit - Remove (Picked unit) from the game)
- Custom script: call DestroyGroup(udg_hero_choosers_mode_clear)
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Player((Integer A))) controller) Equal to User
- ((Player((Integer A))) slot status) Equal to Is playing
-
Then - Actions
- Set current_hero_number = (Random integer number between 1 and last_hero_number)
- If (((Player((Integer A))) is an ally of Player 1 (Red)) Equal to True) then do (Unit - Create 1 hero_types[current_hero_number] for (Player((Integer A))) at Good_revive facing Default building facing degrees) else do (Unit - Create 1 hero_types[current_hero_number] for (Player((Integer A))) at Bad_revive facing Default building facing degrees)
- Selection - Select (Last created unit) for (Owner of (Last created unit))
- Game - Display to (All players controlled by a User player) for 10.00 seconds the text: ((Name of (Player((Integer A)))) + ( has randomed + ( + (Name of (Last created unit)))))
- Set hero_types[current_hero_number] = hero_types[last_hero_number]
- Set last_hero_number = (last_hero_number - 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events