To skill

From Kolmafia
Revision as of 01:42, 13 March 2010 by imported>StDoodle
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

skill to_skill(int convert )

skill to_skill(string convert )

skill to_skill(effect convert )

  • convert is the int, string or effect to convert

When supplied an int or string, returns the skill that corresponds to the specified parameter convert, or $skill[ none ] if no match is found. When supplied an effect, this returns the skill that, when cast on a player, gives them the effect convert. If convert cannot be given by use of a skill, this function returns $skill[ none ].