Stat bonus tomorrow: Difference between revisions
Jump to navigation
Jump to search
imported>ZammyWarrior No edit summary |
imported>Bale mNo edit summary |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | |||
Returns the stat that | #vardefine:name|stat_bonus_tomorrow}}{{ | ||
if(stat_bonus_tomorrow() == | #vardefine:return_type|stat}}{{ | ||
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 stat that will benefit from the moon phases tomorrow. If it will be an "ordinary" day (no stat benefits), the return value is $stat[none].| | |||
code1={{CodeSample| | |||
title=Code Samples| | |||
description=The following function checks to see if tomorrow will be a stat day benefiting your primary stat.| | |||
code= | |||
<syntaxhighlight> | |||
boolean my_statday_tomorrow() { | |||
if(stat_bonus_tomorrow() == my_primestat()) { | |||
return true; | |||
} | |||
return false; | |||
} | } | ||
[ | </syntaxhighlight> | ||
[[Category: | }}| | ||
see_also={{SeeAlso|my_primestat|stat_bonus_today}}| | |||
special=When not logged in, this function returns $stat[none]. | |||
}} | |||
[[Category:Your Character]] |
Latest revision as of 21:37, 21 May 2010
Function Syntax
stat stat_bonus_tomorrow()
Returns the stat that will benefit from the moon phases tomorrow. If it will be an "ordinary" day (no stat benefits), the return value is $stat[none].
Code Samples
The following function checks to see if tomorrow will be a stat day benefiting your primary stat.
boolean my_statday_tomorrow() {
if(stat_bonus_tomorrow() == my_primestat()) {
return true;
}
return false;
}
See Also
Special
When not logged in, this function returns $stat[none].