To bounty

From Kolmafia
Revision as of 14:39, 26 January 2015 by imported>Eliteofdelete
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

bounty to_bounty(string convert )

  • convert is the string to convert

When supplied a string, returns the bounty that corresponds to the specified parameter convert. This is not a fuzzy match and it is not case-sensitive. The string needs to strictly match the name of the bounty, exactly.

Code Samples

Following example shows basic to_bounty operations.

print(to_bounty("dirty coal button"), "green");
print(to_bounty("dirty coal butto"), "red");

It gives the following output.

dirty coal button
none

See Also

to_item() | to_skill() | to_stat()

Special

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