Enthrone familiar: Difference between revisions
Jump to navigation
Jump to search
imported>Heeheehee m moved Enthroned familiar to Enthrone familiar: Oops again. |
imported>Bale one very important problem to fix. |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{ | ||
#vardefine:name| | #vardefine:name|enthrone_familiar}}{{ | ||
#vardefine:return_type|boolean}}{{ | #vardefine:return_type|boolean}}{{ | ||
Line 24: | Line 24: | ||
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; | ||
} | } |
Latest revision as of 06:55, 24 July 2010
Function Syntax
boolean enthrone_familiar(familiar target )
- target is the familiar to enthrone.
Enthrones the specified familiar. Returns false if something goes wrong with the enthroning process (e.g. the player does not have the specified familiar in his terrarium, or the player does not have a Crown of Thrones).
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;
}
CLI Equivalent
The CLI command enthrone has similar functionality.
See Also
Special
This command automatically equips the Crown of Thrones if it is not currently equipped.