Current hit stat: Difference between revisions
Jump to navigation
Jump to search
imported>Zarqon added example, more links, consistent formatting |
imported>Grotfang m moved Current hit stat() to Current hit stat: Conformity |
(No difference)
|
Revision as of 19:21, 28 February 2010
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)