Initial Commit
Initial Commit
This commit is contained in:
13
_module/nss/time_dayspassed.nss
Normal file
13
_module/nss/time_dayspassed.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
#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());
|
||||
}
|
||||
Reference in New Issue
Block a user