Page 1 of 1

EvalUnqUnit

Posted: Sat Feb 07, 2009 7:11 pm
by Hobbes
Hi chaps, I have an event where the Indian side gets a morale penalty should Pontiac get killed. The event is triggered by :-

EvalUnqUnit Pontiac|NULL|NOT

Unfortunately the event also triggers when Pontiac is locked for winter.
Where I have NULL - does this have to be 0 or 1?

I'm also having some other event problems I think have a similar cause.
Do I have to specify fixed or unfixed? Can I just not leave it as either?

If I use :-

EvalUnqUnit Pontiac|NOT

I get the same problem.
Thanks for any advice.

Chris
P.S. I have looked through the WIA DB and can't find an example of an EvalUnqUnit command that is looking for the absence of a unit in a scenario.

Posted: Sat Feb 07, 2009 11:07 pm
by Primasprit
Hi Chris,

I think the command needs a small tweak. :siffle:

As a quick fix try:

EvalUnqUnit Pontiac|-2147483648|NOT

Now the command should not care whether the unit is fixed or not.

Cheers
Norbert

Posted: Sun Feb 08, 2009 12:12 am
by lodilefty
EvalUnqUnit Pontiac|[color="Red"]-2147483648[/color]|NOT


I'm not even going to ask where that value comes from :bonk:

Posted: Sun Feb 08, 2009 1:49 pm
by Hobbes
Many thanks! :thumbsup: