Pulls remaining: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle Created page with '{{#vardefine:name|pulls_remaining}} {{#vardefine:return_type|int}} {{FunctionPage| name={{#var:name}}| function_category=Item Management| function1={{Function| name={{#var:name…' |
imported>That FN Ninja m pulls_remaining returns -1 if you can_interact() |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:name|pulls_remaining}} | {{ | ||
{{#vardefine:return_type|int}} | #vardefine:name|pulls_remaining}}{{ | ||
#vardefine:return_type|int}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 13: | Line 13: | ||
}}| | }}| | ||
function_description=Returns the number of pulls remaining for the day for characters in-Ronin, | function_description=Returns the number of pulls remaining for the day for characters in-Ronin, 0 if you are in hardcore, and -1 otherwise.| | ||
code1={{CodeSample| | code1={{CodeSample| | ||
Line 26: | Line 26: | ||
} | } | ||
</syntaxhighlight>}}| | </syntaxhighlight>}}| | ||
special=Returns 0 when not logged in. | |||
}} | |||
[[Category:Item Management]] |
Latest revision as of 16:20, 7 July 2011
Function Syntax
int pulls_remaining()
Returns the number of pulls remaining for the day for characters in-Ronin, 0 if you are in hardcore, and -1 otherwise.
Code Sample
The following checks to see if you've forgotten to use up your daily pulls.
if (pulls_remaining() > 0) {
print("You still have " + pulls_remaining() + " pulls you can make today.");
} else {
print("You're all set on daily pulls.");
}
Special
Returns 0 when not logged in.