To skill: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>StDoodle mNo edit summary |
||
Line 31: | Line 31: | ||
p1desc={{Pspan|convert}} is the int, string or effect to convert| | p1desc={{Pspan|convert}} is the int, string or effect to convert| | ||
}}| | }}| | ||
function_description=When supplied an int or string, returns the skill that corresponds to the specified parameter {{pspan|convert}} | function_description=When supplied an int or string, returns the skill that corresponds to the specified parameter {{pspan|convert}}. When supplied an effect, this returns the skill that, when cast on a player, gives them the effect {{pspan|convert}}.| | ||
needscode=yes| | needscode=yes| | ||
special=If {{pspan|convert}} cannot be given by use of a skill and is supplied as such, or no match is found for a supplied string or int type, function returns $skill[ none ].| | |||
}} | }} |
Revision as of 00:23, 14 March 2010
needs(code_samples);
Function Syntax
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. When supplied an effect, this returns the skill that, when cast on a player, gives them the effect convert.
Special
If convert cannot be given by use of a skill and is supplied as such, or no match is found for a supplied string or int type, function returns $skill[ none ].