My path: Difference between revisions
Jump to navigation
Jump to search
imported>Bale r9307 |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
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."); | ||
</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]] |
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.