My path: Difference between revisions
Jump to navigation
Jump to search
imported>Fredg1 m see also: the 3 new path ID functions |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ | ||
#vardefine:name|my_path}}{{ | #vardefine:name|my_path}}{{ | ||
#vardefine:return_type| | #vardefine:return_type|path}}{{ | ||
FunctionPage| | FunctionPage| | ||
Line 13: | Line 13: | ||
}}| | }}| | ||
function_description=Returns the path your character chose upon ascension ( | function_description=Returns the path your character chose upon ascension ($path[ none ] when in aftercore).| | ||
code1={{CodeSample| | code1={{CodeSample| | ||
title=Code Samples| | title=Code Samples| | ||
description=This prints | description=This prints something different based on whether or not you are in a {{kolwiki|Bees Hate You}} ascension path.| | ||
code=<syntaxhighlight> | code=<syntaxhighlight> | ||
if(my_path() == | if(my_path() == $path[Bees Hate You]) | ||
print("I'm doing a Bees Hate You run."); | print("I'm doing a Bees Hate You run."); | ||
else print("Bees do not hate me, thank goodness."); | else print("Bees do not hate me, thank goodness."); |
Latest revision as of 19:20, 2 October 2022
Function Syntax
path my_path()
Returns the path your character chose upon ascension ($path[ none ] when in aftercore).
Code Samples
This prints something different based on whether or not you are in a Bees Hate You ascension path.
if(my_path() == $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.