Difference between revisions of "Appearance rates"

From Kolmafia
Jump to navigation Jump to search
imported>Heeheehee
m
imported>StDoodle
m
Line 16: Line 16:
 
}}|
 
}}|
  
function_description=Returns a map, keyed by monster, with the appearance rate percentages as decimal values (ie a 30% rate monster has a value of 30.0). Bosses, semirare encounters, and other one-time-only monsters have a value of 0.0; ultra-rare monsters have a negative value. Does not account for combat rate modifiers, olfaction, etc.|
+
function_description=Returns a map, keyed by monster, with the appearance rate percentages as decimal values (ie a 30% rate monster has a value of 30.0). Bosses, semirare encounters, and other one-time-only monsters have a value of 0.0; ultra-rare monsters have a negative value (the actual value varies; test by looking for value < 0, not value == -1). Does not account for combat rate modifiers, olfaction, etc.|
  
 
needscode=yes|
 
needscode=yes|
  
 
}}
 
}}
{{RFI|Not logged in value?|How are ultra-rare numbers arrived at?}}
+
{{RFI|Not logged in value?|}}
Preliminary testing indicates that ultra-rare "rates" are the same as normal encounters, except multiplied by negative 1. Values that haven't been logged seem to appear as -1, although I've only seen this for noncombats in the Skate Park. As such, take the second piece of advice with a grain of salt.--[[User:Heeheehee|Heeheehee]] 03:45, 6 March 2010 (UTC)
 

Revision as of 09:57, 6 March 2010



needs(code_samples);

Function Syntax

float [monster] appearance_rates(location place )

  • place is the adventuring location to parse

Returns a map, keyed by monster, with the appearance rate percentages as decimal values (ie a 30% rate monster has a value of 30.0). Bosses, semirare encounters, and other one-time-only monsters have a value of 0.0; ultra-rare monsters have a negative value (the actual value varies; test by looking for value < 0, not value == -1). Does not account for combat rate modifiers, olfaction, etc.


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:

  • Not logged in value?