Numeric modifier: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>Heeheehee
m You forgot to replace some stuff.
Line 62: Line 62:
parameter1={{Param|familiar|buddy}}|
parameter1={{Param|familiar|buddy}}|
parameter2={{Param|string|check_me}}|
parameter2={{Param|string|check_me}}|
parameter3={{Param|int|integer}}|
parameter3={{Param|int|weight}}|
parameter4={{Param|item|some_item}}|
parameter4={{Param|item|equipment}}|
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|

Revision as of 01:11, 19 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.

Special Syntax for Familiars

float numeric_modifier(familiar buddy ,string check_me ,int weight ,item equipment )

  • buddy is the familiar to check
  • check_me is the modifier to check
  • weight is the familiar's weight (buffed, not including equipment)
  • equipment 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.