To skill: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
No edit summary
Line 1: Line 1:
'''[[skill]] to_skill([[effect]] effectname)'''
{{
#vardefine:name|to_skill}}{{
#vardefine:return_type|skill}}{{


Converts an effect into a skill.
FunctionPage|
name={{#var:name}}|
function_category=Datatype Conversions|


An example of to_skill is used at [[use_skill()]]
function1={{Function|
{{Format}}
name={{#var:name}}|
aggregate={{#var:aggregate}}|
return_type={{#var:return_type}}|
return_also={{#var:return_also}}|
parameter1={{Param|effect|check_me}}|
p1desc={{Pspan|check_me}} is the effect to check|
}}|
 
function_description=Returns the skill that, when cast on a player, gives them the effect {{pspan|check_me}}. If {{pspan|check_me}} cannot be given by use of a skill, this function returns $skill[none].|
 
needscode=yes|
 
}}

Revision as of 01:56, 11 March 2010

needs(code_samples);

Function Syntax

skill to_skill(effect check_me )

  • check_me is the effect to check

Returns the skill that, when cast on a player, gives them the effect check_me. If check_me cannot be given by use of a skill, this function returns $skill[none].