My turncount

From Kolmafia
Revision as of 06:33, 29 January 2009 by imported>Zarqon (more links)
Jump to navigation Jump to search

int my_turncount()

This function returns the total number of adventures used thus far by the logged-in character during the current ascension as an int. With the introduction of can_interact(), the use of this function to determine whether a softcore character is still in Ronin is no longer required, but it can still be used for logging:

int[string] accomplishments;

if (adventure(1,$location[The Boss Bat's Lair]) {
  accomplishments["Defeated Boss Bat"] = my_turncount();
}

When not logged in, this function returns 0.