Familiar equipment: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle Created page with '{{#vardefine:name|familiar_equipment}} {{#vardefine:return_type|item}} {{FunctionPage| name={{#var:name}}| function_category=Equipment| function1={{Function| name={{#var:name}}…' |
imported>Relyk No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:name|familiar_equipment}} | {{ | ||
{{#vardefine:return_type|item}} | #vardefine:name|familiar_equipment}}{{ | ||
#vardefine:return_type|item}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 17: | Line 17: | ||
function_description=Reports the most commonly associated familiar equipment for the specified familiar {{pspan|check_me}}.| | function_description=Reports the most commonly associated familiar equipment for the specified familiar {{pspan|check_me}}.| | ||
code1={{CodeSample| | |||
title=Code Sample| | |||
description=The following checks if your familiar has its associated equipment and equips the equipment if it does not.| | |||
code= | |||
<syntaxhighlight> | |||
if( familiar_equipped_equipment(my_familiar()) != familiar_equipment(my_familiar()) ){ | |||
equip( $slot[familiar], familiar_equipment(my_familiar()) ); | |||
} | |||
</syntaxhighlight> | |||
}}| | |||
see_also={{SeeAlso|familiar_equipped_equipment}}| | see_also={{SeeAlso|familiar_equipped_equipment}}| | ||
}} | }} | ||
[[Category:Equipment]] |
Latest revision as of 01:28, 13 April 2014
Function Syntax
item familiar_equipment(familiar check_me )
- check_me is the familiar to check the equipment association of
Reports the most commonly associated familiar equipment for the specified familiar check_me.
Code Sample
The following checks if your familiar has its associated equipment and equips the equipment if it does not.
if( familiar_equipped_equipment(my_familiar()) != familiar_equipment(my_familiar()) ){
equip( $slot[familiar], familiar_equipment(my_familiar()) );
}