Hi good day fellow mappers. Im stuck in a rut with how to create this trigger.. Any assistance would be much appreciated.
Currently im trying to create a trigger that will randomize 12 players into groups of 3 per team. Meaning 3v3v3v3. I would like this trigger to also create a starting structure at fixed locations for each randomized player with a start location moved or attached to it .
Do you know about "Arrays"? They're kind of like a collection of variables. For instance you could say
StartingPoints[0] = point1
StartingPoints[1] = point 2 ... etc
To turn a variable into an array, check the Array checkbox, and set the size (the number of variables it'll contain).
You could loop through players, set them to a Team[random int between 0 and 2] (first check that it isn't already full, if full, try a new random number).
There's probably a more efficient solution, but I'm a bit tired xP
would it be possible to attach a sample map of a trigger like this in action ? i am familar with arrays and stuff, but im still perplexed on how to go about this randoming players and creating a starting structure for each person with their start location . I think i am following u on what your saying about setting up an array for the locations , but how do i do the assigning players to teams randomly and the not if not full thing?
end result would be like a 3v3v3v3 randomly assigned. So 3 ppl for instance randomly asassigned to team 1. 3 ppl to team 2.. and so on.
Here an abandonned project where i did a random team generator (3 player * 4 team) , if i remember well, it work fine, (Folder "Set Group" and "Set Playr Hero".
no luck here, i struggling with it still . From my testing, i put in ur trigger almost as is.. ( just removed the part for when ur going through all the different marines.. and just create structure. well it createss structure, but literally only for me. Nobody else gets a team or a structure, not sure whats going on :(
Well, it seem broken (seems to take only the 4 first player), idk why, you can try to recreate one by yourself using this one as model, maybe even improve it :)
can u do it for me? willing to pay money for this feature.. i have a small community that wants it more than ever. Random teams for fairer games. I absolutely suck at triggers.
I will create one for the starcraft 2 editor community, i will see this weekend, i dont know how much time it will take, i will try my best to do it fast :)
thanks alot if you can.. Its a very critical ffeature missing in starcraft 2. In warcraft 3 it was easy to do with host bots and just randomizing within the lobby.. but since sc2 does all the hosting.. there is no bots to do this for us.. So its down to triggers :(
Literally just looking for a way to set 3v3v3v3 randomly, and create a structure in a point location for each player.
( this structure is their starting auto unit spawner)
-edit would it be possible to put in a small change to the "useRTG" trigger to choose a unique location to spawn the marine for each picked player? ( so i could set player color of each player and their exact position in base) Currently only 1 unique spawn location is for each team. Would it be possible to do 12 locations?
hey thanks alot for dedicating ur time to help me.. much appreciated.. i got a couple questions.. how do i use "USE RTG CREATE UNIT AT POINT" trigger .. i am trying to understand what u mean..but nothing is working. How to make that for 12 players? for me it isnt spawning anything.
and the set color trigger doesnt seem to be working or coming on i thinks.
An example of what i am trying to understand from ur trigger.
Hi good day fellow mappers. Im stuck in a rut with how to create this trigger.. Any assistance would be much appreciated.
Currently im trying to create a trigger that will randomize 12 players into groups of 3 per team. Meaning 3v3v3v3. I would like this trigger to also create a starting structure at fixed locations for each randomized player with a start location moved or attached to it .
How is this possible?
Do you know about "Arrays"? They're kind of like a collection of variables. For instance you could say
StartingPoints[0] = point1
StartingPoints[1] = point 2 ... etc
To turn a variable into an array, check the Array checkbox, and set the size (the number of variables it'll contain).
You could loop through players, set them to a Team[random int between 0 and 2] (first check that it isn't already full, if full, try a new random number).
There's probably a more efficient solution, but I'm a bit tired xP
In reply to MaskedImposter:
would it be possible to attach a sample map of a trigger like this in action ? i am familar with arrays and stuff, but im still perplexed on how to go about this randoming players and creating a starting structure for each person with their start location . I think i am following u on what your saying about setting up an array for the locations , but how do i do the assigning players to teams randomly and the not if not full thing?
end result would be like a 3v3v3v3 randomly assigned. So 3 ppl for instance randomly asassigned to team 1. 3 ppl to team 2.. and so on.
In reply to zealotfrenzy1:
Here an abandonned project where i did a random team generator (3 player * 4 team) , if i remember well, it work fine, (Folder "Set Group" and "Set Playr Hero".
Good luck, (kinda hard to understand xD)
https://www.dropbox.com/s/bxgbz9nclsu6th1/Hidden City.SC2Map?dl=0
thanks alot veltax.. going to check out that map now and see how u did it. Sucks u had to abandoned it.. it looks pretty cool.
I see its a hugeeeeeeeeeee trigger ! :p.. damn thanks for this..
In reply to VELTAX_:
no luck here, i struggling with it still . From my testing, i put in ur trigger almost as is.. ( just removed the part for when ur going through all the different marines.. and just create structure. well it createss structure, but literally only for me. Nobody else gets a team or a structure, not sure whats going on :(
I attached the map i was testing it in
https://gofile.io/d/CAO8Hp
In reply to zealotfrenzy1:
Well, it seem broken (seems to take only the 4 first player), idk why, you can try to recreate one by yourself using this one as model, maybe even improve it :)
Good luck in your arcade creation
can u do it for me? willing to pay money for this feature.. i have a small community that wants it more than ever. Random teams for fairer games. I absolutely suck at triggers.
bump, anyone ? will pay for this feature.. Its needed badly in my map
In reply to zealotfrenzy1:
I will create one for the starcraft 2 editor community, i will see this weekend, i dont know how much time it will take, i will try my best to do it fast :)
In reply to VELTAX_:
thanks alot if you can.. Its a very critical ffeature missing in starcraft 2. In warcraft 3 it was easy to do with host bots and just randomizing within the lobby.. but since sc2 does all the hosting.. there is no bots to do this for us.. So its down to triggers :(
Literally just looking for a way to set 3v3v3v3 randomly, and create a structure in a point location for each player.
( this structure is their starting auto unit spawner)
In reply to zealotfrenzy1:
Here, it should work fine for your arcade, good luck with your map :)
hey thanks alot veltax ..gonna test it out now
-edit would it be possible to put in a small change to the "useRTG" trigger to choose a unique location to spawn the marine for each picked player? ( so i could set player color of each player and their exact position in base) Currently only 1 unique spawn location is for each team. Would it be possible to do 12 locations?
Thanks again eh.. so much appreciated.
In reply to zealotfrenzy1:
I will do that later in the day, dont got time right now
In reply to VELTAX_:
sure veltax , whenever u get free time
In reply to zealotfrenzy1:
Here, an improved version of the RTG, sorry for the late answer, dont got much time recently xd
hey thanks alot for dedicating ur time to help me.. much appreciated.. i got a couple questions.. how do i use "USE RTG CREATE UNIT AT POINT" trigger .. i am trying to understand what u mean..but nothing is working. How to make that for 12 players? for me it isnt spawning anything.
and the set color trigger doesnt seem to be working or coming on i thinks.
An example of what i am trying to understand from ur trigger.
In reply to zealotfrenzy1:
To make it create a unit on a point, you need to do 2 things :
-Create a point :
ex : Spawn 1 3 ( the first number is for the team, and the second for the player in the team) ( Here is team 1 - player 3)
-Set the point name in the trigger with the name of the point (Here "Spawn") the number will automaticaly change
I see you added putted 1 instead of the space, you need to put it back to a space or it will not work