My current map is a Race Wars game. I have it operational at the moment, it's an 8 player map and when everyone is force random for race. The game starts and force allies all members of the same race. However I'm trying to figure out how to code it so that way no one race can be greater than the other two combined.
So at the moment, I can get it to do the following.
Player Group - Pick each player in (All players) and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Race of player (Picked player)) == Protoss
Then
Variable - Modify Toss: + 1
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Race of player (Picked player)) == Terran
Then
Variable - Modify Terran: + 1
Else
Variable - Modify Zerg: + 1
It's not pretty, but it counts up all the races. However now my issue is, how would I go about changing one player from the race that is > the other two combined, to one of the other two races. and better yet, any way to keep it random which race he gets switched to.
I'm afraid you cant change a player's race by trigger. Race are data field determined in the lobby part and carried into the game. They only workaround is to fake each race's interface as well as unit that will be spawned
Like he said, it's impossible to change player race. You could just swap out the command building (nexus, CC, or hatchery) and works for the correct race. But the interface (I think) will not be able to be changed.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
My current map is a Race Wars game. I have it operational at the moment, it's an 8 player map and when everyone is force random for race. The game starts and force allies all members of the same race. However I'm trying to figure out how to code it so that way no one race can be greater than the other two combined.
So at the moment, I can get it to do the following.
Player Group - Pick each player in (All players) and do (Actions) Actions General - If (Conditions) then do (Actions) else do (Actions) If (Race of player (Picked player)) == Protoss Then Variable - Modify Toss: + 1 Else General - If (Conditions) then do (Actions) else do (Actions) If (Race of player (Picked player)) == Terran Then Variable - Modify Terran: + 1 Else Variable - Modify Zerg: + 1
It's not pretty, but it counts up all the races. However now my issue is, how would I go about changing one player from the race that is > the other two combined, to one of the other two races. and better yet, any way to keep it random which race he gets switched to.
Any help would be greatly appreciated. TY
I'm afraid you cant change a player's race by trigger. Race are data field determined in the lobby part and carried into the game. They only workaround is to fake each race's interface as well as unit that will be spawned
@progammer: Go
Like he said, it's impossible to change player race. You could just swap out the command building (nexus, CC, or hatchery) and works for the correct race. But the interface (I think) will not be able to be changed.