My familiar: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
m moved My familiar() to My familiar: Conformity
imported>Grotfang
Conform to template
Line 1: Line 1:
'''familiar my_familiar()'''<br />
{{#vardefine:name|my_familiar}}
Returns your current familiar.
{{#vardefine:return_type|familiar}}


[[Category:Your Character | My familiar()]]
{{FunctionPage|
[[Category:Ash Functions |My familiar()]]
name={{#var:name}}|
<pre>#Script check if your current familiar is leprechaun. If true it will retrieve 1 meat detector
function_category=Your Character|
if(my_familiar() == $familiar[leprechaun]){
 
retrieve_item(1, $item[meat detector]);
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]);
}
}
</pre>
</syntaxhighlight>
}}|
 
special=When not logged in, returns $familiar[none] (needs spading).
}}

Revision as of 19:16, 28 February 2010



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).