stat_modifier()

From KoLMafia
Jump to: navigation, search

Function Syntax

stat stat_modifier(item check_me ,string modifier_name )

stat stat_modifier(string check_me ,string modifier_name )

Returns a stat if check_me is stat specific.

Code Sample

Prints the stats which are equalized by the effects of various equalizing potions.

stat st;
foreach eff in $effects[] {
   st = stat_modifier( eff , "Equalize" );
   if(st != $stat[none])
      print(eff +" equalizes all stats to "+ st);
}

More Information

See this thread for details.