HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

ultra hard ai involved trigger help

08-23-2003, 05:36 AM#1
ReaperOfHeaven
how do you make it so that when your unit comes near a neutral hostile, it doesnt attack but it stops. and it only attacks if you right click on a unit. then it only attacks once.
08-23-2003, 06:12 AM#2
Draco
Well, I guess you could set the unit's target aquisition range to 0. Then they'd have to right click. Also, if you add this trigger....


EVENT - A unit owned by (Neutral Hostile) is under attack

CONDITION - Add a player condition or a unit condition refering to the attacker if you want this to be for only specific ppl.

ACTION - Order attacking unit to "stop"/Pause Unit; order to stop; then unpause. (2 choices)
08-23-2003, 06:33 AM#3
Newhydra
1. Make the players allied with the neutral units

2. look for "unit issued order targetting a unit"

3. if order = smart or attack

-and-

4. if owner of target unit of issued order = the neutral units

-then-

5. (and here you have some options...) unally the player with neutrals for a short amount of time? / order the unit to attack and then wait for a short amount of time before ordering them to stop? / give the units insanely long cooldowns and replace the attacking unit when a computer unit is damaged?(combined with an attack order)

I'm sure you can think of a few more ;)
08-23-2003, 11:06 AM#4
TheZaCrew
why is this ultra hard ai? Has nothin to do with artificial intellegence.
well make the unit neutral passive if you unit is issued an order to the unit
set unit to neutral hostile
08-23-2003, 03:38 PM#5
ReaperOfHeaven
whats smart mean?
08-23-2003, 04:11 PM#6
Sage the Mage
Smart is the order string for a right click action. I guess you could call it smart because it will attack an enemy if you click it or move to a point.
08-23-2003, 05:27 PM#7
ReaperOfHeaven
whats aqustition range
08-23-2003, 05:30 PM#8
Draco
It's the range that the units will aquire a target and auto-attack it. Try my above thingy plz. ^ ^
08-23-2003, 06:27 PM#9
Dead-Inside
You should try to keep several questions in one post, it eases up and gives you the right answer so you're ready to go faster.

Regards
Dead-Inside
08-23-2003, 09:35 PM#10
ReaperOfHeaven
kk thx