Great! Thank you very much. I'm using your patch to implement changes to the original files.
Is someone using the compiler with *.nss files in an external directory (not in temp0)?
For rebuilding everything I use sublime. Using this command:
["C:\\Program Files (x86)\\NWNScriptCompiler\\NWNScriptCompiler.exe","-1cegloq", "-i", "${file_path}", "-n", "E:\\Games\\Neverwinter Nights","-y", "-b", "${file_path}", "*.nss", "&", "move", "/y", "*.ncs", "E:\\Games\\Neverwinter Nights\\modules\\temp0", "&", "xcopy", "*.nss", "/r", "/y", "E:\\Games\\Neverwinter Nights\\modules\\temp0"]
In other words:
1) Compile everything
2) move the *.ncs files in temp0
3) xcopy the *nss files in temp0
I don't like this approach because it copies and moves even when there is a compile error and it takes time to copy and move everything. Is there a better approach to this?