Numeric modifier: Difference between revisions
imported>StDoodle m moved Numeric modifier alpha to Numeric modifier |
imported>StDoodle No edit summary |
||
Line 1: | Line 1: | ||
numeric_modifier | {{ | ||
#vardefine:name|numeric_modifier}}{{ | |||
#vardefine:return_type|float}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | |||
function_category=Modifier Functions| | |||
function1={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|string|modifier_name}}| | |||
}}| | |||
function2={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|string|check_me}}| | |||
parameter2={{Param|string|modifier_name}}| | |||
}}| | |||
function3={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|item|check_me}}| | |||
parameter2={{Param|string|modifier_name}}| | |||
}}| | |||
function4={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|effect|check_me}}| | |||
parameter2={{Param|string|modifier_name}}| | |||
}}| | |||
function5={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|skill|check_me}}| | |||
parameter2={{Param|string|modifier_name}}| | |||
p1desc={{Pspan|check_me}} is the string, item, effect or skill to check| | |||
p2desc={{Pspan|modifier_name}} is the modifier to check| | |||
}}| | |||
function_description=Returns your current modifier total for {{pspan|modifier_name}}, or the amount of modification from {{pspan|check_me}} if specified.</p><br /> | |||
{{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|familiar|buddy}}| | |||
parameter2={{Param|string|check_me}}| | |||
parameter3={{Param|int|integer}}| | |||
parameter4={{Param|item|some_item}}| | |||
p1desc={{Pspan|buddy}} is the familiar to check| | |||
p2desc={{Pspan|check_me}} is the modifier to check| | |||
p3desc={{Pspan|integer}} is ???| | |||
p4desc={{Pspan|some_item}} is ???| | |||
}} | |||
<p>I have no idea how this version of numeric_modifier() works; please help.| | |||
needscode=yes| | |||
cli_equiv=The CLI command "modtrace" gives access to the same information when the correct parameters are specified.| | |||
}} | |||
{{RFI|Help! I have no idea how the familiar version works!}} |
Revision as of 17:47, 17 March 2010
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 ???
- some_item is ???
I have no idea how this version of numeric_modifier() works; please help.
CLI Equivalent
The CLI command "modtrace" gives access to the same information when the correct parameters are specified.
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:
- Help! I have no idea how the familiar version works!