Miscellaneous Functions

From Kolmafia
Revision as of 16:09, 14 November 2007 by 221.194.46.85 (talk)
Jump to navigation Jump to search

women catfights apple imac colors ads wanted posters internet mortgage leads amatuer teen thomas cook uk holidays escort boys forced teen sex european cultural history virginia counties boy love links us department of education loans animated sex positions gay public sex see through thongs goths free hot sex videos commonwealth edison promotional giveaways buy music kelly clarkson porn fat pussies catholic schoolgirl vivica fox nude little girl underwear models rebecca love transfer bayern free female orgasm videos bathtime akon mp3 beautiful butts girls butts nikon coolpix 4300 access hollywood dog games let go danzel mp3 nymphet nude rain jackets childrens poems national green building conference 2005 hotel del coronado vietnamese girls telekinesis tube amplification old females msn pics dream dinners hobby people foxwoods la brea tar pits hamlet online sports betting site blue background ebony gallery location new rochester wedding york signs of flirting ford thunderbird outdoor lighting fixture imagenes para messenger jeff dennis carl hardwick galleries amusement park effects digital scrapbooking trident upskirt public sitting safety supplies debt counseling big green egg thats life lyrics two factor model trash containers exercise neck shannon elizabeth playboy the english garden restaurant london high blood pressure symptoms arizona real estate mortgage online sex store sandee westgate gallery wierd baynews9 apartment ny own queens rent preteenlolitas fetish movies airsoft gun the saga begins naked celebrates butty the tempest dalmatian hott chicks short curly hairstyles sapphires in a crash faithless insomnia preteen boys having sex free japanese sex movie metal building kits final fantasy ix gay sugar daddy hot sexy teachers

Part 7 - Miscellaneous

Mostly internal stuff. Some good for everyone, some only for ASH wizards.

void print( string output )
void print( string output, string color )
Prints output to the CLI buffer and displays it in the status line of the main Adventuring window. If color is specified any HTML in output is escaped and the string is wrapped in a font tag before being printed.

boolean cli_execute( string command )
Executes the given command as if it were entered into the graphical CLI window. This can be used for CLI commands or, if you’re careful and not an asshat, for raw URLs.
See the CLI manual for more details.
Sample:Hedging

void wait( int delay )
Sleeps for delay seconds.

string get_property( string key )
boolean set_property( string key, string value )

Gets or sets a stored property from your character’s .kcs file.
The KoLmafia properties page contains details on many of the keys that are available for access.
Sample:Battlefield_gather

boolean file_to_map( string file_to_load, map map_to_fill )
boolean map_to_file( map map_to_save, string file_to_write )

Loads and saves maps as tab-delimited text files.

int random( int range )
Generates a random integer between 0 and (range-1) inclusive.

int round( float ratio )
int floor( float ratio )
int ceil( float ratio )
int truncate( float ratio )

Returns an integer near the given real number. Respectively, it returns the nearest, next lowest, next highest, and decimal-stripped integer.

int count( map )
Returns the number of defined keys for the aggregate.

void clear( map )
Remove all keys from a map.

void disable( string function_name )
void enable( string function_name )

For debugging purposes disables or enables the indicated function

float square_root( float value )
returns the square root of the passed value

string today_to_string()
Returns today’s (real-world) date in the form yyyymmdd. It is based on your computer’s system date