Difference between revisions of "Familiar equipment"
Jump to navigation
Jump to search
imported>StDoodle m |
imported>Relyk |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
− | |||
function1={{Function| | function1={{Function| | ||
Line 18: | 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()) );
}