My sign: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
r9307
 
imported>Bale
return value when not logged in
 
Line 66: Line 66:
}}|
}}|
see_also={{SeeAlso|my_path|knoll_available|canadia_available|gnomads_available}}|
see_also={{SeeAlso|my_path|knoll_available|canadia_available|gnomads_available}}|
special=This function returns an empty string when not logged in.|
special=This function returns "None" when not logged in.|
}}
}}


[[Category:Your Character]]
[[Category:Your Character]]

Latest revision as of 00:06, 19 May 2011

Function Syntax

string my_sign()

Returns the moon sign your character chose upon ascension.

Code Samples

This prints all the affects of your moon sign.

print("I was born under the sign of the "+my_sign());
if(canadia_available())
   print("Little Canadia is open");
else if(gnomads_available())
   print("Gnomish Gnomad Camp is open");
else if(knoll_available())
   print("Degrassi Knoll is open");
   
print("+10% to all " +
   (in_moxie_sign()? "moxie":
   in_muscle_sign()? "muscle":
   "mysticality") + " gains.");

switch(my_sign()) {
case "Mongoose":
   print("+20% Physical Damage");
   break;
case "Wallaby":
   print("+20% Spell Damage");
   break;
case "Vole":
   print("+20% Combat Initiative");
   print("+20 Maximum HP/MP");
   break;
case "Platypus":
   print("Familiar Weight +5 lbs.");
   break;
case "Opossum":
   print("+5 Adventures per day from Food");
   break;
case "Marmot":
   print("Get 1 Free Ten-Leaf Clover Per Day");
   break;
case "Wombat":
   print("+20% Meat from Monsters");
   break;
case "Blender":
   print("+5 Adventures per day from Booze");
   break;
case "Packrat":
   print("+10% Items from Monsters");
   break;
}

See Also

my_path() | knoll_available() | canadia_available() | gnomads_available()

Special

This function returns "None" when not logged in.