Modifier Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
mNo edit summary
imported>AlbinoRhino
mNo edit summary
 
Line 11: Line 11:
{{flink|float|numeric_modifier|effect|string}}
{{flink|float|numeric_modifier|effect|string}}
{{flink|float|numeric_modifier|skill|string}}
{{flink|float|numeric_modifier|skill|string}}
{{flink|float|modifier_eval|string}}
{{flink|float|numeric_modifier|familiar|string|int|item|desc=Access to numeric modifiers.}}
{{flink|float|numeric_modifier|familiar|string|int|item|desc=Access to numeric modifiers.}}
{{flink|stat|stat_modifier|effect|string|desc=Access to modifiers that return one of the stats (e.g. "Equalize").}}
{{flink|stat|stat_modifier|effect|string|desc=Access to modifiers that return one of the stats (e.g. "Equalize").}}

Latest revision as of 22:27, 17 December 2017

These functions allow access to the raw modifiers known to KoLmafia.

For more information on what modifiers exist, please see Modifiers.

boolean boolean_modifier( string, string )

boolean boolean_modifier( item, string )

Access to boolean modifiers.

class class_modifier( string, string )

class class_modifier( item, string )

Access to modifiers that return one of the six classes (e.g. "Class").

effect effect_modifier( string, string )

effect effect_modifier( item, string )

Access to modifiers that return an effect(e.g. "Intrinsic Effect" or, introduced more recently, "Effect").

float numeric_modifier( string, string )

float numeric_modifier( item, string )

float numeric_modifier( effect, string )

float numeric_modifier( skill, string )

float modifier_eval( string )

float numeric_modifier( familiar, string, int, item )

Access to numeric modifiers.

stat stat_modifier( effect, string )

Access to modifiers that return one of the stats (e.g. "Equalize").

string string_modifier( string )

string string_modifier( string, string )

Access to string modifiers.