Staredit Network

Staredit Network -> UMS Assistance -> Computer Attack to Loaction
Report, edit, etc...Posted by Chill on 2005-01-14 at 17:34:11
I need a computer player to attack (not patrol) to a location and attack anything it encounters on the way there. Would it work if I made a location bigger than the map and centered it on the area I wanted the comp to attack to? If not does anyone know how I can do this?
Report, edit, etc...Posted by Staredit.Net Essence on 2005-01-14 at 17:51:39
I think if you just use the "attack" order it will already attack anything on the way there.
Report, edit, etc...Posted by Kow on 2005-01-14 at 17:55:08
Attack should work.
Report, edit, etc...Posted by Chill on 2005-01-14 at 18:10:05
Well it dosn't.
Report, edit, etc...Posted by MindArchon on 2005-01-14 at 18:12:04
QUOTE(Chill @ Jan 14 2005, 06:10 PM)
Well it dosn't.
[right][snapback]125313[/snapback][/right]


Try patroling there, and when the unit reaches the location where its supposed to return, make it stop patrolling.
Report, edit, etc...Posted by Chill on 2005-01-14 at 18:13:32
There's more than one unit, that wont work.
Report, edit, etc...Posted by CheeZe on 2005-01-14 at 18:17:35
I bet he forgot to make the players enemies ohmy.gif
Report, edit, etc...Posted by Chill on 2005-01-14 at 18:24:30
Haha actually, I did at first... it took me a full half hour to figure out what was wrong. The computers were supposed to unally after player 8 accumulated 1000 minerals which he was to get from a trigger that constantly gave him one ore... I forgot to preserve it.

Right, so I fixed that, and the computers are unallied now, but that's not the problem. They will attack each other, but only when they arrive at the location I order them to (hence my suggestion to just make the locations real big). I need them to attack anything on the way.

EDIT: Sorry for the grammer stupidity. I'll fix in a sec'.
EDIT2: And by a "sec" I mean tommoro. I'm gonna go pop some Advil...
Report, edit, etc...Posted by RexyRex on 2005-01-14 at 18:56:05
Well why don't you test the trigger first, then tell us if your "Big location" thing doesn't work.

And if it dosen't..then do what MindArchon says, should work for multiple units too.
Report, edit, etc...Posted by terrenblade on 2005-01-14 at 19:07:50
do the patroll, but allways order units in the second location to attack to the same location, or if your worried about it geting full, a location near by.
Report, edit, etc...Posted by Chill on 2005-01-14 at 19:19:59
Then units in that location wont be able to leave...
Report, edit, etc...Posted by E)s-Fury on 2005-01-14 at 21:59:24
I'm 100% sure what your talking about but try this.

Use the A.I script "Value this area higher" at a location around the area you want, if you time it properly it makes the computer send units to that area every time it fires.

Of, if that doesnt work, although I havent experimented with this scirpt so I'm not sure if it works, there is a set "generic command target" which I think would have a similar effect.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-01-14 at 22:03:44
Generic COmmand Target effects things like Interceptors and Scarabs, but the Value this Area Higher may work, the only problem is that you cannot control which units will go there.
Report, edit, etc...Posted by LegacyWeapon on 2005-01-14 at 22:22:47
I used patrol from the spawn only to the end. Then at the end, I made them do something else... Attack doesnt seem to work unless they run into each other...
Report, edit, etc...Posted by Drakiel on 2005-01-14 at 22:32:39
I had this same problem actually, the enemy units were NOT ATTACKING human players IN THE WAY of their path, only near their destination.

I used patrol and they started attacking unallied units.

However (this is a starship troopers, RAID map), I couldn't get the units to scatter across the map no matter what I did.

~Multiple comps on random missions
~create about 15 dif. locations from top to bottom, to attack to the 15 locations on the left (in a line)
~random mission one comp

What would happen is they would bunch up half way along their adventure. The 15 rows scattered nicely through the map, would start to bunch closer half way through the map (while running towards the human base). (Turning the 15 rows into about 3 BIG rows)

Maybe my problem could get solved ;op.

Patrol SHOULD make the enemies attack anything in their path, if they are in line of sight of the unit.
Report, edit, etc...Posted by (Dual)Archon on 2005-01-14 at 23:56:14
Sorry if im spamming but u just make a huge location

Description: Attacking location

Player: You choose

Condition: Always

Action: Order units to location1 to location2 attack
Report, edit, etc...Posted by chuiu on 2005-01-15 at 02:38:44
I think if you can make a location the size of the map and sucessfully center it elsewhere on the map, that that method would definately work. Because the AI has shown that attack normally doesn't work unntill your unit reaches the location, is attacked while on the way, or runs into something along the way.

If that doesn't work then my only suggestion is to patrol to the location then attack to while the men are in the location. But you said you didn't want to or couldn't do that.
Report, edit, etc...Posted by Chill on 2005-01-15 at 12:30:35
My I can't seem to locate my BW disk. Can someone test the location thing and the value this area higher thing and post back what happens?
Report, edit, etc...Posted by chuiu on 2005-01-15 at 20:31:19
No, I just remembered. It won't work. I know this because I encoutered a move location problem in one of my maps. It wouldn't center a location on the edge of the map because that was the edge of the map. Instead the location was moved to edge of the map.

If a location were the size of the map then it wouldn't work. They would just attack to the center.
Next Page (1)