Ok. There are two kinds of scripts. Those with void main, and those without. Some esoteric exceptions aside, those without void main are generally known as includes. They hold scripts that are used by other scripts, ones that do have a main function that executes.
Void main() scripts will 'include' these reference, or include scripts (or header files, in C), by means of an include statement at the top (or 'head') of the script. It looks like this:
#include "<script name here>"
By way of example, if your script is called inc_leto, scripts including it would have this in them, generally at or near the top:
#include "inc_leto"
The simplest way to compile them all using the nwn toolset is to do a module build, unchecking EVERYTHING but scripts (the build is generally useless, given the amount of time it takes, for things other than scripts).
If you get errors when compiling, that means that the script did NOT compile, and that the old compiled version will be used instead, if there is one (there won't be if it's a script you just wrote). You'll need to resolve those errors before your scripts will run according to the scripts you've edited in the toolset.
Funky
Modifié par FunkySwerve, 03 juillet 2011 - 04:47 .