Page 1 of 1
EvalUnqUnit|Unfixed
Posted: Sat Mar 27, 2010 12:32 pm
by Hobbes
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
Posted: Sat Mar 27, 2010 12:55 pm
by lodilefty
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}
Posted: Sat Mar 27, 2010 6:03 pm
by Hobbes
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
Posted: Mon Mar 29, 2010 10:33 am
by Pocus
the syntax is Fixed or Fixed|Not (not fixed...)
Posted: Mon Mar 29, 2010 12:09 pm
by Hobbes
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
Posted: Wed Mar 31, 2010 8:52 am
by Pocus
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?