I will have a map where there will be a total of 6 player. Each player should have the option to choose a race, zerg, protos or terran.
Depending on what race each player have choose they will get two different production building that can make all units and upgrades for the selected race.
I'm fairly new to this whole triggering thing and don't really understand the whole system yet so i really need some help :)
Now how do i spawn the correct building for each player depending on what they take for race??
i was trying to do this also, the only thing i could find to do was to keep the starting trigger for "create starting units and structures for all players"
Then i made another trigger to kill the workers because i did not want them.
Note: to get a building to spawn in a certain spot using the original trigger, you must go to the Points tab and set a starting location. Then, under Player Properties, set player 1 to spawn at starting location 1 and so on..
I took your map and learned from it and made this map instead. It simply check what race the player has and build the correct building to it (added a computer player to make sure it works). However, is there a smarter and allot shorter way to do this? Feels like there have to be a shorter way to this then "if player 1 is is zerg then, if player 1 is is terran then, if player 1 is is protos then "if player 2 is is zerg then, if player 2 is is terran then, if player 2 is is protos then Any advice?
I took your map and learned from it and made this map instead. It simply check what race the player has and build the correct building to it (added a computer player to make sure it works). However, is there a smarter and allot shorter way to do this? Feels like there have to be a shorter way to this then
"if player 1 is is zerg then, if player 1 is is terran then, if player 1 is is protos then
"if player 2 is is zerg then, if player 2 is is terran then, if player 2 is is protos then
Any advice?
And now is where your great friend, loops, comes in.
Pick each player in player group (Active Players)
If player (picked player) is zerg then
If player (picked player) is protoss then
If player (picked player) is terran then
And this will just cycle through each player who is playing the game, and carry out the actions.
Ok now i spawn the correct building for each player 1x "upgrade center" and 1x "transport unit"
Zerg has a nydus worm, Terran has a Medivac and Protos has a Warp Prism as transport unit.
The map is built into 2 parts, 1 mainland and 1 island. The transport unit is supposed to travel back and forth between these 2 places and here is where problem start.
I have the timers set up for when the actions of the units should happen so that part is done.
Lets say i have 6 players doing this, how can i issue the correct orders to each of these units? I dont even know how to do this if it was only a single player. First of all, player 1 can have 3 different units depending on what race he took.
Is there some way in the start to lets say make a variable that is pointing a unit? so that you can for example say "move this (variable unit) to this spot"?
In that case i could make something like "If player one is zerg then issue these orders to (variable unit) else if player 1 is terran issue these orders to "variable unit". However i ahve to do these "if" allot of times every time i have to issue an order and it feels like its allot of unnecessary code to make but mabye its the only way ?
I dont know, please help me to make this in a smart way.
Don't wanna share my map with me, sorry about that. If you can just make a new map with the intended writing then i can just copy your text and put it into my map.
NEW QUESTION AT POST 8
I will have a map where there will be a total of 6 player. Each player should have the option to choose a race, zerg, protos or terran. Depending on what race each player have choose they will get two different production building that can make all units and upgrades for the selected race.
I'm fairly new to this whole triggering thing and don't really understand the whole system yet so i really need some help :) Now how do i spawn the correct building for each player depending on what they take for race??
@Sherlia: Go
i was trying to do this also, the only thing i could find to do was to keep the starting trigger for "create starting units and structures for all players" Then i made another trigger to kill the workers because i did not want them. Note: to get a building to spawn in a certain spot using the original trigger, you must go to the Points tab and set a starting location. Then, under Player Properties, set player 1 to spawn at starting location 1 and so on..
Here's a basic system to make the starting building for each race.
@deathtorn: Go
Thank you so much but this! but has 1 big flaw. The UI does not have the correct look to the race choosen.
I took your map and learned from it and made this map instead. It simply check what race the player has and build the correct building to it (added a computer player to make sure it works). However, is there a smarter and allot shorter way to do this? Feels like there have to be a shorter way to this then
"if player 1 is is zerg then, if player 1 is is terran then, if player 1 is is protos then
"if player 2 is is zerg then, if player 2 is is terran then, if player 2 is is protos then
Any advice?
And now is where your great friend, loops, comes in.
Pick each player in player group (Active Players)
If player (picked player) is zerg then
If player (picked player) is protoss then
If player (picked player) is terran then
And this will just cycle through each player who is playing the game, and carry out the actions.
OK loop sounds good but can you exactly tell me how to do it or edit the map i uploaded and give it back so i can learn from what you tell me.
Edit: Does that even work, i mean the spawning locations are different for each player...
New Question
Ok now i spawn the correct building for each player 1x "upgrade center" and 1x "transport unit"
Zerg has a nydus worm, Terran has a Medivac and Protos has a Warp Prism as transport unit.
The map is built into 2 parts, 1 mainland and 1 island. The transport unit is supposed to travel back and forth between these 2 places and here is where problem start.
I have the timers set up for when the actions of the units should happen so that part is done.
Lets say i have 6 players doing this, how can i issue the correct orders to each of these units? I dont even know how to do this if it was only a single player. First of all, player 1 can have 3 different units depending on what race he took.
Is there some way in the start to lets say make a variable that is pointing a unit? so that you can for example say "move this (variable unit) to this spot"? In that case i could make something like "If player one is zerg then issue these orders to (variable unit) else if player 1 is terran issue these orders to "variable unit". However i ahve to do these "if" allot of times every time i have to issue an order and it feels like its allot of unnecessary code to make but mabye its the only way ?
I dont know, please help me to make this in a smart way.
Actually there's a much simpler method. Can you send the map to me? I'll get it written up fast.
Don't wanna share my map with me, sorry about that. If you can just make a new map with the intended writing then i can just copy your text and put it into my map.
I understand, I should have the time sometime tonight.
I'm home now, so I should get this done.
Just try to follow some comments in the triggers. If this isn't what you need, send me a PM.
@deathtorn: Go
Thank you, i will surly learn allot from this!
@Sherlia: Go
Glad to help!