Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Sending things to the destination "Anywher"
Sending things to the destination "Anywher"
Dec 25 2008, 5:00 am
By: DarthThienAn  

Dec 25 2008, 5:00 am DarthThienAn Post #1



So, I'm trying to randomize where a unit is created without setting up a series of switch patterns and locations.

So what I did:
This is for Players 1-8 checked off.

Conditions:
-Elapsed scenario time is at most 10 game seconds. (Just a precaution)
-Current player commands exactly 0 Ghost. (That is the unit)
-Current player has suffered exactly 0 deaths of Ghost.

Actions:
-Create 1 Ghost at "Anywhere" for Current Player.
-Wait 1000 milliseconds.
-Preserve trigger


So I've tested it, and every time, the unit ends up in the middle of the map. Now, the middle of the map is hardly random. So does anyone know why spawning units at "Anywhere" spawns them in the middle of the map?

Map is 64x64.

Thanks.



None.

Dec 25 2008, 5:07 am Biophysicist Post #2



Because Create Units creates the unit as close as it can to the center of the location.

Your best bet is to create a Scourge and the center of the map and order it to Junk Yard Dog (Use the Set Unit Order to Junk Yard Dog AI script), which will make it move in a random direction, and after a random amount of time, center a location on the Scourge and create the Ghost there. There is a chance that the Scourge will be somewhere where the Ghost can't spawn, which you'll have to take into consideration.



None.

Dec 25 2008, 5:24 am NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Well Anywhere is just a location like any other. SC always creates units at the center of locations. That's all there is to it.

If you want them to be created at random spots you'll have to set up a bunch of locations and look up the wiki for randomizations.

If you're low on locations you could also cycle one location through a bunch of burrowed units. (Give random number of those burrowed units to another player center location on burrowed unit at anywhere (it will choose the leftmost that hasnt been given) create the units, give the burrowed units back)




Dec 25 2008, 5:28 am DarthThienAn Post #4



Alright. My friend told me to do that, but I was just looking for a logical reason. Thanks xD.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-8-06. : 2:41 am]
Oh_Man -- i used to play TF2 competitive in that clan, and also was PR manager (ie: i wrote all the website posts)
[2026-8-06. : 2:41 am]
Oh_Man -- another fun fact iaguz actually joined the clan i was part of - Frenetic Array
[2026-8-06. : 2:40 am]
Symmetry -- Human memory is a fragile, fallible thing
[2026-8-06. : 2:39 am]
Oh_Man -- i realised all his shit was halluc and i wiped out his measly army of fake hallucs and he called GG - yeah thts wat actually happened damn false memory strikes again
[2026-8-06. : 2:38 am]
Oh_Man -- i was zerg, the toss guy did a bunch of hallucinates, and i was like, welp, i guess i'm dead, but i have that mindset of never giving up, so attacked him anyway, then tht was wen
[2026-8-06. : 2:38 am]
Oh_Man -- coz i was actually a zerg main, so wat ACTUALLY happened was a complete reverse of this
[2026-8-06. : 2:37 am]
Oh_Man -- i found an old comment of mine i actually think the idra thing over-ride my own memory
[2026-8-06. : 2:22 am]
Symmetry -- was it idra
[2026-8-06. : 1:52 am]
NudeRaider -- Oh_Man
Oh_Man shouted: and i went on to win the tournament, and a pair of steelseries headphones. i even reember how i won the final match - hallucinated a fck-tonne of units and my opponent thought i had way more than he did and GGed
classic
[2026-8-05. : 2:56 pm]
Oh_Man -- long story short - patience is a virtue!
Please log in to shout.


Members Online: l)ark_ssj9kevin