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

EvalUnqUnit|Unfixed

Sat Mar 27, 2010 12:32 pm

Hi folks, just thought I would mention that EvalUnqUnit|Unfixed doesn't work but EvalUnqUnit|Fixed does.
I can get a test to work on unfixed if I use EvalUnqUnit|0. Seems a bit confusing and could lead to event errors.

Cheers, Chris

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

Sat Mar 27, 2010 12:55 pm

Hobbes wrote:Hi folks, just thought I would mention that EvalUnqUnit|Unfixed doesn't work but EvalUnqUnit|Fixed does.
I can get a test to work on unfixed if I use EvalUnqUnit|0. Seems a bit confusing and could lead to event errors.

Cheers, Chris


Sounds like an Alias is missing

Could you try an experiment?

In the /Alias folder, open file various.ini

Add the lines:

// Unit Fixing
$Unfixed = 0
$Fixed = 1

Then try your command using EvalUnqUnit|[color="Red"]$[/color]Unfixed

{blatant tinkering here, but interesting to see if we can help ourselves in situations like this}
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: 4359
Joined: Sat Mar 11, 2006 12:18 am
Location: UK

Sat Mar 27, 2010 6:03 pm

Hi Lodi, I've just spent about 90 minutes messing around with this (mainly due to some mistakes I made). I've not had any success with the alias but have just realised it would still be as confusing even if it worked. To remember to put a $ or not before a Fixed or $Unfixed command.

I think it is much easier just to use 0 or 1 which seem to work OK! :)

Cheers, Chris

User avatar
Pocus
Posts: 24759
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Mar 29, 2010 10:33 am

the syntax is Fixed or Fixed|Not (not fixed...)
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

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

Mon Mar 29, 2010 12:09 pm

Thanks Philippe, I saw Unfixed mentioned in the MOD guide but didn't read all the info.

EvalUnqUnit
EvalUnqUnit = Name; [FixValue]; [NOT]
Tests if a given unit is present in the game and if it is fixed. NOT reverses the result.
Parameters
Name String; Name of the unit. (From 'SetName' keyword)
FixValue String; [Fixed, Unfixed]
NOT String ['NOT']; logical NOT
Example EvalUnqUnit = Stonewall Bde;NOT
This condition will be considered fulfilled if the unit identified as "Stonewall Bde" is not in the game.

Cheers, Chris

User avatar
Pocus
Posts: 24759
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Wed Mar 31, 2010 8:52 am

Yes the code is confusing me too in fact :)

If you use FIXED, then it seeks FIXED. If you don't say anything, it seeks unfixed, would it work with that?
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 5 guests