Difference between pages "Template:Attention" and "Gnomads available"
(Difference between pages)
Jump to navigation
Jump to search
imported>StDoodle (Created page with '<includeonly><div style="align: center; text-align: center; border: dotted 1px red; color: black; padding: 5px;"><p><span style="background-color: black; padding: 4px; font-size:…') |
imported>Bale (copied code example from old in_moxie_sign() page) |
||
Line 1: | Line 1: | ||
− | + | {{ | |
− | + | #vardefine:name|gnomads_available}}{{ | |
− | + | #vardefine:return_type|boolean}}{{ | |
− | |||
− | + | FunctionPage| | |
+ | name={{#var:name}}| | ||
− | + | function1={{Function| | |
− | + | name={{#var:name}}| | |
− | + | return_type={{#var:return_type}} | |
− | + | }}| | |
− | + | function_description=This function returns true if the logged-in character has has access to the Gnomish Gnomad Camp.| | |
− | [[Category: | + | code1={{CodeSample| |
− | + | title=Code Samples| | |
+ | description=This example will adventure in the Thugnderdome if you are able.| | ||
+ | code= | ||
+ | <syntaxhighlight> | ||
+ | if(in_moxie_sign() && my_adventures() > 0) { | ||
+ | adventure(my_adventures() , $location[thugnderdome]); | ||
+ | } | ||
+ | </syntaxhighlight> | ||
+ | }}| | ||
+ | |||
+ | see_also={{SeeAlso|knoll_available|canadia_available}}| | ||
+ | special=When not logged in, this function returns false. | ||
+ | }} | ||
+ | |||
+ | [[Category:Your Character]] |
Revision as of 10:00, 19 May 2011
Function Syntax
boolean gnomads_available()
This function returns true if the logged-in character has has access to the Gnomish Gnomad Camp.
Code Samples
This example will adventure in the Thugnderdome if you are able.
if(in_moxie_sign() && my_adventures() > 0) {
adventure(my_adventures() , $location[thugnderdome]);
}
See Also
Special
When not logged in, this function returns false.