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,22 @@
#include "nwnx_events"
#include "nwnx_time"
const int STEALTH_INTERVAL_SECONDS = 12;
void main()
{
object oPC = OBJECT_SELF;
if (!GetIsPC(oPC))
return;
int nTimestamp = NWNX_Time_GetTimeStamp();
int nTimeTillNextStealth = STEALTH_INTERVAL_SECONDS - (nTimestamp - GetLocalInt(oPC, "LAST_STEALTH_TIME"));
if (nTimeTillNextStealth > 0)
{
SetActionMode(oPC, ACTION_MODE_STEALTH, FALSE);
FloatingTextStringOnCreature("*You can enter stealth again in "+IntToString(nTimeTillNextStealth)+" seconds*", oPC, FALSE);
}
else
{
SetLocalInt(oPC, "LAST_STEALTH_TIME", nTimestamp);
}
}