Stat modifier
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.