To bounty

From Kolmafia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 ].