- Joined
- Sep 29, 2012
- Messages
- 37
-
Tavern Hero Chosen
-
Events
- Unit - A unit Sells a unit
-
Conditions
- ((Sold unit) is A Hero) Equal to True
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Set Herochosenbyplayer[(Player number of (Picked player))] = True
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in (Units owned by (Owner of (Sold unit)) matching (((Triggering unit) is A Hero) Equal to True))) Equal to 1
-
Then - Actions
- Unit - Remove (Sold unit) from the game
- Game - Display to (All players) the text: You already chose a...
-
Else - Actions
- Game - Display to (All players) the text: ((Name of (Owner of (Sold unit))) + ( has selected + (Name of (Sold unit))))
- Unit - Remove (Buying unit) from the game
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
- Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
-
Loop - Actions
-
If - Conditions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Events
-
Tavern Hero Repick
-
Events
- Player - Player 2 (Blue) types a chat message containing -repick as An exact match
- Player - Player 3 (Teal) types a chat message containing -repick as An exact match
- Player - Player 4 (Purple) types a chat message containing -repick as An exact match
- Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
- Player - Player 6 (Orange) types a chat message containing -repick as An exact match
- Player - Player 8 (Pink) types a chat message containing -repick as An exact match
- Player - Player 9 (Gray) types a chat message containing -repick as An exact match
- Player - Player 10 (Light Blue) types a chat message containing -repick as An exact match
- Player - Player 11 (Dark Green) types a chat message containing -repick as An exact match
- Player - Player 12 (Brown) types a chat message containing -repick as An exact match
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- Herochosenbyplayer[(Player number of (Triggering player))] Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Set TempUnitGroup = (Units owned by (Triggering player))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is A Hero) Equal to True))) Equal to 1
-
Then - Actions
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
-
Loop - Actions
- Unit - Remove (Picked unit) from the game
-
Loop - Actions
-
Player Group - Pick every player in (Player group((Triggering player))) and do (Actions)
-
Loop - Actions
- Unit - Create 1 Lost Soul for (Triggering player) at (Random point in Tarven <gen>) facing Default building facing degrees
- Custom script: call DestroyGroup(udg_TempUnitGroup)
- Game - Display to (All players) the text: ((Name of (Triggering player)) + has repicked a hero!)
- Set Herochosenbyplayer[(Player number of (Triggering player))] = False
- Selection - Clear selection for (Triggering player)
- Selection - Add Tavern 0018 <gen> to selection for (Triggering player)
- Camera - Pan camera for (Triggering player) to (Center of Tarven <gen>) over 0.00 seconds
- Set PlayerRepicked[(Player number of (Triggering player))] = False
-
Loop - Actions
-
Unit Group - Pick every unit in TempUnitGroup and do (Actions)
- Else - Actions
-
If - Conditions
-
Events
-
Tavern Hero Random
-
Events
- Player - Player 2 (Blue) types a chat message containing -random as An exact match
- Player - Player 3 (Teal) types a chat message containing -random as An exact match
- Player - Player 4 (Purple) types a chat message containing -random as An exact match
- Player - Player 5 (Yellow) types a chat message containing -random as An exact match
- Player - Player 6 (Orange) types a chat message containing -random as An exact match
- Player - Player 8 (Pink) types a chat message containing -random as An exact match
- Player - Player 9 (Gray) types a chat message containing -random as An exact match
- Player - Player 10 (Light Blue) types a chat message containing -random as An exact match
- Player - Player 11 (Dark Green) types a chat message containing -random as An exact match
- Player - Player 12 (Brown) types a chat message containing -random as An exact match
- Conditions
-
Actions
- Set MaxHero = 8
-
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Lost Soul) and do (Actions)
-
Loop - Actions
- Unit - Remove (Picked unit) from the game
-
Loop - Actions
- If ((Number of units in (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is A Hero) Equal to True))) Equal to 0) then do (Unit - Create 1 Tavern1Heroes[(Random integer number between 1 and MaxHero)] for (Triggering player) at (Center of Tarven <gen>) facing Default building facing degrees) else do (Do nothing)
-
Events
After i choose a hero i cant repick and i still can choose another hero by typing -random.