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)