User avatar
Hobbes
Posts: 4437
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

EvalUnqUnit

Sat Feb 07, 2009 7:11 pm

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.

User avatar
Primasprit
Posts: 1614
Joined: Mon Jun 19, 2006 7:44 pm
Location: Germany

Sat Feb 07, 2009 11:07 pm

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

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Sun Feb 08, 2009 12:12 am

EvalUnqUnit Pontiac|[color="Red"]-2147483648[/color]|NOT


I'm not even going to ask where that value comes from :bonk:
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Hobbes
Posts: 4437
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Sun Feb 08, 2009 1:49 pm

Many thanks! :thumbsup:

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 8 guests