My enthroned familiar: Difference between revisions
Jump to navigation
Jump to search
imported>Heeheehee m Other page added to go along with enthrone(). ASH.php probably will need updating some time soon. |
imported>Heeheehee mNo edit summary |
||
(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 23: | Line 22: | ||
boolean enthrone_megadrone() { | boolean enthrone_megadrone() { | ||
if (my_enthroned_familiar()!=$familiar[el vibrato megadrone]) | if (my_enthroned_familiar()!=$familiar[el vibrato megadrone]) | ||
return | return enthrone_familiar($familiar[megadrone]); | ||
return false; | return false; | ||
} | } | ||
</syntaxhighlight>}}| | </syntaxhighlight>}}| | ||
see_also={{SeeAlso| | see_also={{SeeAlso|enthrone_familiar|equipped_item}}| | ||
}} | }} | ||
[[Category:Equipment]] |
Latest revision as of 17:59, 23 July 2010
Function Syntax
familiar my_enthroned_familiar()
Returns the familiar currently enthroned.
Code Sample
Returns true if the El Vibrato Megadrone is successfully equipped to the Crown of Thrones.
boolean enthrone_megadrone() {
if (my_enthroned_familiar()!=$familiar[el vibrato megadrone])
return enthrone_familiar($familiar[megadrone]);
return false;
}