In bad moon: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>Bale
mNo edit summary
Line 5: Line 5:
FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Your Character|


function1={{Function|
function1={{Function|
Line 32: Line 31:
special=Returns false when not logged in.
special=Returns false when not logged in.
}}
}}
[[Category:Your Character]]

Revision as of 21:39, 21 May 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.