Difference between revisions of "Familiar equipped equipment"
Jump to navigation
Jump to search
imported>Bale m |
imported>Eliteofdelete |
||
Line 16: | Line 16: | ||
function_description=Returns the familiar equipment worn by the specified familiar {{pspan|check_me}}. If {{pspan|check_me}} is not wearing any equipment, or you do not have that familiar, it will return $item[none].| | function_description=Returns the familiar equipment worn by the specified familiar {{pspan|check_me}}. If {{pspan|check_me}} is not wearing any equipment, or you do not have that familiar, it will return $item[none].| | ||
+ | code1={{CodeSample| | ||
+ | title=Code Samples| | ||
+ | description=This example tells you what your current familiar has equipped.| | ||
+ | code= | ||
+ | <syntaxhighlight> | ||
+ | item fam_equip = familiar_equipped_equipment(my_familiar()); | ||
+ | if (fam_equip == $item[none]) | ||
+ | print("Your familiar "+my_familiar()+" currently has nothing equipped.", "blue"); | ||
+ | else print("Your familiar "+my_familiar()+" currently has "+fam_equip+" equipped.", "blue"); | ||
+ | </syntaxhighlight>| | ||
− | + | }}| | |
see_also={{SeeAlso|familiar_equipment}}| | see_also={{SeeAlso|familiar_equipment}}| |
Latest revision as of 03:33, 14 January 2015
Function Syntax
item familiar_equipped_equipment(familiar check_me )
- check_me is the familiar to check
Returns the familiar equipment worn by the specified familiar check_me. If check_me is not wearing any equipment, or you do not have that familiar, it will return $item[none].
Code Samples
This example tells you what your current familiar has equipped.
item fam_equip = familiar_equipped_equipment(my_familiar());
if (fam_equip == $item[none])
print("Your familiar "+my_familiar()+" currently has nothing equipped.", "blue");
else print("Your familiar "+my_familiar()+" currently has "+fam_equip+" equipped.", "blue");