Difference between pages "File talk:Breakable equipment.jpg" and "My path"
(Difference between pages)
Jump to navigation
Jump to search
(hNHcFsMgddSLFwb) |
imported>Fredg1 |
||
Line 1: | Line 1: | ||
− | + | {{ | |
+ | #vardefine:name|my_path}}{{ | ||
+ | #vardefine:return_type|string}}{{ | ||
+ | |||
+ | FunctionPage| | ||
+ | name={{#var:name}}| | ||
+ | |||
+ | function1={{Function| | ||
+ | name={{#var:name}}| | ||
+ | aggregate={{#var:aggregate}}| | ||
+ | return_type={{#var:return_type}}| | ||
+ | return_also={{#var:return_also}}| | ||
+ | }}| | ||
+ | |||
+ | function_description=Returns the path your character chose upon ascension ("None" when in aftercore).| | ||
+ | |||
+ | code1={{CodeSample| | ||
+ | title=Code Samples| | ||
+ | description=This prints all the affects of your moon sign.| | ||
+ | code=<syntaxhighlight> | ||
+ | if(my_path() == "Bees Hate You") | ||
+ | print("I'm doing a Bees Hate You run."); | ||
+ | else print("Bees do not hate me, thank goodness."); | ||
+ | </syntaxhighlight> | ||
+ | }}| | ||
+ | see_also={{SeeAlso|my_sign|knoll_available|canadia_available|gnomads_available}}| | ||
+ | special=This function returns "None" when not logged in.| | ||
+ | }} | ||
+ | |||
+ | [[Category:Your Character]] |
Revision as of 00:21, 23 December 2019
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
Special
This function returns "None" when not logged in.