Path name to id
Jump to navigation
Jump to search
This function is deprecated in KoLmafia r26713.
Use to_path(name).id
instead.
Function Syntax
int path_name_to_id(string name )
- name is the full, exact, case-sensitive name of the path to convert.
Returns the specified path name as its path number.
Code Samples
Following example shows basic path_name_to_id operations.
string first = "Bees Hate You";
string second = "G-Lover";
string third = "Live. Ascend. Repeat.";
print(first+" gives "+path_name_to_id(first)+".");
print(second+" gives "+path_name_to_id(second)+".");
print(third+" gives "+path_name_to_id(third)+".");
Gives the following output.
Bees Hate You gives 4. G-Lover gives 33. Live. Ascend. Repeat. gives 31.
See Also
Special
Returns -1 if given an incorrect/unknown name. Also, "Unrestricted" and "Aftercore" are not valid inputs for 0. "None" is instead expected.