My familiar: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>Bale mNo edit summary |
||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 29: | Line 28: | ||
special=When not logged in, returns $familiar[none] (needs spading). | special=When not logged in, returns $familiar[none] (needs spading). | ||
}} | }} | ||
[[Category:Your Character]] |
Revision as of 21:34, 21 May 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).