An include file is a script that does not contain the function main() nor the function StartingConditional(). Include files are used by scripts which do contain one of these functions as a common repository of some scripting that is not desired to be copied into multiple scripts.

Include files are a benefit to the NWScripting system in that they allow a single definition of code to be accessible and consistent from many calling scripts.

To include a file in a script, type into NWScript:

#include "<filename>"

where <filename> is the name of file to include, without the .nss extension.

Community content is available under CC-BY-SA unless otherwise noted.