Staredit Network

Staredit Network -> UMS Assistance -> Help With An Ally Computer Please
Report, edit, etc...Posted by mianmian on 2004-08-05 at 13:34:15
Hey
I made a trigger that sets players 1,2 and 3 to ally with comp 8 at start of the game and allied victory too. But theres a problem. The computer player attacks the players units when theygo near them....

Like youll see im a beginer so some details please

Thanks again

Thx for your time. Good luck on all you map projects
Report, edit, etc...Posted by CheeZe on 2004-08-05 at 13:44:21
ya the computer has to be allied to the players too happy.gif
Report, edit, etc...Posted by assassin_498 on 2004-08-05 at 13:44:42
why not just do this:

Trig 1

Players:
All players

Conditions:
Always

Actions:
Set comp 8 to ally

Trig 2

Players:
Comp 8

Conditions:
Always

Actions:
Set all players to ally

EDIT: DAMN YOU CHEESE pinch.gif u and your faster typing skills...
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-05 at 14:26:31
Players: Humans and Comp
Conditions: Bleh
Actions: Set Humans to Allied Victory
Set Computer to Allied Victory
Vision Triggers (optional)
Preserve Trigger

Alliance triggers should be both ways.
You may want the comp to fight back if backstabbed, in that case you can make a seperate trigger for them with no preserve.
Report, edit, etc...Posted by assassin_498 on 2004-08-05 at 14:31:53
how can they do that? i mean you preserved the alliance trig, and if you make a seperate trig /w no preserve, it would be useless
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-05 at 14:37:49
You don't run both triggers for all the players. Common sense, my boy. wink.gif
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-05 at 15:33:11
Yes, the triggers were very incorrect. You have 16 posts a day, isn't that enough? smile.gif
Report, edit, etc...Posted by mianmian on 2004-08-05 at 17:05:33
Thanks for the reply.
Ya you guys were right i had it only one one way. Thanks for the help. Just wondering what would i for for a vision trigger.

One last thing i'm sorry but i don't quite understand what your tying to say about how to make so the comp will fight back if backstabbed,

Thx for your time. Good luck on your map projects.
Report, edit, etc...Posted by Vindexus on 2004-08-05 at 17:20:39
For backstabbed I think he means something like this. Not sure though
QUOTE
PLAYERs
- P8

Conditions
- Player 1 kills 1 any unit (a unit only owned by P8)

Actions
- Set Player 1 to enemy


For the vision do this

QUOTE
Players
- Humans
Conditions
- Always
Actions
Run AI Script: Turn on shared vision with Player 8


That will allow the humans to see what Player 8 sees.
Report, edit, etc...Posted by Stereo on 2004-08-05 at 20:29:24
QUOTE(Mini Moose 2707 @ Aug 5 2004, 01:37 PM)
You don't run both triggers for all the players. Common sense, my boy. wink.gif

I'm pretty sure he meant, how do the players unally the comp when they keep getting allied.

I'm pretty sure if the alliance status keeps getting set units won't even attack an ally if you tell them to, would have to test that though.
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-05 at 22:32:39
Well, even with hypers, some units can attack in few fractions of a second... but it's probably not worth it. But, if a comp is attacked and not forced to ally, then it will usually fight back, in case the human player gets an attack through.
Next Page (1)