Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Computer AI, Dispersing
Computer AI, Dispersing
Oct 31 2007, 2:38 am
By: Sie_Sayoka  

Oct 31 2007, 2:38 am Sie_Sayoka Post #1



I need an AI that orders units to disperse to random areas on the map when starting in a location. The units also need to attack any enemies that are along the way. Anyone know of an AI capable of this? I have already tried junkyard dog, it only works if they are in a certain location.



None.

Oct 31 2007, 3:24 am NudeRaider Post #2

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

Quote from Sie_Sayoka
I need an AI that orders units to disperse to random areas on the map when starting in a location. The units also need to attack any enemies that are along the way. Anyone know of an AI capable of this? I have already tried junkyard dog, it only works if they are in a certain location.
You say "units starting in a location" [...] "only works if they are in a certain location" So where's the problem?

But you could try to send them on random suicide missions (ai script).




Oct 31 2007, 3:54 am Oyen Post #3



The random suicide missions would work unless you have other units owned by the player that you dont want suiciding.



None.

Oct 31 2007, 4:12 am Sie_Sayoka Post #4



Quote from NudeRaider
Quote from Sie_Sayoka
I need an AI that orders units to disperse to random areas on the map when starting in a location. The units also need to attack any enemies that are along the way. Anyone know of an AI capable of this? I have already tried junkyard dog, it only works if they are in a certain location.
You say "units starting in a location" [...] "only works if they are in a certain location" So where's the problem?

But you could try to send them on random suicide missions (ai script).

i want units to start in a small location, and end up outside of the location. junkyard dog only works if the unit is inside a location.

Quote from Oyen
The random suicide missions would work unless you have other units owned by the player that you dont want suiciding.

I want only a select few to disperse, in a 3x3 location.



None.

Oct 31 2007, 4:13 am Durandal Post #5



Painstakingly trigger the attack commands for the individual units?



None.

Oct 31 2007, 12:18 pm NudeRaider Post #6

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

Quote from Sie_Sayoka
Quote from NudeRaider
Quote from Sie_Sayoka
I need an AI that orders units to disperse to random areas on the map when starting in a location. The units also need to attack any enemies that are along the way. Anyone know of an AI capable of this? I have already tried junkyard dog, it only works if they are in a certain location.
You say "units starting in a location" [...] "only works if they are in a certain location" So where's the problem?

But you could try to send them on random suicide missions (ai script).

i want units to start in a small location, and end up outside of the location. junkyard dog only works if the unit is inside a location.

Quote from Oyen
The random suicide missions would work unless you have other units owned by the player that you dont want suiciding.

I want only a select few to disperse, in a 3x3 location.
There's a trick that definetely works when you would use order:
Give the units in the 3x3 loc to a free comp player, start the ai in the big location and quickly give the units back to the original player.
Maybe it works even if the units were ordered by junkyard dog. Dunno, just an idea.

The next best thing I can think of is you set up your own random targets and manually order the units.
For example have some obs junkyard dog in the large area.
Then, when the dispersing should take place
1. center a location on 1 obs at that loc (leftmost will be taken)
2. order ONE unit in the 3x3 loc to patrol there.
3. give the obs to another player (for later use) or remove it
4. REPEAT: center on next obs, order next single unit and give obs another player...

If you have really lots of units you can repeat that by giving the obs back to the original player and wait a certain time until the obs have moved enough to appear random.

And no, there's no ai script that can do exactly what you want. But feel free to write one. ;)
When you get deeper into mapping you will notice sc is rly restricted with its possibilities.
Often you will need to find a way complex way that doesn't work perfect to implement a simple idea.




Oct 31 2007, 2:23 pm Sie_Sayoka Post #7



olright thx ill try it out



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[08:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
[2026-9-23. : 10:09 am]
NimoStar -- It can by playing the same map thousands of times. It is similar to AI speedrunning games
[2026-9-23. : 2:30 am]
Symmetry -- I dreamed about that as a kid. The idea of a computer capable of analyzing a starcraft map and calculating the fastest possible way to hit the victory condition
Please log in to shout.


Members Online: UndeadStar, Oh_Man