2025/07/15 Update
Added PEPS AI. Updated module name. Set all henchmen to have a random race &/or class based name using a custom version of Markshire's Nomeclature scripts, as well as appearance. Set Constructs, Undead, Outsiders & Elementals to not require food or drink. Full compile.
This commit is contained in:
44
_module/nss/nui_i_library.nss
Normal file
44
_module/nss/nui_i_library.nss
Normal file
@@ -0,0 +1,44 @@
|
||||
/// ----------------------------------------------------------------------------
|
||||
/// @file nui_i_library.nss
|
||||
/// @author Ed Burke (tinygiant98) <af.hog.pilot@gmail.com>
|
||||
/// @brief Boilerplate code for creating a library dispatcher. Should only be
|
||||
/// included in library scripts as it implements main().
|
||||
/// ----------------------------------------------------------------------------
|
||||
|
||||
#include "nui_i_main"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Function Protoypes
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
void DefineForm();
|
||||
void BindForm();
|
||||
void HandleNUIEvents();
|
||||
void HandleModuleEvents();
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Function Implementations
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// These are dummy implementations to prevent nwnsc from complaining that they
|
||||
// do not exist. If you want to compile in the toolset rather than using nwnsc,
|
||||
// comment these lines out.
|
||||
//#pragma default_function(DefineForm)
|
||||
//#pragma default_function(BindForm)
|
||||
//#pragma default_function(HandleNUIEvents)
|
||||
//#pragma default_function(HandleModuleEvents)
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Library Dispatch
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
void main()
|
||||
{
|
||||
string sOperation = GetScriptParam(NUI_FUNCTION);
|
||||
|
||||
if (sOperation == NUI_DEFINE) DefineForm();
|
||||
else if (sOperation == NUI_BIND) BindForm();
|
||||
else if (sOperation == NUI_EVENT_NUI) HandleNUIEvents();
|
||||
else if (sOperation == NUI_EVENT_MOD) HandleModuleEvents();
|
||||
else NUI();
|
||||
}
|
||||
Reference in New Issue
Block a user