To stat: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
mNo edit summary
imported>Eliteofdelete
it takes strings, not ints
Line 11: Line 11:
return_type={{#var:return_type}}|
return_type={{#var:return_type}}|
return_also={{#var:return_also}}|
return_also={{#var:return_also}}|
parameter1={{Param|int|convert}}|
parameter1={{Param|string|convert}}|
}}|
}}|



Revision as of 02:36, 23 January 2015

needs(code_samples);

Function Syntax

stat to_stat(string convert )

When supplied a string, returns the stat that corresponds to the specified parameter convert.

See Also

to_item() | to_skill() | to_monster()

Special

If no match is found for convert, this function returns $stat[ none ].