- NWScript
- Syntax highlighting: A bit more accurate than the C syntax
- Auto-completion: Functions, constants, #define and include scripts names
- Documentation: Popups containing function documentation parsed from the script, with some additional notes for known badly behaving functions.
- Snippets: while loops with GetFirst / GetNext functions, and other useful code snippets
- Basic build tool: Run the compiler for a single script or for the entire module
- Smart build tool: Quick multi-threaded compilation (only re-compile needed scripts)
- 2DA syntax hilighting: Syntax highlighting and label column indexing (Ctrl+R)
Note: This package has been designed for NWN2 in mind, but it should work with NWN1 as well.
Chose either option 1 or 2
- Download and extract the Packed
NWNScriptCompiler
in:
- Windows:
C:\Program Files (x86)\ - Linux:
/opt/
- Windows:
-
Download the AdvancedScriptCompiler (http://neverwintervault.org/project/nwn2/other/tool/advanced-script-compiler-nwn2) and extract content of
StandaloneCompilerin- Windows: C:\Program Files (x86)\NWNScriptCompiler\
- Linux: /opt/NWNScriptCompiler/
- or any other path, but in that case you will need to update the path to
NWNScriptCompiler.exe in:
- The package settings (Preferences -> Package settings -> STNeverwinterScript -> Settings)
- The
nwscript.sublime_buildfile that is located in Sublime text package directory (Preferences -> Browse packages)
-
Extract the NWN2 script data files (located by default in
C:\Program Files (x86)\Atari\Neverwinter Nights 2\Data\Scripts*.zip) in- Windows:
C:\Program Files (x86)\NWNScriptCompiler\Scripts\ - Linux:
/opt/NWNScriptCompiler/Scripts - or any other path, but you will need to update
nwscript.sublime_buildand the package settings as described above
- Windows:
-
[Optional] You can delete ncs files from the
Scriptsdirectory, since only nss are required for compilation.
You need wine in order to use the NWNScriptCompiler.exe
apt-get install wine #Ubuntu/Debian users
yum install wine #Fedora/Redhat users
pacman -S wine #Arch-Linux awesome usersYou also need to edit STNeverwinterScript settings (Preferences -> Package settings -> STNeverwinterScript -> Settings) to override the compiler and include paths for Linux (examples provided).
- From Sublime Text: press Ctrl+Shift+P, write
PCInstall, press Enter - Search for
STNeverwinterScript, press Enter - Follow the Compiler installation instruction above, if you haven't already
