Difference between pages "My name" and "In mysticality sign"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Zarqon
m (added not-logged-in info)
 
imported>ZammyWarrior
 
Line 1: Line 1:
[[string]] [[my_name()]]
+
'''boolean in_mysticality_sign()'''<br/>
 +
Returns true if your ascension sign is a mysticality sign otherwise false.
 +
[[Category:Your Character | In mysticality sign()]]
 +
[[Category:Ash Functions |In mysticality sign()]]
 +
<pre>#Script checks to see if your in mysticality sign. If true, it 'farms' the logging camp.
  
This function returns the logged-in character's name as a [[string]] in all lowercase.
+
if(in_mysticality_sign() && my_adventures() > 0){
 
+
adventure(my_adventure(), $location[logging camp]);
[[Category:Your Character | My name()]]
 
[[Category:Ash Functions | My name()]]
 
<pre>#Script checks players name. If your name returns ZammyWarrior it will import Zammy Morning.ash script.
 
#If name returns Hippymon it will import Hippymon Morning.ash script.
 
#Great script for one with multiple accounts as a "breakfast script".
 
if (my_name() == "zammywarrior"){
 
  import <Zammy Morning.ash>;
 
}
 
else if (my_name() == "hippymon"){
 
  import <Hippy Morning.ash>;
 
}
 
</pre>
 
 
 
Note that even if your name is capitalized in KoL, my_name() will convert it to lowercase:
 
 
 
<pre>if (my_name() == "My Capitalized Name") {
 
  // this block of commands will never be performed
 
 
}</pre>
 
}</pre>
 
When not logged in, this fuction returns an empty string.
 

Revision as of 23:58, 16 November 2007

boolean in_mysticality_sign()
Returns true if your ascension sign is a mysticality sign otherwise false.

#Script checks to see if your in mysticality sign. If true, it 'farms' the logging camp. 

if(in_mysticality_sign() && my_adventures() > 0){
adventure(my_adventure(), $location[logging camp]);
}