Difference between revisions of "My turncount"

From Kolmafia
Jump to navigation Jump to search
imported>Metraxis
(New Page)
 
imported>Efilnikufecin
Line 12: Line 12:
 
  }
 
  }
 
</code>
 
</code>
 +
[[Category:Your Character | My turncount()]]
 +
[[Category:Ash Functions |My turncount()]]

Revision as of 13:03, 26 June 2007

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.

An example:

int [ string ] Accomplishments;

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