Difference between revisions of "My turncount"
Jump to navigation
Jump to search
imported>Efilnikufecin |
imported>Zarqon m (not logged in info) |
||
Line 1: | Line 1: | ||
[[int]] [[my_turncount()]] | [[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 | + | 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: |
− | |||
− | |||
<code> | <code> | ||
− | [[int]] [ [[string]] ] Accomplishments; | + | [[int]][ [[string]] ] Accomplishments; |
− | if(adventure(1,$[[location]][The Boss Bat's Lair]) { | + | if (adventure(1,$[[location]][The Boss Bat's Lair]) { |
Accomplishments["Defeated Boss Bat"] = [[my_turncount()]]; | Accomplishments["Defeated Boss Bat"] = [[my_turncount()]]; | ||
} | } | ||
Line 14: | Line 12: | ||
[[Category:Your Character | My turncount()]] | [[Category:Your Character | My turncount()]] | ||
[[Category:Ash Functions |My turncount()]] | [[Category:Ash Functions |My turncount()]] | ||
+ | |||
+ | When not logged in, this function returns 0. |
Revision as of 05:00, 29 January 2009
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.