- 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>
-
-
-
-
-
-
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))
-
-
-
-
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)
-
-
-
-
-
-
-
-
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)
-
-
-
-
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))
-
-
-
-
-
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)
-
-
-
-
-
-
-
-
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)
-
-
-
-
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))
-
-
-
-
whenever i choose a hero it always go on the opposite team's base
+REP to those who can HELP