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.
[11:30 am]
NudeRaider -- I would like 3000 minerals, please
[07:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
Please log in to shout.


Members Online: Roy