Numeric modifier: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
No edit summary
imported>Heeheehee
m Filled in the info requested by the RFI. Code sample coming up in a bit!
Line 65: Line 65:
p1desc={{Pspan|buddy}} is the familiar to check|
p1desc={{Pspan|buddy}} is the familiar to check|
p2desc={{Pspan|check_me}} is the modifier to check|
p2desc={{Pspan|check_me}} is the modifier to check|
p3desc={{Pspan|integer}} is ???|
p3desc={{Pspan|integer}} is the familiar's weight (buffed, not including equipment)|
p4desc={{Pspan|some_item}} is ???|
p4desc={{Pspan|some_item}} is the familiar's equipment|
}}
}}
<p>I have no idea how this version of numeric_modifier() works; please help.|
<p>Returns the familiar's effect on this modifier (for instance, a baby gravy fairy would return some positive float for "Item Drops").|


needscode=yes|
needscode=yes|
Line 75: Line 75:


}}
}}
{{RFI|Help! I have no idea how the familiar version works!}}

Revision as of 00:06, 18 March 2010

needs(code_samples);

Function Syntax

float numeric_modifier(string modifier_name )

float numeric_modifier(string check_me ,string modifier_name )

float numeric_modifier(item check_me ,string modifier_name )

float numeric_modifier(effect check_me ,string modifier_name )

float numeric_modifier(skill check_me ,string modifier_name )

  • check_me is the string, item, effect or skill to check
  • modifier_name is the modifier to check

Returns your current modifier total for modifier_name, or the amount of modification from check_me if specified.


float numeric_modifier(familiar buddy ,string check_me ,int integer ,item some_item )

  • buddy is the familiar to check
  • check_me is the modifier to check
  • integer is the familiar's weight (buffed, not including equipment)
  • some_item is the familiar's equipment

Returns the familiar's effect on this modifier (for instance, a baby gravy fairy would return some positive float for "Item Drops").

CLI Equivalent

The CLI command "modtrace" gives access to the same information when the correct parameters are specified.