Difference between revisions of "Stat bonus today"

From Kolmafia
Jump to navigation Jump to search
imported>Efilnikufecin
imported>ZammyWarrior
Line 1: Line 1:
 
'''stat stat_bonus_today()'''<br/>
 
'''stat stat_bonus_today()'''<br/>
 
Returns the stat that is benefitted by the moon phases today. If it is an “ordinary” day, the return value is $stat[none].
 
Returns the stat that is benefitted by the moon phases today. If it is an “ordinary” day, the return value is $stat[none].
 +
<pre>if(stat_bonus_today() == $stat[moxie]){
 +
eat(3, $item[rat appendix chow mein]);
 +
}
 
[[Category:Your Character | Stat bonus today()]]
 
[[Category:Your Character | Stat bonus today()]]
 
[[Category:Ash Functions |Stat bonus today()]]
 
[[Category:Ash Functions |Stat bonus today()]]
[[Category:Needs Code Samples | Stat bonus today()]]
 

Revision as of 00:00, 17 November 2007

stat stat_bonus_today()
Returns the stat that is benefitted by the moon phases today. If it is an “ordinary” day, the return value is $stat[none].

if(stat_bonus_today() == $stat[moxie]){
eat(3, $item[rat appendix chow mein]);
}