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.
[06:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
[11:05 pm]
Ultraviolet -- :wob:
[03:55 pm]
Zoan -- :wob:
[10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[2024-5-18. : 3:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
Please log in to shout.


Members Online: Roy