Total turns played
This function returns the total number of adventures used by the logged-in character since they were created.
Turns until a "Lights Out" adventure in Spookyraven is based on total turns played.
print( "Number of turns to next 'Lights Out' adventure: " + (37 - total_turns_played() % 37 ) );
When not logged in, this function returns 0.