My turncount: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>Bale see also total_turns_played |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:name|my_turncount}} | {{ | ||
{{#vardefine:return_type|int}} | #vardefine:name|my_turncount}}{{ | ||
#vardefine:return_type|int}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 27: | Line 27: | ||
}}| | }}| | ||
see_also={{SeeAlso|can_interact}}| | see_also={{SeeAlso|my_daycount|can_interact|total_turns_played}}| | ||
special=When not logged in, this function returns 0. | special=When not logged in, this function returns 0. | ||
}} | }} | ||
[[Category:Your Character]] |
Latest revision as of 07:09, 4 November 2014
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
Special
When not logged in, this function returns 0.