Difference between revisions of "Use familiar"
Jump to navigation
Jump to search
imported>Bale m |
imported>RogerMexico |
||
Line 18: | Line 18: | ||
needscode=yes| | needscode=yes| | ||
+ | |||
+ | code1={{CodeSample| | ||
+ | title=Code Sample| | ||
+ | |||
+ | code=<syntaxhighlight> | ||
+ | use_familiar( $familiar [Cocoabo]); | ||
+ | </syntaxhighlight> | ||
+ | }}| | ||
see_also={{SeeAlso|have_familiar}}| | see_also={{SeeAlso|have_familiar}}| |
Revision as of 13:29, 26 September 2010
needs(code_samples);
Function Syntax
boolean use_familiar(familiar buddy )
- buddy is the familiar to equip
Switches your current familiar for the the familiar buddy specified. Returns true if the specified familiar buddy is your current familiar after the function's completion (so it will return true if you try to switch to your current familiar).
Code Sample
use_familiar( $familiar [Cocoabo]);
CLI Equivalent
The CLI command "familiar" has the same function when a familiar type is specified as the only parameter.