Lankhmar_PRC8/_module/nss/autosave.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

21 lines
423 B
Plaintext

/* Do Once Area Auto-Save
Script Designed by Doc Halloween on July 08, 2003
with help from Jassper (who made Bioware Forums' Newbe F.A.Q
Place in Area Properties then Events then OnEnter */
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
DoSinglePlayerAutoSave();
}