PDA

View Full Version : Anti-Walling In Defence Maps?


Evilferret
02-23-2008, 7:15 PM
I'm cuirrently working on a basic defence map. I'm using the trigger ISSUE ORDER to MOVE the units from one side of the map to the other.

The units move okay, but when a wall is placed in their way that they can't get around, they do not attack. They simply get confused and continually walk back and forth.

I know some units are more proned to attacking than others. I am currently using zealots, in case this matters.

How do I get them to attack if there's a wall in the way?

intranetusa
02-23-2008, 7:33 PM
When you use "move to" trigger, the unit just moves, it doesn't attack.

You need to use the "attack to trigger" to attack hostile units that get in its way. I'm not totally sure, but I believe the "patrol to" trigger gets the units to attack any enemy unit, whether it is a supply depot wall or a medic wall.

masterofhobbiton
02-23-2008, 7:46 PM
But he doesn't want it to attack anything it sees (attack to), he wants it to only attack if its way is completely blocked. (I think)

Um, I guess you could look at the triggers for someone else's map to see how they did it?

intranetusa
02-23-2008, 8:00 PM
If that's the case, then what about invincibility for all non-building units?

Protogod
02-23-2008, 8:26 PM
But he doesn't want it to attack anything it sees (attack to), he wants it to only attack if its way is completely blocked. (I think)

Um, I guess you could look at the triggers for someone else's map to see how they did it?

no. "Attack to does NOT, i reiterate, NOT attack everything it sees. I dont know why everyone seems to think it does.

intranetusa
02-23-2008, 8:37 PM
no. "Attack to does NOT, i reiterate, NOT attack everything it sees. I dont know why everyone seems to think it does.

Yeh, he should try 'patrol to' instead.

Protogod
02-23-2008, 8:50 PM
Yeh, he should try 'patrol to' instead.


Yes but, "patrol" DOES attack everything he sees.

He wants something that only attacks when it is walled, which is "attack to"

migidu
02-23-2008, 10:02 PM
add the center location on the targets or on the main attacker, so that it attacks only those in that location, although maybe that would be a bunch of triggers if there were multiple attackers. i dont know.

DarkMirror
02-23-2008, 10:04 PM
I'm cuirrently working on a basic defence map. I'm using the trigger ISSUE ORDER to MOVE the units from one side of the map to the other.

He wants them to go from point A to point B, and attack whats in their way. Not a specific target. In this case, use the Order: Attack To trigger.

deadkat
02-23-2008, 10:06 PM
Move to is the right command. Attack to will attack everything it sees, same with patrol.

With move to, the units will only attack when it stops, and if you wall, the units have nowhere to go, and they stop.

The only problem is that they have to come to a complete stop before they start attacking. With things like reavers, which are fat and slow, it's easy for them to stop moving when they face an obstruction.

Zealots, especially speedlots, have some trouble with stopping completely. They may clump together and twitch, but they usually won't stop completely unless you box them in.

migidu
02-23-2008, 10:17 PM
does this mean zerglings respond better to patrol triggers than zealots when there are walls?

Protogod
02-23-2008, 10:36 PM
He wants them to go from point A to point B, and attack whats in their way. Not a specific target. In this case, use the Order: Attack To trigger.

Yes.

I am gonna start being mean now.

If you say that "move to" is the right command, shut up. You are wrong. Go away.

If you say that "attack to" is wrong because it attacks all units, then shut up. You are stupid.

BOTTOM LINE: Use "attack to." It will simply move all units from point A to point B, attacking only things that attack the individual unit first. If they get walled in, they will attack the obstruction. It is exactly what you want. I'm done beating around the bush. If you disagree with this post, you are wrong.

I really don't care.

migidu
02-23-2008, 10:39 PM
if you combo it with run ai script "ai harass here" at location X, would that be helpful?

Protogod
02-23-2008, 10:40 PM
No. No, it would not.

Evilferret
02-24-2008, 5:14 PM
Attack To does not work in this situation. I have tested it.

I want the units to move from point A to point B and ONLY attack if there is a complete wall of buildings in their way which they cannot get around. They should not attack if they encounter an enemy unit which they can walk past.

Polkaman
02-24-2008, 10:13 PM
If the computer enemies you, goliaths and tanks kill when they are walled.

Evilferret
02-25-2008, 12:05 AM
I don't know what you're talking about with Goliaths and tanks there...

I'm referring to Zealots.

Move To makes the Zealots move accross the map, but they do not attack if blocked by an impassable wall of units.

Attack To makes the Zealots move accross the map, but if they encounter an enemy they attack it (Or at least, an attacking enemy, eg a Sunken Colony)

Neither of these is what I need. I need the Zealots to move as far as they can. If they come to a wall of enemy units that they cannot pass, they must attack.

Is it just because Zealots move too fast, so they never attack, whereas a slower unit like a Tank would attack with the Move To command, if it were to encounter a wall?

migidu
02-25-2008, 12:23 AM
i have a defense map too. and for some unknown reason zerglings and hydra respond better to patrol triggers than zealots and dragoons in the actual map. their stats, iscripts, are equal. in tests maps where the terrain is very simple, they kill each other simultaneously. somehow terrain has effect on this.

i mean the zealots just die getting attacked by the zergling. since their dancing around but the zerglings dances better.

Fiendwurm
02-25-2008, 10:23 PM
This does not work with timed defence maps, but if your is not and you have to trigger something manualy to start the wave, you can instead give the player an ultra (instead of sending a wave) with 9999 attack that the player has to bring to end zone thing to trigger the wave. If the player blocked, then he will have to destroy some buildings to bring the ultra to the end zone thing.