My path: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Fredg1
No edit summary
imported>Fredg1
m see also: the 3 new path ID functions
Line 24: Line 24:
</syntaxhighlight>
</syntaxhighlight>
}}|
}}|
see_also={{SeeAlso|my_sign|knoll_available|canadia_available|gnomads_available}}|
see_also={{SeeAlso|my_path_id|path_id_to_name|path_name_to_id|my_sign|knoll_available|canadia_available|gnomads_available}}|
special=This function returns "None" when not logged in.|
special=This function returns "None" when not logged in.|
}}
}}


[[Category:Your Character]]
[[Category:Your Character]]

Revision as of 21:53, 7 June 2020

Function Syntax

string my_path()

Returns the path your character chose upon ascension ("None" when in aftercore).

Code Samples

This prints all the affects of your moon sign.

if(my_path() == "Bees Hate You")
   print("I'm doing a Bees Hate You run.");
else print("Bees do not hate me, thank goodness.");

See Also

my_path_id() | path_id_to_name() | path_name_to_id() | my_sign() | knoll_available() | canadia_available() | gnomads_available()

Special

This function returns "None" when not logged in.