My name

From Kolmafia
Revision as of 23:59, 16 November 2007 by imported>ZammyWarrior
Jump to navigation Jump to search

string my_name()

This function returns the logged-in character's name as a string.

#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>;
}