Difference between revisions of "Total turns played"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(r13996)
 
imported>Bale
Line 17: Line 17:
 
code1={{CodeSample|
 
code1={{CodeSample|
 
title=Code Sample|
 
title=Code Sample|
description=Turns until a Light's Out adventure in Spookyraven is based on total turns played.|
+
description=Turns until a "Lights Out" adventure in Spookyraven is based on total turns played.|
 
code=
 
code=
 
<syntaxhighlight>
 
<syntaxhighlight>

Revision as of 07:19, 4 November 2014

Function Syntax

int total_turns_played()

This function returns the total number of adventures used by the logged-in character since they were created.

Code Sample

Turns until a "Lights Out" adventure in Spookyraven is based on total turns played.

print( "Number of turns to next 'Lights Out' adventure: " + ( total_turns_played() % 37 ) );

See Also

my_turncount() | my_daycount()

Special

When not logged in, this function returns 0.