In bad moon: Difference between revisions

From Kolmafia
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>StDoodle
mNo edit summary
Line 1: Line 1:
{{#vardefine:name|in_bad_moon}}
{{
{{#vardefine:return_type|boolean}}
#vardefine:name|in_bad_moon}}{{
#vardefine:return_type|boolean}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Your Character|
function_category=Your Character|

Revision as of 20:09, 8 March 2010

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

in_hardcore() | in_moxie_sign() | in_muscle_sign() | in_mysticality_sign() | my_familiar() | use_familiar()

Special

Returns false when not logged in.