Technical / Scripting Spells for NWN2

This article discusses how to go about the process of scripting for spells. To begin with, we will cover the conventions that Bioware adopted in their own spell scripts to help scripters better understand what exists in the game. Bioware, of course, built the foundation upon which Obsidian Entertainment developed NWN2.

  • All Bioware spell scripts are prefixed with nw, x0, x1, or x2 to designate the expansion in which the spell script was introduced.
  • All Bioware spells scripts contain s0, s1, s2, or s3 after the prefix to indicate the type of spell script. S0 scripts are for player castable spells. S1 scripts are for creature spell-like abilities. S2 scripts are for feats or special abilities. S3 scripts are for items/item properties.
  • All Bioware spell scripts conclude (suffix) with a name that uniquely describes the spell script.
  • All three of these parts are separated by an underscore.