My familiar: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>Bale see also |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{ | ||
#vardefine:name|my_familiar}} | #vardefine:name|my_familiar}}{{ | ||
{{ | |||
#vardefine:return_type|familiar}}{{ | #vardefine:return_type|familiar}}{{ | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 27: | Line 25: | ||
</syntaxhighlight> | </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).