First of all, read this Scripting Overview First which has many of the following links in a order which builds upon each other. This is part of the Citadel School of Persistent World Building which aims to collect information about developing for nwn2 in one place, and has a lot of helpful scripting information by Knightmare.
Tutorial Scripting For Noobs Vault Page
This guide is meant for the total scripting noob. Someone who does not know a single thing about creating a script, hell, it’s for the person who doesn’t even know where the Script Editor is in the toolset.
Tutorial NWN2 Scripting Vault Page
Introduction to NWN2 Scripting Web Page
Overview of the scripting language.
NWN Scripting University Web Page For NWN1 but everything basically works in NWN2 as well.
Scripting References
the NWN2 Lexicon Website ( Need to find Vault page, their CHM is much easier to use )
the NWN1 Lexicon Website Basics are the same but the function names and some details are different. Basically about 90% of the NWN1 things work in NWN2, and that 10% is just the functions names are a little different or the engines have different features. ( Like a mount script function won't work in NWN2 because unlike NWN1 NWN2 does not have horses ).
Refering to Objects in Scripts Web Page Which covers how to refer to various objects, what OBJECT_SELF is in various scripts.
Sample Scripts
Nwn2Wiki Script Directory Web Page
NWN1 Script Directory Web Page
New script functions added in 1.23 Forum Thread
Alternative Compilers Allow you to work on scripts with IDE's and Text editors of your choice instead of the toolset.
Advanced Script Compiler Vault Page
This is both a toolset plugin which replaces the in game compiler, and a standalone command line compiler ( which you can integrate with eclipse, visual studio or the like ). It is highly recommended that all code be generated and tested with this because:.
- Fixes actually in game bugs caused by improperly compiled code using default compiler
- Generated code is more efficient and optimized better
- Shows many syntax errors the default compiler does not, more than one error at once, and better warnings and error messages.
- Errors are clickable making them easier to fix
- Much less likely to crash the toolset and can deal with much larger scripts
- Seamless toolset integration and 100% compatibility with default game
- Reported issues are quickly fixed
nssclc - NSS Command-Line Compiler Vault Page
nssclc (standing for NSS Command-Line Compiler) is a stand alone compiler for NWScript source files (.nss files), available in the form of a command-line program. Basically, it takes one or more .nss files as input, generates the corresponding compiled files (.ncs files) and displays any compilation error on the command-line interface.
Batch Compiler for NSSCLC Vault Page
Have you ever needed to compile 10, 50, 200, or 1000 scripts? This utility automates this process as easily as possible. Essentially it is a GUI interface that allows you to select multiple scripts at once and compiles them one at a time using the NSS Command-Line Compiler.
PRC Compiler Vault Page ( For NWN1 but scripts work the same in NWN2, you just need for it to have nwscript.nss in it's includes it sees ) Grinning fool has a fixed version of this that does not require it finding NWN1 files. Please see the Advanced script compiler which is the currently maintained version of this project.
Script Generators
Flip, a tool which lets you create scripts for NWN2 modules using a graphical interface. It was designed to allow non programmers, ( specifically 11-14 year olds ) develop computational skills using interlocking blocks that represent the code of the language.
Lilac Soul's NWN Script Generator V2.3 Vault Page
This is a tool for creating scripts for use in NWN. It covers many of the basic functions that are used frequently in modules, as well as some, perhaps, less frequent ones.
Neverwinter Nights Easy Script Web Page Very basic script compiler.
********************************************************
Tutorial Charlie's Scripter Starter Kit Vault Page
Sample starter scripts for new scripters and module builders. This module was built in response to frequent requests for simple scripts to provide functionality needed for most modules and persistent worlds. These scripts and the demo module should help new module builders and scripters get started with Neverwinter Nights 2 scripting.
UI Scripting Links and information Forum Thread
Paste Bin
This is a tool which makes it easy to post small scripts using pastebin.org which gives the nwn2 community their own private pastebin. Go ahead and use it to help discuss scripts. Remember that using it is temporary, and it's better to post code here in the forum so others can benefit from it years later, but it's a good way to get help on issues when you are on IRC.
nwn2 pastebin
Community Script Library
This is my personal project which is a very large library of functions which i have personally vetted and reviewed and optimized for maximum peformance ( including monitoring usage with xp_profiler). This includes many new functions, as well as many from other projects which are good for general use. The current place this is hosted but i am looking at moving it eventually to the citadel. It is searchable, and you are free to use the given functions in whole or in part as you deem fit.
Community Script Library
It also has documented the functions in nwscript.nss and a bug list.
I periodically release these scripts as well as i develop them but they are a work in progress.
Modifié par painofdungeoneternal, 26 janvier 2013 - 04:05 .





Retour en haut






