Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Having Computer Units Attack Players
Having Computer Units Attack Players
Oct 20 2010, 7:43 pm
By: Dem0n  

Oct 20 2010, 7:43 pm Dem0n Post #1

ᕕ( ᐛ )ᕗ

This is a very nooby question, but I can't figure out what triggers to use. I have a part in my map where waves of zerg come out of a nydus canal, and they're supposed to attack the player's base. Since the player could have multiple expos, I told the computer to run the "send all units on random/strategic suicide missions." The units start to run towards the base, but then they stop and stay still until the next wave comes (when the ai script is ran again). How do I make them just go after the player's bases after they are spawned? :|

I'd post my map, but it's part of a campaign and it's not done, and I don't want to be criticized by other people for having a lame map, so I don't wanna post it here. :hurr:




Oct 20 2010, 7:48 pm Leeroy_Jenkins Post #2



Why not "send all units on random/strategic suicide missions" at "The entire area" and preserve trigger? I dunno if that'll work or not.



None.

Oct 21 2010, 1:19 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

They shouldn't stop to attack. There must be another AI script interfering (campaign / base build AI scripts?) or you're giving the units to another player, or move them outside the map or something like that.

Hard to tell, without more information.




Oct 21 2010, 4:21 pm Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

They will stop because the target unit died.
You should execute the script in an interval (for example: every 2 seconds) or if you want to make it perfect: whenever the target (a unit of the enemy player) died.

Multiple executions of the ai script won't change the target, so units won't run left and right every 2 seconds.




Oct 21 2010, 8:00 pm Dem0n Post #5

ᕕ( ᐛ )ᕗ

Well actually, I made random waves of spawn every 10 seconds, and each time they spawned, the AI script would run. I also made a separate trigger that just ran the ai script every 2 seconds. I thought that having multiple triggers run the same script as the same time could mess the units, so I took out the second trigger, but they still stop every now and then.




Oct 21 2010, 8:44 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

It's possible that you're doing it too often. Spamming AIs can cause them to jam.




Oct 25 2010, 12:38 am Tempz Post #7



There are several ways of doing it... you can have the zerg be put on Insane ai which make it so that they attack often enough but this isn't very accurate or efficient.

Another method is to place a location on a base of a player and make an "Ai" trigger to value it higher this will make it so they send hordes of monsters at the specification location, and also make it build a base there...

Lastly spamming AIs could cause the stop by jamming them in essences... but it depends on the ai spams you got going, and the amount of units you are sending



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
[2026-5-31. : 2:55 pm]
Moose -- >reddit :rip2:
[2026-5-31. : 2:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: O)FaRTy1billion[MM]