NCS Format

NCS files are compiled scripts. All values are stored in big-endian format

(0x01) Copy Value Down

 * Arguments:
 * (int32) Offset
 * (uint16) Length
 * Stack remains unchanged

(0x02) Push Constant onto Stack

 * No arguments
 * Single element is pushed onto stack

(0x05) Call Game Engine Function

 * Arguments
 * Function index (see nwnscript.nss, game dependent)
 * Function parameter count
 * Stack is popped by the second argument and then return value of the game function is pushed (unless void)