-
Notifications
You must be signed in to change notification settings - Fork 1
timesincesleep
Daedalus1400 edited this page May 18, 2017
·
3 revisions
The timesincesleep condition checks how long since the player successfully slept.
Added in release version 0.2.0
Must be "timesincesleep".
Accepts a string. Valid values are "<", and ">".
Accepts a number. Number of days since last sleep completed.
The following example checks if the player has slept in the past two in game days (~40 minutes real time):
{"type": "timesincesleep", "comparison": ">", "value": 2}
This is will evaluate as:
(world.getTotalWorldTime() - lastsleeptime) > (2 * 24000);