My familiar: Difference between revisions
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: | ||
{{#vardefine:name|my_familiar}} | |||
{{#vardefine:return_type|familiar}} | |||
{{FunctionPage| | |||
name={{#var:name}}| | |||
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]); | |||
} | } | ||
</ | </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).