Initial Commit

Initial Commit.
This commit is contained in:
Jaysyn904
2025-09-14 15:40:46 -04:00
parent 7083b33d71
commit 1eefc84201
19230 changed files with 11539227 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
/* enc_nightonly
Ensure, an encounter only appears during night
hours (as defined in the module properties)
Make sure, the encounter is INACTIVE by DEFAULT!
*/
void main()
{
object oEnc = OBJECT_SELF;
if(GetIsNight())
{
if (GetLocalInt(OBJECT_SELF, "TIMER") == FALSE)
{
SetLocalInt(OBJECT_SELF, "TIMER", TRUE);
DelayCommand(1500.0, DeleteLocalInt(OBJECT_SELF, "TIMER"));
SetEncounterActive(TRUE, oEnc);
/* make sure, the encounter is inactive by default! */
DelayCommand(2.0f, SetEncounterActive(FALSE, oEnc));
}
}
}