To bounty

From Kolmafia
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

See Also

to_item() | to_skill() | to_stat()


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