Difference between revisions of "My turncount"
Jump to navigation
Jump to search
imported>StDoodle m (moved My turncount() to My turncount: standards) |
imported>StDoodle m |
||
Line 1: | Line 1: | ||
− | {{ | + | {{#vardefine:name|my_turncount}} |
− | {{ | + | {{#vardefine:return_type|int}} |
− | name= | + | |
− | + | {{FunctionPage| | |
− | }} | + | name={{#var:name}}| |
+ | function_category=CATEGORY| | ||
+ | |||
+ | function1={{Function| | ||
+ | name={{#var:name}}| | ||
+ | aggregate={{#var:aggregate}}| | ||
+ | return_type={{#var:return_type}}| | ||
+ | return_also={{#var:return_also}}| | ||
+ | }}| | ||
− | This function returns the total number of adventures used thus far by the logged-in character during the current ascension | + | function_description=This function returns the total number of adventures used thus far by the logged-in character during the current ascension.| |
− | + | code1={{CodeSample| | |
− | + | title=Code Sample| | |
− | + | description=| | |
− | + | code= | |
− | + | <syntaxhighlight> | |
− | + | // mocks you if you've spent too many turns this ascension | |
− | </ | + | if (my_turncount() > 2000) { |
− | + | print("Shouldn't you ascend soon?"); | |
+ | } | ||
+ | </syntaxhighlight> | ||
+ | }}| | ||
− | When not logged in, this function returns 0. | + | see_also={{SeeAlso|can_interact}}| |
+ | special=When not logged in, this function returns 0. | ||
+ | }} |
Revision as of 18:27, 28 February 2010
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.