Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include "nwnx_events"
#include "nwnx_object"
#include "pat_inc"
void main()
{
object oDM = OBJECT_SELF;
if (!GetIsPC(oDM) ||
!GetIsDM(oDM))
return;
int nSetting = pat_GetDMSetting(oDM);
if (nSetting == 0) // Default
return;
if (NWNX_Events_GetEventData("OBJECT_TYPE") == "5") // creature spawn
{
object oArea = NWNX_Object_StringToObject( NWNX_Events_GetEventData("AREA") );
SetLocalInt(oArea, PAT_VAR_DM_SETTING, nSetting);
}
}