My turncount: Difference between revisions
Jump to navigation
Jump to search
imported>Zarqon m more links |
imported>StDoodle mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:my_turncount()}} | |||
{{function| | |||
name=my_turncount| | |||
returns=int| | |||
}} | |||
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: | 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: | ||
Line 11: | Line 15: | ||
</code> | </code> | ||
[[Category:Your Character | My turncount()]] | [[Category:Your Character | My turncount()]] | ||
When not logged in, this function returns 0. | When not logged in, this function returns 0. |
Revision as of 20:54, 22 February 2010
[[Data Types#{{{return_type}}}|{{{return_type}}}]] 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.