My familiar: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
see also
imported>Bale
m Reverted edits by Bale (talk) to last revision by StDoodle
Line 5: Line 5:
FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Your Character|


function1={{Function|
function1={{Function|
Line 25: Line 26:
</syntaxhighlight>
</syntaxhighlight>
}}|
}}|
see_also={{SeeAlso|my_companion|my_thrall}}|
 
special=When not logged in, returns $familiar[none] (needs spading).|
special=When not logged in, returns $familiar[none] (needs spading).
}}
}}
[[Category:Your Character]]

Revision as of 08:50, 8 November 2014

Function Syntax

familiar my_familiar()

Returns your current familiar.

Code Samples

If your familiar is a leprechaun, retrieve a meat detector.

if(my_familiar() == $familiar[leprechaun]) {
retrieve_item(1 , $item[meat detector]);
}

Special

When not logged in, returns $familiar[none] (needs spading).