(info) Other great resources: Official JS API docs, Scripting Forum

Case sensitivity for globals

Just a quick update to highlight there's an issue with using case-sensitive globals...

From the JS API docs:

6.1 Case sensitivity

Due to a bug that is not so easy to fix in the short term, variables defined in global must be case insensitive. Otherwise, they may collide on savegame loading. This is only for variables defined in your script. There is no need to maintain case insensitivity in regards to variables defined in global by the game itself, such as ’FACTORY’ (you can safely define your own ’factory’ variable) – the only exception to this is ’me’.