Moon light: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle Created page with '{{ #vardefine:name|moon_light}}{{ #vardefine:return_type|int}}{{ FunctionPage| name={{#var:name}}| function_category=Your Character| function1={{Function| name={{#var:name}}| a…' |
imported>Bale mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 13: | Line 12: | ||
return_also={{#var:return_also}}| | return_also={{#var:return_also}}| | ||
}}| | }}| | ||
function_description=Returns the total number of lit segments from all moons (including the minimoon). Range returned is 0 to 9.| | function_description=Returns the total number of lit segments from all moons (including the minimoon). Range returned is 0 to 9.| | ||
code1={{CodeSample| | |||
title=Code Sample| | |||
description=Shows you the stats given from the Glow-in-the-dark dart gun in your Gcli| | |||
code= | |||
<syntaxhighlight> | |||
int X = moon_light(); | |||
int Y = 2 * X; | |||
print ("Stats Given from GitD dart gun:"); | |||
print ("Moxie +"+X+""); | |||
print (" +"+Y+" Ranged Damage"); | |||
</syntaxhighlight>}}| | |||
needscode=yes| | needscode=yes| | ||
Line 22: | Line 35: | ||
more_info=See [http://kolmafia.us/showthread.php?1860-question-about-moon-functions&p=11453&viewfull=1#post11453 this thread] for more information.| | more_info=See [http://kolmafia.us/showthread.php?1860-question-about-moon-functions&p=11453&viewfull=1#post11453 this thread] for more information.| | ||
}} | }} | ||
[[Category:Your Character]] |
Latest revision as of 21:41, 21 May 2010
needs(code_samples);
Function Syntax
int moon_light()
Returns the total number of lit segments from all moons (including the minimoon). Range returned is 0 to 9.
Code Sample
Shows you the stats given from the Glow-in-the-dark dart gun in your Gcli
int X = moon_light();
int Y = 2 * X;
print ("Stats Given from GitD dart gun:");
print ("Moxie +"+X+"");
print (" +"+Y+" Ranged Damage");
CLI Equivalent
The CLI command "moon" gives text output that includes moon phases.
See Also
More Information
See this thread for more information.