Moon light: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Icon315
Code Sample
imported>Icon315
desc.
Line 19: Line 19:
code1={{CodeSample|
code1={{CodeSample|
title=Code Sample|
title=Code Sample|
description=A check to see if the user truly wants to execute a script.|
description=Shows you the stats given from the Glow-in-the-dark dart gun in your Gcli|
code=
code=
<syntaxhighlight>
<syntaxhighlight>

Revision as of 02:13, 20 April 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

moon_phase()

More Information

See this thread for more information.