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.
[12:17 pm]
Zakerozi -- Dfk is going on here :D
[03:47 am]
Symmetry -- kinda looks like we need to auto ban all new accounts with 3 numbers at the end lmao
[12:56 am]
Heinermann -- who decided "we're not necessarily anti-bot"? It's worse than spam, it's social engineering to trick people into believing that they are legitimate and get them to click their links
[06:04 pm]
NudeRaider -- ihjel
ihjel shouted: "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
ihjel
ihjel shouted: "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
it's rather inconvenient actually, as it requires you to transfer it to Custom Score which might even interfere with what you're measuring. But IIRC you can also use EUDs to display it which by now could actually be somewhat convenient.
[2026-11-11. : 9:25 pm]
ihjel -- "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
[2026-11-11. : 6:59 pm]
Symmetry -- I just pasted what google ai told me to try to form a feedback loop
[2026-11-11. : 1:24 pm]
NudeRaider -- UndeadStar
UndeadStar shouted: https://staredit.net/topic/18961/ <= wow, if there wasn't a capital letter on almost every word in the title, and a link in the signature, I may not have guesses it's an AI bot. I don't know much about map editing, but the content may even be relevant enough to be kept.
Yeah, I've noticed it, but it raised a couple of relevant questions and kept the ad to the signature so if someone were to engage with the topic it could be a net positive which is why I kept it. We're not necessarily anti-bot, just anti-spam. Thanks to Symmetry who realized my hope. :)
[2026-11-11. : 8:09 am]
Zycorax -- Greed
[2026-11-11. : 3:25 am]
Symmetry -- why do the oligarchs want our mapping strategies???
Please log in to shout.


Members Online: Oh_Man, jun3hong, Soul Filcher, Roy