How do i prevent AI from going crazy when it encounters walling?

Post Reply
qazedci
Terran Supply Depot Clerk
Terran Supply Depot Clerk
Posts: 12
Joined: Sun Jul 15, 2007 10:45 pm

How do i prevent AI from going crazy when it encounters walling?

Post by qazedci »

Hi,

In a UMS map, I have an enemy zerg computer attack a player's base. Unfortunately if the player uses Supply Depots to wall in front of his bunkers, the Hydralisks will get confused and not try to break through or even attack the bunkers (which are in range). Zerglings go through  spaces between buildings just fine and attack the bunkers.

I have tried a few different triggers to try and keep the AI from getting confused, but no matter what the Hydralisks won't attack the bunkers/depots.

Is there anything I can do to make it so the AI works properly and attacks whatever is in its way?
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: How do i prevent AI from going crazy when it encounters walling?

Post by IskatuMesk »

Not really. You might be able to use locations, but when the AI units get attacked their AI stance resets and even then you aren't really going to get anywhere.

The AI in blizzard's games is extremely retarded.
Gameproc
Though we stand alone, stand we shall.
qazedci
Terran Supply Depot Clerk
Terran Supply Depot Clerk
Posts: 12
Joined: Sun Jul 15, 2007 10:45 pm

Re: How do i prevent AI from going crazy when it encounters walling?

Post by qazedci »

Thanks for the quick reply  :)

http://img442.imageshack.us/my.php?imag ... bsmbh3.gif

^This is what it looks like.

How about something like in defense maps where the AI simply walks through peacefully until they encounter a wall and cant move any further (at which point they destroy everything they see)?
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: How do i prevent AI from going crazy when it encounters walling?

Post by Lavarinth »

Your own units are that stupid as well. It's just the way the game handles units after sent somewhere. You could instead try triggers that direct them to attack anything in a location first before attacking at their actual location. Basically, you cannot avoid that as Isk said. If a player wall another another, and it is attacked by ranged units, the units will try to attacked the ranged units before the buildings and die.
- - Lavarinth
Campaign Creations Administrator
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: How do i prevent AI from going crazy when it encounters walling?

Post by IskatuMesk »

qazedci wrote: Thanks for the quick reply  :)

http://img442.imageshack.us/my.php?imag ... bsmbh3.gif

^This is what it looks like.

How about something like in defense maps where the AI simply walks through peacefully until they encounter a wall and cant move any further (at which point they destroy everything they see)?
Well, the thing with defense maps and walls is that when they encounter a position they get stuck in, they return to idle, instead of move, and then return fire. In the case of your map, they can't reach the bunkers so they are trying to 'right click' the bunkers without being able to reach them. They ignore the supply depots because the supply depots aren't on their "hate list" because they don't attack, so they are kind of ignored.
Gameproc
Though we stand alone, stand we shall.
qazedci
Terran Supply Depot Clerk
Terran Supply Depot Clerk
Posts: 12
Joined: Sun Jul 15, 2007 10:45 pm

Re: How do i prevent AI from going crazy when it encounters walling?

Post by qazedci »

Alright, thanks for the information.

I'll see what things I can change around with that in mind.
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: How do i prevent AI from going crazy when it encounters walling?

Post by Lavarinth »

Doodads are a great way to prevent people placing buildings where they might abuse the system.
- - Lavarinth
Campaign Creations Administrator
qazedci
Terran Supply Depot Clerk
Terran Supply Depot Clerk
Posts: 12
Joined: Sun Jul 15, 2007 10:45 pm

Re: How do i prevent AI from going crazy when it encounters walling?

Post by qazedci »

I had not thought of that; I'll give it a shot. Thanks again!
User avatar
Mucky
Protoss Khalai Missionary
Protoss Khalai Missionary
Posts: 1014
Joined: Thu Aug 24, 2006 10:35 pm

Re: How do i prevent AI from going crazy when it encounters walling?

Post by Mucky »

Lavarinth wrote: If a player wall another another
what
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: How do i prevent AI from going crazy when it encounters walling?

Post by Lavarinth »

Mucky wrote:
Lavarinth wrote: If a player wall another another
what
Lame.. If a player walls another player. I'm rushed when I look at the forum at work, hah.
- - Lavarinth
Campaign Creations Administrator
Post Reply