- Joined
- Apr 7, 2007
- Messages
- 48
Okay so in this map, I have multiple selectable game modes. One of them is Team Deathmatch and I have a small problem. For each team only 1 hero spawns correctly and all of the other players do not ally correctly or spawn at all. Heros are selected randomly, (I'm sure that works because other modes use it) and so here is the trigger that has failed me:
-
TDM Start
-
Events
-
Conditions
-
Actions
-
Set tmp_stock = 1
-
Game - Display to (All players) for 20.00 seconds the text: |CFFFF0000Get ready...
-
Set tmp_teamplayers = Players
-
For each (Integer A) from 1 to (Number of players in tmp_teamplayers), do (Actions)
-
Loop - Actions
-
Set tmp_player = (Random player from tmp_teamplayers)
-
Player Group - Add tmp_player to RedTeam
-
Player Group - Remove tmp_player from tmp_teamplayers
-
Set tmp_player = (Random player from tmp_teamplayers)
-
Player Group - Add tmp_player to BlueTeam
-
Player Group - Remove tmp_player from tmp_teamplayers
-
-
-
Set tmp_spawn = (Center of Red Team Spawn <gen>)
-
Player Group - Pick every player in RedTeam and do (Actions)
-
Loop - Actions
-
Set tmp_player = (Picked player)
-
Player Group - Pick every player in RedTeam and do (Actions)
-
Loop - Actions
-
Player - Make tmp_player treat (Picked player) as an Ally with shared vision
-
-
-
Player Group - Pick every player in BlueTeam and do (Actions)
-
Loop - Actions
-
Player - Make tmp_player treat (Picked player) as an Enemy
-
-
-
Set tmp_rand = (Random integer number between 0 and 9)
-
Unit - Create 1 Heros[tmp_rand] for (Picked player) at tmp_spawn facing Default building facing degrees
-
Set tmp_hero = (Last created unit)
-
Hero - Create |CFFFF8A00Stock|r and give it to tmp_hero
-
Item - Set charges remaining in (Last created item) to tmp_stock
-
Unit - Change color of tmp_hero to Red
-
Camera - Pan camera for (Picked player) to tmp_spawn over 0.00 seconds
-
-
-
Set tmp_spawn = (Center of Blue Team Spawn <gen>)
-
Player Group - Pick every player in BlueTeam and do (Actions)
-
Loop - Actions
-
Set tmp_player = (Picked player)
-
Player Group - Pick every player in BlueTeam and do (Actions)
-
Loop - Actions
-
Player - Make tmp_player treat (Picked player) as an Ally with shared vision
-
-
-
Player Group - Pick every player in RedTeam and do (Actions)
-
Loop - Actions
-
Player - Make tmp_player treat (Picked player) as an Enemy
-
-
-
Set tmp_rand = (Random integer number between 0 and 9)
-
Unit - Create 1 Heros[tmp_rand] for (Picked player) at tmp_spawn facing Default building facing degrees
-
Set tmp_hero = (Last created unit)
-
Hero - Create |CFFFF8A00Stock|r and give it to tmp_hero
-
Item - Set charges remaining in (Last created item) to tmp_stock
-
Unit - Change color of tmp_hero to Blue
-
Camera - Pan camera for (Picked player) to tmp_spawn over 0.00 seconds
-
-
-
Trigger - Turn on XP Ticker <gen>
-
Trigger - Turn on TDM Death <gen>
-
Trigger - Turn on TDM Leaver <gen>
-
Trigger - Turn on Creep Spawn <gen>
-
Custom script: call RemoveLocation(udg_tmp_spawn)
-
-