My familiar: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Efilnikufecin
No edit summary
imported>Bale
see also
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''familiar my_familiar()'''<br />
{{
Returns your current familiar.
#vardefine:name|my_familiar}}{{
#vardefine:return_type|familiar}}{{


[[Category:Your Character | My familiar()]]
FunctionPage|
[[Category:Ash Functions |My familiar()]]
name={{#var:name}}|
 
function1={{Function|
name={{#var:name}}|
aggregate={{#var:aggregate}}|
return_type={{#var:return_type}}|
return_also={{#var:return_also}}
}}|
 
function_description=Returns your current familiar.|
 
code1={{CodeSample|
title=Code Samples|
description=If your familiar is a leprechaun, retrieve a meat detector.|
code=
<syntaxhighlight>
if(my_familiar() == $familiar[leprechaun]) {
retrieve_item(1 , $item[meat detector]);
}
</syntaxhighlight>
}}|
see_also={{SeeAlso|my_companion|my_thrall}}|
special=When not logged in, returns $familiar[none] (needs spading).|
}}
 
[[Category:Your Character]]

Latest revision as of 08:51, 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]);
}

See Also

my_companion() | my_thrall()

Special

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