Difference between revisions of "Bjornify familiar"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(r13638)
 
imported>Bale
 
Line 19: Line 19:
 
code1={{CodeSample|
 
code1={{CodeSample|
 
title=Code Sample|
 
title=Code Sample|
description=Returns true if the El Vibrato Megadrone is successfully equipped to the Crown of Thrones.|
+
description=Returns true if the El Vibrato Megadrone is successfully equipped to the Buddy Bjorn.|
 
code=
 
code=
 
<syntaxhighlight>
 
<syntaxhighlight>

Latest revision as of 05:18, 10 November 2014

Function Syntax

boolean bjornify_familiar(familiar target )

  • target is the familiar to enthrone.

Bjornifies the specified familiar in a Buddy Bjorn. Returns false if something goes wrong with the bjornifying process (e.g. the player does not have the specified familiar in his terrarium, or the player does not have a Buddy Bjorn).

Code Sample

Returns true if the El Vibrato Megadrone is successfully equipped to the Buddy Bjorn.

boolean bjornify_megadrone() {
   if (my_bjorned_familiar()!=$familiar[el vibrato megadrone])
      return bjornify_familiar($familiar[el vibrato megadrone]);
   return false;
}

CLI Equivalent

The CLI command bjornify has similar functionality.

See Also

enthrone_familiar() | my_enthroned_familiar() | my_bjorned_familiar() | equipped_item()

Special

This command automatically equips the Buddy Bjorn if it is not currently equipped.