Does this scripting statement do what I think (hope) it does

Post » Mon Sep 26, 2011 5:15 pm

Does this:

If lCurrentFatigue != (lCurrentFatigue > lBaseFatigue)


...mean if current fatigue is not greater than base fatigue??
User avatar
Andres Lechuga
 
Posts: 3406
Joined: Sun Aug 12, 2007 8:47 pm

Post » Mon Sep 26, 2011 3:55 am

I don't think that's how it works.

lCurrentFatigue > lBaseFatigue


will return 1 (true) if lCurrentFatigue is larger than lBaseFatigue. Otherwise it will return 0 (false).

So the whole statement is

If lCurrentFatigue != 1


in the first case and

If lCurrentFatigue != 0


in the latter.
User avatar
Nathan Risch
 
Posts: 3313
Joined: Sun Aug 05, 2007 10:15 pm


Return to IV - Oblivion