NWScript has no way to directly target the screen for output. Instead, for instance, in-game characters such as the player character can be made to speak the typical "Hello world" example message. This script puts a "Hello world" message in the player's message log. For it to work, it should be placed in the OnClientEnter event of the module'sproperties.
The first line is the void main function which is the function that a NWScript will start at. In the third line, a variable of the type object is declared and assigned a value - i.e. that of the entering player's character. The next line sends the line "Hello world" into the player's message log.
vector (refers to coordinates of an object, and is a construct of three floats).
itemproperty (refers to abilities on items such as weapons for use in the game).
When saving a script, the Aurora Toolset saves the plain text of the script as a file with a .nss filename extension. When compiling the script, a .ncs file is created. If turned on, a debug information file with an .ndb extension is also created. The game uses only the .ncs file (and the .ndb file if called).
When saving the created module, the files are packed into a single module file with a .mod extension, along with other information about the layout of the module.