Current hit stat

From Kolmafia
Revision as of 07:28, 30 January 2009 by imported>Zarqon (added example, more links, consistent formatting)
Jump to navigation Jump to search

stat current_hit_stat()

Returns the stat that is currently used to calculate hit percentages.

The following will warn non-myst classes if they are equipping the wrong type of weapon (melee vs. ranged).

 if (my_primestat() != $stat[mysticality] && current_hit_stat() != my_primestat())
   print("You could probably select a more effective weapon!");

A better use for this function would be in consult scripts to determine your expected success in smiting foes.

When not logged in, this function returns ?? (needs spading)