First post
I have successfully started my first mods, and things are moving along nicely. However, a recent problem is driving me nuts and has really ruined my day and mood. Have not been able to find the magic thread, section or paragraph explaining what I am doing wrong, so I hope you can help me. Also, I expect the answer to be really embarassingly simple, so that probably explains the mood-thing
Anyways, to isolate the problem I have created a new Quest, start-enabled, with a single script, and added the following code to the OnInit-event.
Spoiler
Scriptname jtTEST extends QuestEvent OnInit() Int iNumber = -3 If (iNumber >= 0) Debug.TraceAndBox("iNumber greater or equal to 0") ElseIf (iNumber < 0) Debug.TraceAndBox("iNumber less than 0") ElseIf (iNumber < -2) Debug.TraceAndBox("iNumber less than -2") Else Debug.TraceAndBox("Whoops: " + iNumber ) EndIfEndEventI get the messagebox allright when starting the mod. But instead of "iNumber less than -2" (which I expect) I get "iNumber less than 0".
I have tried casting back and forth between floats and ints, but no luck. Somehow I cannot figure out to do comparisons on negative numbers, and it turns out I really want to


