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.
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)
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
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.