FSX Mission Editor "IF" command

#1
Anyone had any luck using the "IF" command? I'm trying to monitor the fuel level in a mission, and it just doesn't seem to work correctly. Here's what I have:

SimVar IF "$FUEL TOTAL QUANTITY" IN percent >= 50.000 THEN {Dialog Guid} ELSE {Second Dialog Guid}

It only returns the first dialog, regardless of the fuel level.
 
#2
you need to split the command as thus
FUELLEAK Command
Although there is a fuel-leak command provided by FSX, this one is
provided as an alternative to that. The difference is that you specify how much
fuel you want remaining after a fixed period of time, instead of specifying the
leak rate. This allows you to more accurately script your out-of-fuel locations.
FUELLEAK <percent_remaining> AFTER <seconds>
Setting <percent_remaining> to anything less than 0 will stop a current
leak, as will the “STOP” command.
Examples:
FUELLEAK 3 AFTER 600
Exactly ten minutes (600 seconds) from now, you will have 3% fuel
remaining.
FUELLEAK -1 AFTER 100
Stop leaking now. The time value is ignored if percent_remaining is < 0.
FUELLEAK STOP
Also means stop leaking now.
PROFILE LkTime SET 90
IF $Level = 1 THEN {GUID} --> PROFILE LkTime SET 60
IF $Level = 2 THEN {GUID} --> PROFILE LkTime SET 45
FUELLEAK 0 AFTER $LkTime
Assuming “Level” has been set by a previous menu choice to 0, 1 or 2, set
LkTime to one of 90, 60 or 45. Then, later, run out of fuel after a number of
seconds that corresponds to the difficulty level the user chose. This example
would need to be split over six separate CustomAction nodes.
 
Top