AI question?
Jul 26 2010, 5:28 am
By: tentons01  

Jul 26 2010, 5:28 am tentons01 Post #1



Im creating a type of zombie map, and the zombies are controlled by a computer. Would i use the "send units on random suicide missions" script to make them hunt down the human players? Also, you are able to place barricades (Going to use protoss vespene orb for the barricade) around the map or in choke points. How would i made the computer player attack these barricades instead of getting stuck trying to get to the human player? Oh and before i forget, one more question. How do you detect when a ling is burrowed? Like if you have a zergling, and you want a trigger to happen as soon as it burrows.

Post has been edited 1 time(s), last time on Jul 26 2010, 5:35 am by tentons01.



None.

Jul 26 2010, 6:15 am Vrael Post #2



That script will not make them specifically "hunt" down players, no. For that you could do something like, center a big location on the player's unit every so often and issue a "patrol" order, the only downside to this is if multiple players are close by then the zombies will attack towards whatever order was issued last, instead of whatever player is closest. You could circumvent this by using successively smaller locations and ordering the zombies multiple times.

As for the attacking of barricades, first make sure the computers or computer/whoever owns the barricade is unallied, and try cycling through the barricade units (if you have a spare player) with a small location (maybe 1x1 or 1.5x1.5) and ordering any zombies at that location to patrol to that location. The "attack" order doesn't work nearly as well as "patrol"

http://www.staredit.net/topic/7783/
^ burrow detection section in there. Please utilize it, it contains much information.



None.

Jul 26 2010, 6:17 am tentons01 Post #3



okay thanks a lot! In your link, the link about burrow detection under the burrow collapse box, does not work. Where can i find it?



None.

Jul 26 2010, 6:27 am Lanthanide Post #4



Also note that the vespene orbs and mineral chunks have default maximum armor of 255 (even if you've set it to 0 in the editor), so most attacks do 0.5 damage to them.



None.

Jul 26 2010, 8:06 am NudeRaider Post #5

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

The wiki is down while we're transitioning to sc2 along with a new wiki.

We have all the articles thrown together in this link though
http://www.staredit.net/?p=oldwiki
It's not pretty but you should be able to find what you want when you look for a keyword like "burrow"

I'll give you a quick rundown of burrow detection though:
You center a 1x1 pixel (not 1x1 blocks) location on the unit in question. Then you move a unit there.
In another trigger you check if the unit you just moved is inside the 1x1 location. If it is, the unit you centered on is burrowed. Otherwise the unit you moved would have been pushed off and not detect by a 1 pixel location.




Jul 26 2010, 11:21 am Symmetry Post #6

(Killer_Kow)

Quote from Lanthanide
Also note that the vespene orbs and mineral chunks have default maximum armor of 255 (even if you've set it to 0 in the editor), so most attacks do 0.5 damage to them.

Not true in the slightest. Vespene orbs/tanks/sacs and mineral chunks have 0 armour; their unit size is independant and this is why they take 1 damage every two hits.



:voy: :jaff: :voy: :jaff:

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:43 am]
Symmetry -- I'm doing my best, damn it
[2026-9-28. : 4:46 pm]
Ultraviolet -- @:@
@:@ shouted: this community still going strong?
Still going.. strong is debatable though.
[2026-9-28. : 4:13 pm]
WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
[2026-9-28. : 4:11 pm]
WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
[2026-9-28. : 4:10 pm]
WeirdoX4857 -- Where is everybody
[2026-9-28. : 1:21 pm]
@:@ -- this community still going strong?
[2026-9-27. : 4:30 pm]
Oh_Man -- yeah, probs
[2026-9-27. : 3:11 pm]
NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
[2026-9-27. : 3:09 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
[2026-9-27. : 2:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
Please log in to shout.


Members Online: MobMob