- Joined
- Nov 14, 2007
- Messages
- 155
I learned how to create a hero selection trigger via http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/hero-selection-systems-38699/
And i got this trigger:
I renamed Hero <gen> to Alliance <gen>
whenever i choose a hero it always go on the opposite team's base
+REP to those who can HELP
And i got this trigger:
-
Hero Selection
-
Events
- Unit - A unit Sells a unit
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Sold unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
- (Selling unit) Equal to Legend Tavern 0001 <gen>
-
Conditions
-
Conditions
-
And - All (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] Equal to True
-
Then - Actions
- Unit - Remove (Sold unit) from the game
- Game - Display to (All players) the text: (((Name of (Owner of (Sold unit))) + has chosen) + (Name of (Sold unit)))
-
Else - Actions
- Set HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] = True
- Unit - Move (Sold unit) instantly to (Center of Hero <gen>)
- Camera - Pan camera for (Owner of (Sold unit)) to (Center of Hero <gen>) over 0.00 seconds
- Selection - Clear selection for (Owner of (Sold unit))
- Selection - Select (Sold unit) for (Owner of (Sold unit))
- Selection - Add (Sold unit) to selection for (Owner of (Sold unit))
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
I renamed Hero <gen> to Alliance <gen>
-
Hero Selection Alliance
-
Events
- Unit - A unit Sells a unit
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Sold unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
- (Selling unit) Equal to Legend Tavern 0001 <gen>
-
And - All (Conditions) are true
-
Conditions
- (Owner of (Sold unit)) Equal to Player 2 (Blue)
- (Owner of (Sold unit)) Equal to Player 3 (Teal)
- (Owner of (Sold unit)) Equal to Player 4 (Purple)
- (Owner of (Sold unit)) Equal to Player 5 (Yellow)
- (Owner of (Sold unit)) Equal to Player 6 (Orange)
-
Conditions
-
Conditions
-
Conditions
-
And - All (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] Equal to True
-
And - All (Conditions) are true
-
Conditions
- (Owner of (Sold unit)) Equal to Player 2 (Blue)
- (Owner of (Sold unit)) Equal to Player 3 (Teal)
- (Owner of (Sold unit)) Equal to Player 4 (Purple)
- (Owner of (Sold unit)) Equal to Player 5 (Yellow)
- (Owner of (Sold unit)) Equal to Player 6 (Orange)
-
Conditions
-
Then - Actions
- Unit - Remove (Sold unit) from the game
- Game - Display to (All players) the text: (((Name of (Owner of (Sold unit))) + has chosen) + (Name of (Sold unit)))
-
Else - Actions
- Set HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] = True
- Unit - Move (Sold unit) instantly to (Center of Alliance <gen>)
- Camera - Pan camera for (Owner of (Sold unit)) to (Center of Alliance <gen>) over 0.00 seconds
- Selection - Clear selection for (Owner of (Sold unit))
- Selection - Select (Sold unit) for (Owner of (Sold unit))
- Selection - Add (Sold unit) to selection for (Owner of (Sold unit))
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Hero Selection Scourge
-
Events
- Unit - A unit Sells a unit
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Sold unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
- (Selling unit) Equal to Legend Tavern 0001 <gen>
-
And - All (Conditions) are true
-
Conditions
- (Owner of (Sold unit)) Equal to Player 8 (Pink)
- (Owner of (Sold unit)) Equal to Player 9 (Gray)
- (Owner of (Sold unit)) Equal to Player 10 (Light Blue)
- (Owner of (Sold unit)) Equal to Player 11 (Dark Green)
- (Owner of (Sold unit)) Equal to Player 12 (Brown)
-
Conditions
-
Conditions
-
Conditions
-
And - All (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] Equal to True
-
And - All (Conditions) are true
-
Conditions
- (Owner of (Sold unit)) Equal to Player 8 (Pink)
- (Owner of (Sold unit)) Equal to Player 9 (Gray)
- (Owner of (Sold unit)) Equal to Player 10 (Light Blue)
- (Owner of (Sold unit)) Equal to Player 11 (Dark Green)
- (Owner of (Sold unit)) Equal to Player 12 (Brown)
-
Conditions
-
Then - Actions
- Unit - Remove (Sold unit) from the game
- Game - Display to (All players) the text: (((Name of (Owner of (Sold unit))) + has chosen) + (Name of (Sold unit)))
-
Else - Actions
- Set HeroChosenByPlayer[(Player number of (Owner of (Sold unit)))] = True
- Unit - Move (Sold unit) instantly to (Center of Scourge <gen>)
- Camera - Pan camera for (Owner of (Sold unit)) to (Center of Scourge <gen>) over 0.00 seconds
- Selection - Clear selection for (Owner of (Sold unit))
- Selection - Select (Sold unit) for (Owner of (Sold unit))
- Selection - Add (Sold unit) to selection for (Owner of (Sold unit))
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
whenever i choose a hero it always go on the opposite team's base
+REP to those who can HELP