My familiar: Difference between revisions
Jump to navigation
Jump to search
imported>Efilnikufecin No edit summary |
imported>Bale see also |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | |||
#vardefine:name|my_familiar}}{{ | |||
#vardefine:return_type|familiar}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | |||
[[Category: | |||
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
Special
When not logged in, returns $familiar[none] (needs spading).