I've got some code that looks at a character and attempts to apply a hide based on the racial type of the PC.
Program Flow is something like this:
onEnterScript -> applyRacialHideScript
Now the code came with some helpful debug statements (w00t!) I just had to switch the debug variable to be TRUE. When I attempted to compile the script the compiler complained that there was no main(), did I want to compile as a conditional scripts, which it couldn't do due to missing a function, so I inserted an empty main() to fool the compiler. This done I started to see the info I needed

Now I was getting puzzled by some of the behaviour so I went back and inserted a few more DEBUG statements to see what was going on a bit better. The script compiled sweet as


Anybody got any ideas as to what is going on here? I even tried rebooting my machine to see if it had cached old compiled versions of the scripts
