In bad moon: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang Created page with '{{#vardefine:name|in_bad_moon}} {{#vardefine:return_type|boolean}} {{FunctionPage| name={{#var:name}}| function_category=Your Character| function1={{Function| name={{#var:name}…' |
imported>Bale r9307 |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:name|in_bad_moon}} | {{ | ||
{{#vardefine:return_type|boolean}} | #vardefine:name|in_bad_moon}}{{ | ||
#vardefine:return_type|boolean}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 28: | Line 28: | ||
}}| | }}| | ||
see_also={{SeeAlso|in_hardcore| | see_also={{SeeAlso|in_hardcore|my_path|my_sign}}| | ||
special=Returns false when not logged in. | special=Returns false when not logged in. | ||
}} | }} | ||
[[Category:Your Character]] |
Latest revision as of 10:17, 19 May 2011
Function Syntax
boolean in_bad_moon()
This function will return true if you are under the Bad Moon sign. If you are under any other sign, if will return false.
Code Samples
This code will change your familiar to a black cat when in Bad Moon.
if(in_bad_moon()) {
if(my_familiar() != $familiar[black cat]) {
use_familiar($familiar[black cat]);
}
}
See Also
Special
Returns false when not logged in.