Difference between pages "Minstrel level" and "Bjornify familiar"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Bale
(Created page with "{{ #vardefine:name|minstrel_level}}{{ #vardefine:return_type|int}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggregate}}...")
 
imported>Bale
 
Line 1: Line 1:
 
{{
 
{{
#vardefine:name|minstrel_level}}{{
+
#vardefine:name|bjornify_familiar}}{{
#vardefine:return_type|int}}{{
+
#vardefine:return_type|boolean}}{{
  
 
FunctionPage|
 
FunctionPage|
Line 10: Line 10:
 
aggregate={{#var:aggregate}}|
 
aggregate={{#var:aggregate}}|
 
return_type={{#var:return_type}}|
 
return_type={{#var:return_type}}|
return_also={{#var:return_also}}
+
return_also={{#var:return_also}}|
 +
parameter1={{Param|familiar|target}}|
 +
p1desc={{Pspan|target}} is the familiar to enthrone.|
 
}}|
 
}}|
  
function_description=If you are on the "Avatar of Boris" challenge path this will return level of Boris' minstrel, Clancy. If you are not currently on that quest it will always return 0.|
+
function_description=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).|
  
needscode=yes|
+
code1={{CodeSample|
 +
title=Code Sample|
 +
description=Returns true if the El Vibrato Megadrone is successfully equipped to the Buddy Bjorn.|
 +
code=
 +
<syntaxhighlight>
 +
boolean bjornify_megadrone() {
 +
  if (my_bjorned_familiar()!=$familiar[el vibrato megadrone])
 +
      return bjornify_familiar($familiar[el vibrato megadrone]);
 +
  return false;
 +
}
 +
</syntaxhighlight>}}|
  
see_also={{SeeAlso|minstrel_quest|minstrel_level}}|
+
see_also={{SeeAlso|enthrone_familiar|my_enthroned_familiar|my_bjorned_familiar|equipped_item}}|
 +
special=This command automatically equips the Buddy Bjorn if it is not currently equipped.|
 +
cli_equiv=The CLI command [[enthrone (CLI)|bjornify]] has similar functionality.|
 
}}
 
}}
  
[[Category:Your Character]]
+
[[Category:Equipment]]

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.