Ancordia_PRC8/_module/nss/time_dayspassed.nss

14 lines
348 B
Plaintext
Raw Normal View History

2023-09-21 19:51:32 -04:00
#include "nwnx_files"
void main()
{
int nCurrentTime = GetSystemTime();
int nStoredTime = GetCampaignInt("TEST", "StoredTime");
int nSecondsPassed = nCurrentTime - nStoredTime;
int nDaysPassed = nSecondsPassed / 86400;
string sDays = IntToString(nDaysPassed);
FloatingTextStringOnCreature(sDays, GetPCSpeaker());
}