Home   Help Search Login Register  

Author Topic: Condition combatMode?  (Read 689 times)

0 Members and 1 Guest are viewing this topic.

shadow99

  • Guest
Condition combatMode?
« on: 15 Nov 2004, 04:40:50 »
I do I run a check in a condition field for a unit/group's behavior? I don't think it's possible with ordinary scripting commands, is it?

Thanks.

Offline KTottE

  • Former Staff
  • ****
Re:Condition combatMode?
« Reply #1 on: 15 Nov 2004, 09:34:55 »
To get their combat mode (engage at will, fire at will and so forth), use this:

(combatMode (group unit) == "MODE")

Where "MODE" is one of the following:
"BLUE", Never fire, never engage
"GREEN", Fire at will, never engage
"YELLOW", Never fire, engage at will
"RED", Fire at will, Engage at will

If you want to check for their behaviour (careless, safe, aware, combat, stealth), use this:

(behaviour unit == "BEHAVIOUR")

Where "BEHAVIOUR" is one of the following:
"CARELESS"
"SAFE"
"AWARE"
"COMBAT"
"STEALTH"

I hope that helps.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

shadow99

  • Guest
Re:Condition combatMode?
« Reply #2 on: 15 Nov 2004, 09:37:19 »
Yes, greatly. Thanks very much.