Other great resources: Official JS API docs, Scripting Forum
Â
scriptName
This is the filename, without the extension or path, of the main script that was loaded in to your scripting environment.
Examples:
This global is useful for console or chat messages, particularly when an AI is communicating with human players.
// say hello to the human game host (who is always player 0) chat(0, "Hi, I'm "+scriptName);
Requires:
Jump to: