2 questions:
There is a computer player 2, and I want that player to keep defending a (quite large) location x.
The important thing is that they immediately attack any enemy player that comes into location x. They don't have to follow an enemy unit that has left location x, but just stay there at location x.
What would be best?
I tried this:
player 1 brings at least 1 unit to location x
issue order patrol units of player 2 at anywhere to location x
preserve trigger
But al they did was patrolling in the center of location x.
And because it is quite a big location, they usually don't get to attack any enemy players.
Also, is it possible to make 1 location in a shape other than a rectangular?
There are several small locations which should form 1 large location, but the shape of all those locations together is not a rectangular.
Post has been edited 1 time(s), last time on Jun 7 2008, 8:29 pm by okeee.
None.
Try using the Value This Area Higher AI, it might make it work, but AIs are funky..
None.
yeah, it does not work too well, because new units from someplace else don't go to that area at all, even with "preserve trigger".
None.
You may need to place a few burrowed zerglings in the area, and alternate a location through them, so the units are ordered to different areas.
None.

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
You can always center a location onto enemies in location x and order the comp to patrol there.
Don't always preserve the order or the comp units wont be able to attack.
If there are no enemies in x then the location will be centered on x.
Is it possible to protect specific buildings only? as soon as an enemy player attacks that specific building, all units should go back to attack the enemy players (no campaign AI script is used so they wont automatically defend any of their buildings anyway).
Post has been edited 1 time(s), last time on Jun 8 2008, 10:45 am by okeee.
None.
Just check to see if enemy units are near one of their buildings, if so, order them all to protect it.
None.
Is there any if condition such as: "building has 90% hitpoints" or "building is under attack" ?
None.
No... Just detect if units are in the area..
None.
ok then..
well then what I'm trying to do is, there is an area of enemy units, and any unit should go through that area without being able to attack those enemy units. But they should not be moved away when they're near that area as well.
1 method would be to repeatedly restore 100% health, but i'd like to try more methods..
so if you know some methods, name as many as possible please.
None.
You could make the buildings invincible with the Set Invincibility Status trigger action.
?????
Constantly give the building back and forth between players so they can never acquire it as a target
None.
Constantly moving the buildings to an area that they cannot be moved to (such as water) might also work.
?????
ok, but by these methods the units will still get hit now and then right?
None.
Depends on how fast of a firing rate the enemy has.
None.
ok. if anyone has some more ideas, please let me know.
None.
You could make the buildings invincible with the Set Invincibility Status trigger action.
You could also constantly toggle invincibility so the units' attack orders would always be invalidated.
None.