Hello,
I was wondering if you could put 5 Points down then in your Trigger Editor spawn each player randomly into those 5 Points you placed down?
Thanks
Do you think you'd be able to show me something similar to what you may be speaking about to get a good idea of how to create it using http://peeeq.de/?
The basic idea is to create a variable array of the point type. Then using set variable to define each part of the array. Finally using a random integer to choose from the array.
If you are able to take the time to be able to show me then all you do once finish the trigger highlight it all, right click, and select Copy as Text then you paste it here http://peeeq.de/gui.php?game=sc2. Then you paste the link.
Anyway, this is how I'd do it. Just randomizes until all 5 people have a different integer index number, and then assigns each person their spawn depending on which integer they ended up with.
Please keep in mind I'm not a programmer, so I'm sure there are plenty of better ways to do this. But this worked for me so hopefully it will work for you!
Thanks for that as I haven't tested it yet though I will soon. It looks as if it would work well. This would be easier if I had a Team to work with as well I'm a fan of -The Thing- so it's a pleasure receiving help from you. Haha
This is from Masked linked thread http://peeeq.de/gui.php?id=3747
If you ever need above 14 for the randomness this is essentially how you want to do it.
Teams technically exist, but for the most part we haven't touched the map in about a month now :( , darned RL keeping us busy.
Hello, I was wondering if you could put 5 Points down then in your Trigger Editor spawn each player randomly into those 5 Points you placed down? Thanks
Do you think you'd be able to show me something similar to what you may be speaking about to get a good idea of how to create it using http://peeeq.de/?
The basic idea is to create a variable array of the point type. Then using set variable to define each part of the array. Finally using a random integer to choose from the array.
Since you'll only want each point to be chosen once (one per player), you may also want to look at this thread: http://www.sc2mapster.com/forums/development/triggers/83322-sampling-without-duplication/#p1
@Trieva: Go
If you are able to take the time to be able to show me then all you do once finish the trigger highlight it all, right click, and select Copy as Text then you paste it here http://peeeq.de/gui.php?game=sc2. Then you paste the link.
@MaskedImposter: Go
So the point you have to set using a variable through the Trigger Editor that you've placed down?
http://peeeq.de/gui.php?id=3739
No idea if I used your website correctly.
Anyway, this is how I'd do it. Just randomizes until all 5 people have a different integer index number, and then assigns each person their spawn depending on which integer they ended up with.
Please keep in mind I'm not a programmer, so I'm sure there are plenty of better ways to do this. But this worked for me so hopefully it will work for you!
@Darkblizzard: Go
It can be one you placed down, or you could define it using number coordinates if you want. Basically it'll look something like
Set variable - Spawn [1] = point 1
Set variable - Spawn [2] = point 2
... etc
Then whenever you're referring to a point or someone to spawn at, the point you'll use will be "Spawn [Random integer]"
http://peeeq.de/gui.php?id=3740
Pretty simple one, only works if you have less randomness than 14 though.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Thanks for that as I haven't tested it yet though I will soon. It looks as if it would work well. This would be easier if I had a Team to work with as well I'm a fan of -The Thing- so it's a pleasure receiving help from you. Haha
@Darkblizzard: Go
This is from Masked linked thread http://peeeq.de/gui.php?id=3747
If you ever need above 14 for the randomness this is essentially how you want to do it.
Teams technically exist, but for the most part we haven't touched the map in about a month now :( , darned RL keeping us busy.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Figured out that you could just expand regions from one and allow it to randomly spawn there.