My turncount: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
mNo edit summary
Line 1: Line 1:
{{#vardefine:name|my_turncount}}
{{
{{#vardefine:return_type|int}}
#vardefine:name|my_turncount}}{{
#vardefine:return_type|int}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Your Character|
function_category=Your Character|

Revision as of 14:48, 8 March 2010

Function Syntax

int my_turncount()

This function returns the total number of adventures used thus far by the logged-in character during the current ascension.

Code Sample

// mocks you if you've spent too many turns this ascension
if (my_turncount() > 2000) {
   print("Shouldn't you ascend soon?");
}

See Also

can_interact()

Special

When not logged in, this function returns 0.