| 07-21-2003, 12:07 AM | #1 |
What would be the best way to do a Team Switch trigger for a Hero Arena? Mine works, but is kind of buggy, and would like to see if there is a better way of doing it. Thanks. |
| 07-21-2003, 02:46 AM | #2 |
Can you post what you are using? |
| 07-21-2003, 03:12 AM | #3 |
Ok, its kind of long though... Team Switch Events Player - Player 1 (Red) types a chat message containing -teamswitch as An exact match Player - Player 2 (Blue) types a chat message containing -teamswitch as An exact match Player - Player 3 (Teal) types a chat message containing -teamswitch as An exact match Player - Player 4 (Purple) types a chat message containing -teamswitch as An exact match Player - Player 5 (Yellow) types a chat message containing -teamswitch as An exact match Player - Player 6 (Orange) types a chat message containing -teamswitch as An exact match Player - Player 7 (Green) types a chat message containing -teamswitch as An exact match Player - Player 8 (Pink) types a chat message containing -teamswitch as An exact match Player - Player 9 (Gray) types a chat message containing -teamswitch as An exact match Player - Player 10 (Light Blue) types a chat message containing -teamswitch as An exact match Player - Player 11 (Dark Green) types a chat message containing -teamswitch as An exact match Player - Player 12 (Brown) types a chat message containing -teamswitch as An exact match Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Triggering player) is in Teams[1]) Equal to True Then - Actions Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of Base2 <gen>)) Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Camera - Pan camera for (Triggering player) to (Position of (Picked unit)) over 2.00 seconds) Player - Add ((((Triggering player) Current gold) / 2) x -1) to (Triggering player) Current gold Player Group - Add (Triggering player) to Teams[2] Player Group - Remove (Triggering player) from Teams[1] Set TeamScore[1] = (TeamScore[1] - PlayerScore[(Player number of (Triggering player))]) Set TeamScore[2] = (TeamScore[2] + PlayerScore[(Player number of (Triggering player))]) Game - Display to (All players) the text: ((Name of (Triggering player)) + has switched sides to |c00a3f50aTeam 2|r!) Leaderboard - Remove (Triggering player) from (Last created leaderboard) Leaderboard - Add (Triggering player) to (Last created leaderboard) with label (Name of (Triggering player)) and value PlayerScore[(Player number of (Triggering player))] Leaderboard - Change the color of the value for (Triggering player) in (Last created leaderboard) to (100.00%, 100.00%, 100.00%) with 0.00% transparency Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Triggering player) is in Teams[2]) Equal to True Then - Actions Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of Base1 <gen>)) Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Camera - Pan camera for (Triggering player) to (Position of (Picked unit)) over 2.00 seconds) Player - Add ((((Triggering player) Current gold) / 2) x -1) to (Triggering player) Current gold Player Group - Add (Triggering player) to Teams[1] Player Group - Remove (Triggering player) from Teams[2] Set TeamScore[2] = (TeamScore[2] - PlayerScore[(Player number of (Triggering player))]) Set TeamScore[1] = (TeamScore[1] + PlayerScore[(Player number of (Triggering player))]) Game - Display to (All players) the text: ((Name of (Triggering player)) + has switched sides to |c00ff0000Team 1|r!) Leaderboard - Remove (Triggering player) from (Last created leaderboard) Leaderboard - Add (Triggering player) to (Last created leaderboard) with label (Name of (Triggering player)) and value PlayerScore[(Player number of (Triggering player))] Leaderboard - Change the color of the value for (Triggering player) in (Last created leaderboard) to (100.00%, 100.00%, 100.00%) with 0.00% transparency Else - Actions Do nothing |
