Difference between pages "User:Heeheehee" and "Have familiar"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Heeheehee
m
 
imported>Heeheehee
(RFI!)
 
Line 1: Line 1:
==About Me==
+
{{
Started playing KoL at the end of '04 (Wow, I feel old). Started scripting in ASH in the middle of '09. And started contributing to the Mafia wiki in the start of '10!
+
#vardefine:name|have_familiar}}{{
==Projects==
+
#vardefine:return_type|boolean}}{{
<br />Scripts I've published:  
 
* [http://kolmafia.us/showthread.php?t=3248 Profit from Effects], a derivative of a derivative of Zarqon's profit.ash, although it now does so much more.
 
* [http://kolmafia.us/showthread.php?3549-manageprices.ash-Quick-mall-management! Various] [http://kolmafia.us/showthread.php?3922-pyramid.ash-Disable-links-in-the-pyramid-that-might-be-bad relay] [http://kolmafia.us/showthread.php?2072-ZLib-Zarqon-s-useful-function-library&p=28481&viewfull=1#post28481 override] scripts, that I find useful. Generally. (These get published if I think they're somewhat useful.)
 
I'm also the individual behind making the SyntaxHighlight extension ASH-compliant.
 
  
<br />Known issues present in the latest version (available for testing [http://lide.wangsibs.com/test/test.php here]):
+
FunctionPage|
* User-defined variables with the same name as ASH internal functions will be highlighted.
+
name={{#var:name}}|
* Functions/Control structures are highlighted within datatype constants (e.g. $skill[The Ode to Booze]).
+
function_category=Equipment|
Since it works just fine otherwise, I'm not going to bother fixing these.
+
 
 +
function1={{Function|
 +
name={{#var:name}}|
 +
aggregate={{#var:aggregate}}|
 +
return_type={{#var:return_type}}|
 +
return_also={{#var:return_also}}|
 +
parameter1={{Param|familiar|check_me}}|
 +
p1desc={{Pspan|check_me}} is the familiar to check for|
 +
}}|
 +
 
 +
function_description=Returns true if you have the specified familiar {{pspan|check_me}}, and false otherwise. The familiar will be detected if it is active or in your Terrarium. It will not notice familiar hatchlings since those are items, not familiars and need to be detected separately.</p>
 +
 
 +
<p>Mafia will not detect transformations of familiars due to wardrobe or doppleshifting, so this function is incapable of detecting such transformation if it is called during combat.|
 +
 
 +
needscode=yes|
 +
 
 +
see_also={{SeeAlso|use_familiar}}|
 +
cli_equiv=The CLI command "familiar" with the parameter "list" functions similarly.|
 +
special= Note that in Bad Moon it only checks the familiars you have acquired in the current run.|
 +
}}
 +
 
 +
{{RFI|I'm almost completely sure that this is the case, but can someone confirm that this function returns false if you can't access the familiar in question because you're in BM (assuming that you've used the hatchling in a previous incarnation)?}}

Revision as of 07:51, 9 March 2010

needs(code_samples);

Function Syntax

boolean have_familiar(familiar check_me )

  • check_me is the familiar to check for

Returns true if you have the specified familiar check_me, and false otherwise. The familiar will be detected if it is active or in your Terrarium. It will not notice familiar hatchlings since those are items, not familiars and need to be detected separately.

Mafia will not detect transformations of familiars due to wardrobe or doppleshifting, so this function is incapable of detecting such transformation if it is called during combat.

CLI Equivalent

The CLI command "familiar" with the parameter "list" functions similarly.

See Also

use_familiar()

Special

Note that in Bad Moon it only checks the familiars you have acquired in the current run.


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • I'm almost completely sure that this is the case, but can someone confirm that this function returns false if you can't access the familiar in question because you're in BM (assuming that you've used the hatchling in a previous incarnation)?