| 08-20-2004, 06:53 PM | #1 |
How do you make the game sense if a player is in the game or not. And if the player is there to make a unit for that player, set the players bnet name to a variable so that it can be used later when the player leaves, or that all the players units (the players that are in the game) are all in the same Region? Sorry for the big noob question I was just curious, and I'd like to use it for a map I' am working on. |
| 08-21-2004, 06:03 PM | #2 |
Use Player Slot Status comparrison to find if the Player is playing, or it is unused or has left the game, for the units, Use Unit - create units facing angle, for the player name, make a string variable, the use set variable action to set it into the name of that player. |
| 08-22-2004, 05:45 AM | #3 |
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player 1 (Red) slot status) Equal to Is playing) and ((Player 1 (Red) controller) Equal to User)
Then - Actions
Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Else - ActionsFor the player leaves message you dont need a string variable. Just do: Code:
Melee Initialization
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Player - Player 12 (Brown) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the game)Hope this helps, . |
| 08-23-2004, 02:12 AM | #4 |
Wow thanks a lot |
