Difference between revisions of "Gameday to string"
Jump to navigation
Jump to search
imported>Fluxxdog (Created page with '{{ #vardefine:name|gameday_to_string}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggregat…') |
imported>Fxer m (Update description to clarify, remove inaccurate note) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 13: | Line 13: | ||
}}| | }}| | ||
− | function_description=Returns the current KoL game date using the in game calendar.| | + | function_description=Returns the current KoL game date, where rollover is the start of a new day, using the in game calendar.| |
code1={{CodeSample| | code1={{CodeSample| | ||
Line 26: | Line 26: | ||
cli_equiv=The CLI command "moon" will also print the current game date along with other information. | cli_equiv=The CLI command "moon" will also print the current game date along with other information. | ||
}} | }} | ||
− | + | ||
− | + | [[Category:Miscellaneous Functions]] | |
− | |||
− | [[Category: |
Latest revision as of 17:30, 2 June 2016
Function Syntax
string gameday_to_string()
Returns the current KoL game date, where rollover is the start of a new day, using the in game calendar.
Code Samples
This code will print a special message if it's Bill 3, the day for the Generic Summer holiday.
if (gameday_to_string() == "Bill 3") {
print("I feel like taking a dip in the fountain today!");
}
CLI Equivalent
The CLI command "moon" will also print the current game date along with other information.