PDA

View Full Version : Computer attack...


bomber7
06-05-2007, 4:28 PM
Okay i'm trying to make a little fun map for me and my friend. Large amounts of units will spawn, and we have to live for a certain amount of time to win. However i encountered a problem. Something that worked at first stopped working... The computer stopped attacking units that don't attack it first. I want the computer to attack ALL units in its path. Originally this worked but now it doesn't. Why? Look at the map (made in scmdraft) and see if you can help me...

---Just wanted to add something, the trigger that actualy makes the computer move is
called "Computer -- Attack" Its under player 2's triggers...

NeutronHInc
06-05-2007, 11:59 PM
Okay i'm trying to make a little fun map for me and my friend. Large amounts of units will spawn, and we have to live for a certain amount of time to win. However i encountered a problem. Something that worked at first stopped working... The computer stopped attacking units that don't attack it first. I want the computer to attack ALL units in its path. Originally this worked but now it doesn't. Why? Look at the map (made in scmdraft) and see if you can help me...

---Just wanted to add something, the trigger that actualy makes the computer move is
called "Computer -- Attack" Its under player 2's triggers...Well, at first glance you have under All Players:

Set Player 1 to Ally

I left it as it was and played it, mass amounts of player 2 dudes would just pile up above the comsats. I removed that part of the trigger and player 2 would attack the comsats.

However, seeing as how I don't know how you want the map set up and how you want things to work, I can't do anything else but point that trigger out as the problem I see.

bomber7
06-06-2007, 9:31 AM
So wait you removed the computer attack trigger and the computer attacked? Will that makes sence, but i want the computer to attack any unit it finds besides itself until it reaches the command centers at the bottom. So really removing the trigger doesn't fix the problem because they won't move very far...

TitanWing
06-06-2007, 9:46 AM
Try a presever trigger. I don't do UMS anymore but it's worth a shot.

NeutronHInc
06-06-2007, 3:20 PM
Well, at first glance you have under All Players:

Set Player 1 to Ally

I left it as it was and played it, mass amounts of player 2 dudes would just pile up above the comsats. I removed that part of the trigger and player 2 would attack the comsats.

However, seeing as how I don't know how you want the map set up and how you want things to work, I can't do anything else but point that trigger out as the problem I see.
So wait you removed the computer attack trigger and the computer attacked? Will that makes sence, but i want the computer to attack any unit it finds besides itself until it reaches the command centers at the bottom. So really removing the trigger doesn't fix the problem because they won't move very far...
No, I left the "Computer -- Attack" trigger under Player 2 alone...

Under ALL PLAYERS you have "Ininitialize Everything..." that has Set Players 1 and 4 to Ally. (I edited THAT trigger to remove "Set Player 1 to Ally")

Now if I understand the map right, players 1 and 4 would be you and your friend yes? If that is so, then you should put that trigger under Player 1 and Player 4 NOT All Players. Why? When putting a trigger under All Players, it will trigger for ALL players that have a start location in the map. This may be what is causing the computer to not attack the Comsat Stations because I see no other "Set Alliance Status" trigger that keeps Player 1 and 4 enemies to Player 2.

The only units that attacked me when I left the map as it was when I downloaded it was the air units, and only AFTER the cannons shot them.

AFTER I removed the "Set Player 1 to Ally" Action from the "Ininitialize Everything..." trigger under All Players did Player 2 attack the Comsat Stations.

That is what I changed, the "Ininitialize Everything..." trigger.

I hope that made more sense.

snowolves
06-11-2007, 1:47 AM
The attack AI is just like that.
You can use patrol instead.