GetModule

The   NWScript command returns the current module as an object. It theoretically returns OBJECT_INVALID on an error, if such an error is possible.

A somewhat common use of the module object is storing local variables that need to be accessible from arbitrary scripts.