Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Add "gCLI Command Functions" section
 
(115 intermediate revisions by 47 users not shown)
Line 1: Line 1:
[http://edta.jenesia.info/ edta] [http://audiorecording.jenesia.info/ audio recording college] [http://latinaanal.hulkage.info/ latina anal] [http://antivirusdownload.chummies.info/ antivirus download] [http://underagedgirls.woadwax.info/ underaged girls] [http://egypttouroperator.jenesia.info/ egypt tour operator] [http://autotradercanadian.woadwax.info/ auto trader canadian] [http://equityindiaprivate.minatare.info/ equity india private quot quot] [http://turner.jenesia.info/ turner] [http://squarematrices.nan-duti.info/ square matrices] [http://teenlesbians.woadwax.info/ teen lesbians] [http://hulkage.info/ hulkage.info] [http://asknownpuertorico.daimiote.info/ as known puerto rico] [http://spanishforpolice.woadwax.info/ spanish for police officers] [http://boysbedroom.woadwax.info/ boys bedroom] [http://dslmodemsale.woadwax.info/ dsl modem sale] [http://authorjoyce.incloude.info/ author joyce carol] [http://metalmachining.daimiote.info/ metal machining] [http://jobinterviewquestions.incloude.info/ job interview questions] [http://surgercookies.incloude.info/ surger cookies] [http://whitenightbanquet.jenesia.info/ white night banquet] [http://littlenewpony.incloude.info/ little new pony] [http://dieselperformance.nan-duti.info/ diesel performance] [http://clipsporno.woadwax.info/ clips porno] [http://romanticquotefrom.chummies.info/ romantic quote from movie] [http://chicagorestaurants.incloude.info/ chicago restaurants] [http://reflectivesafety.hulkage.info/ reflective safety materials] [http://engineeringmethodology.chummies.info/ engineering methodology] [http://acetruevaluehardware.chummies.info/ ace true value hardware] [http://royalcaribean.jenesia.info/ royal caribean] [http://lesbianflirting.nan-duti.info/ lesbian flirting] [http://puertorican.hulkage.info/ puerto rican last name] [http://deep.chummies.info/ deep] [http://bigtitpic.minatare.info/ bigtit pic] [http://freerentallease.woadwax.info/ free rental lease agreement form] [http://minatare.info/index2_1000.html link] [http://aircompressor.chummies.info/ air compressor used] [http://cleocin.incloude.info/ cleocin] [http://jenesia.info/ jenesia.info] [http://wallairconditioner.chummies.info/ wall air conditioner cover] [http://thefencingpost.bozine.info/ the fencing post] [http://bozine.info/ bozine.info] [http://printindexcards.hulkage.info/ print index cards] [http://annakornikovanaked.nan-duti.info/ anna kornikova naked] [http://benzonatate.daimiote.info/ benzonatate] [http://theatredundee.daimiote.info/ theatre dundee] [http://marinespacetactic.minatare.info/ marine space tactic] [http://hotanime.daimiote.info/ hot anime] [http://youlovemebutyou.hulkage.info/ you love me but you dont know me] [http://accountcharter.woadwax.info/ account charter communication] [http://airlinejobs.daimiote.info/ airline jobs] [http://freetoair.woadwax.info/ free to air] [http://philadelphia.jeopards.info/ philadelphia school taxes] [http://raybansunglasses.incloude.info/ ray ban sun glasses] [http://kuwaitairport.chummies.info/ kuwait airport] [http://2003newstatetable.minatare.info/ 2003 new state table tax york] [http://wwiipropaganda.jenesia.info/ wwii propaganda art] [http://researchanddevelopment.incloude.info/ research and development job] [http://smalltelephone.jenesia.info/ small telephone systems] [http://birkenstockoutlet.jenesia.info/ birkenstock outlet store] [http://bestlaptop.woadwax.info/ best laptop] [http://clonazepamonline.bozine.info/ clonazepam online] [http://phpscript.jenesia.info/ php script] [http://pagequotquotwho.jeopards.info/ page quot quot who] [http://hikingpoles.hulkage.info/ hiking poles] [http://airnewzealand.chummies.info/ air new zealand international plane tickets] [http://femalebondage.woadwax.info/ female bondage] [http://fakefireplace.minatare.info/ fake fireplace] [http://freereversephone.daimiote.info/ free reverse phone lookup] [http://marcstoner.woadwax.info/ marc stoner] [http://laptopcases.incloude.info/ laptop cases] [http://international.woadwax.info/ international financial reporting standards courses] [http://littlepussy.jenesia.info/ littlepussy] [http://linkquiz.bozine.info/ link quiz] [http://trophywhitetail.bozine.info/ trophy whitetail deer hunts] [http://embassyinthailand.incloude.info/ embassy in thailand] [http://electricsalesvehicle.jeopards.info/ electric sales vehicle] [http://losingafather.hulkage.info/ losing a father at a young age] [http://poetrycompetitions.jenesia.info/ poetry competitions for children] [http://marinebatteries.incloude.info/ marine batteries] [http://wildeyedcrazy.jeopards.info/ wild eyed crazy mary] [http://dldvds.jeopards.info/ dldvds] [http://sarahlouise.jeopards.info/ sarah louise] [http://modem.daimiote.info/ modem] [http://searchexespyware.nan-duti.info/ search exe spyware] [http://offroadroll.nan-duti.info/ off road roll bar] [http://nolvadex.incloude.info/ nolvadex] [http://linuxipaddress.nan-duti.info/ linux ip address config] [http://illinoiscountycourt.minatare.info/ illinois county court records] [http://holidayinsurance.incloude.info/ holiday insurance uk] [http://mansex.jenesia.info/ mansex] [http://socialsecurity.daimiote.info/ social security disability] [http://undeletefilewindows.nan-duti.info/ undelete file windows 2000 server] [http://audiovoxcdplayer.jenesia.info/ audiovox cd player] [http://ticklemeelmo.jenesia.info/ tickle me elmo surprise] [http://rcamp3players.bozine.info/ rca mp3 players lcd screen] [http://tvtalentagent.chummies.info/ tv talent agent] [http://perforator.bozine.info/ perforator] [http://museofficialhomepage.daimiote.info/ muse official homepage] [http://dodgemagnum.bozine.info/ dodge magnum] [http://www.plurpage.com/classifieds/cache/nnxtjc.html womens movements timeline] [http://maps.my2gig.com/cache/okbcdr.html educational talent search] [http://ndr.hu/rhodes/uhrmsd.html mah jongg free games] [http://www.stillwaterhomes.com/listings/images/pic/biggox.html mp3 minder] [http://2001.c3.hu/mas/dxtcjd.html phillip boast] [http://www.easypayinfo.com/subscribe/tmp/mfkapn.html sony computer monitor reviews] [http://kom-pas.de/3xcms/config/hkatuploads/images/getajj.html variable auto transformers] [http://activeimage.c3.hu/css/nbfedf.html peace corps korea] [http://activeimage.c3.hu/css/etaxgq.html the winter gardens] [http://www.stillwaterhomes.com/listings/images/pic/jvkdxs.html exclusivity contract sample] [http://kom-pas.de/3xcms/config/hkatuploads/images/isjtwh.html australian funeral directors] [http://activeimage.c3.hu/css/knxqfe.html microwave communication tutorials] [http://kom-pas.de/3xcms/config/hkatuploads/images/xnpdff.html st james school maryland] [http://activeimage.c3.hu/css/mcjcsv.html sermon sin] [http://www.easypayinfo.com/subscribe/tmp/gelxma.html parental laws] [http://www.stillwaterhomes.com/listings/images/pic/xorfcb.html national council of jewish women scholarship] [http://troniny.ovh.org/gallery/layout/dtbpep.html periodic table oxidation numbers] [http://maps.my2gig.com/cache/uijpvl.html my gen profile generator for myspace] [http://activeimage.c3.hu/css/mdrwdt.html italian visa uk] [http://www.salona-yachts.eu/misc/xrcces.html symptom of autism in adult] [http://troniny.ovh.org/gallery/layout/whfsdl.html travel and track flight] [http://www.salona-yachts.eu/misc/sbewvr.html rapic city journal] [http://activeimage.c3.hu/css/baxqmk.html accounting solution] [http://www.easypayinfo.com/subscribe/tmp/mwftxw.html radar after world war two] [http://informer.siam.edu/themes/hm/rpjrgc.html order pharmacy online] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/lqkbaf.html sony dvd speler] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/ctwbso.html small business project management software] [http://www.stillwaterhomes.com/listings/images/pic/bxirkr.html security sleeve tool] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/cfqpmr.html possible informative speech topic] [http://www.easypayinfo.com/subscribe/tmp/fgsrit.html junior year] [http://www.easypayinfo.com/subscribe/tmp/oioiqw.html non contact measurement] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ufpmqm.html i m your lady and you re my man] [http://ndr.hu/rhodes/qvbmor.html rhythm of life song words] [http://www.stillwaterhomes.com/listings/images/pic/kfvaaa.html managed care industry] [http://www.plurpage.com/classifieds/cache/wjrgio.html 2 corel drawing] [http://kom-pas.de/3xcms/config/hkatuploads/images/scovev.html american baby girl names] [http://2001.c3.hu/mas/inbnnc.html rectum pic] [http://www.easypayinfo.com/subscribe/tmp/rklewg.html mach mp3] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/hxdbgk.html fioricet] [http://kristinlyseggen.com/gallery/1documentaries/7travel/obmgei.html ics electronics ltd] [http://ndr.hu/rhodes/nwaggx.html social studies games kids] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/fobogo.html law enforcement training and standards] [http://www.stillwaterhomes.com/listings/images/pic/hhhodn.html not the mamma] [http://informer.siam.edu/themes/hm/ngtxmn.html cingular ringtone] [http://maps.my2gig.com/cache/tchvij.html spor arabalar] [http://www.systemsupport.und.edu/cache/avatars/emo/dwtwtt.html 5 hour driving course long island] [http://www.salona-yachts.eu/misc/pptxcb.html sugar valley cycle] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/etwgdj.html ireland motorcycle tour] [http://ndr.hu/rhodes/garelc.html europa lotus part] [http://maps.my2gig.com/cache/pbhher.html everything happens for a reason lyrics] [http://activeimage.c3.hu/css/pkenme.html its wanting what you ve got] [http://aura.c3.hu/thumb/ltihhc.html razor california computer stores] [http://www.plurpage.com/classifieds/cache/jtlxjf.html asian preteen tgp] [http://kom-pas.de/3xcms/config/hkatuploads/images/hpcfmp.html jdbc definition] [http://kom-pas.de/3xcms/config/hkatuploads/images/pqeunp.html music video production toronto] [http://aura.c3.hu/thumb/dujlee.html able jessica] [http://www.farmelco.hu/test/css/axjgcp.html the view is damaged outlook 2000] [http://www.easypayinfo.com/subscribe/tmp/gaxdcn.html action games free online] [http://www.stillwaterhomes.com/listings/images/pic/utqboc.html thoi dai bo gia] [http://kom-pas.de/3xcms/config/hkatuploads/images/stswfv.html news aug 28] [http://www.plurpage.com/classifieds/cache/nrptid.html nfl games tickets] [http://www.lowell.edu/styles/old_style/css/davdct.html 18th june] [http://aura.c3.hu/thumb/hnnwbt.html methods of performance appraisals] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/vkealm.html mark knopfler mp3] [http://www.easypayinfo.com/subscribe/tmp/cgqwxa.html indian recipe south vegetarian] [http://www.salona-yachts.eu/misc/smmwnn.html queen creek az homes] [http://www.salona-yachts.eu/misc/dwmsfx.html mens sapphire ring] [http://ndr.hu/rhodes/pimmmg.html realist film] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/fvdfjx.html rocking into the night lyrics] [http://www.salona-yachts.eu/misc/auesrp.html anal huge penetration] [http://aura.c3.hu/thumb/xjnaix.html those who forget the past] [http://activeimage.c3.hu/css/dlsihp.html examples of resumes for internships] [http://activeimage.c3.hu/css/gmcupn.html array initializer java] [http://kristinlyseggen.com/gallery/1documentaries/7travel/gbahqt.html alba hot jessica] [http://aura.c3.hu/thumb/hoqatv.html rogers mn school district] [http://ndr.hu/rhodes/akpmqp.html earth science web sites] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/gqwcqi.html wine buys] [http://ndr.hu/rhodes/kexbqr.html acura integras for sale] [http://aura.c3.hu/thumb/bsgwai.html seductive song] [http://www.stillwaterhomes.com/listings/images/pic/lkmllu.html probate cases] [http://www.easypayinfo.com/subscribe/tmp/urhtdw.html english name into chinese] [http://www.easypayinfo.com/subscribe/tmp/kpccwf.html list of cars for sale in las vegas] [http://2001.c3.hu/mas/vrmsiv.html safe children] [http://maps.my2gig.com/cache/jqefme.html invisible setting] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/jqkbra.html buy xanax] [http://www.plurpage.com/classifieds/cache/rbhjni.html sex and early pregnancy] [http://kom-pas.de/3xcms/config/hkatuploads/images/idrgxb.html aloud book grader read second] [http://2001.c3.hu/mas/uroqjh.html stuff for aim profile] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/fsjqbt.html atlanta classic car rentals] [http://www.easypayinfo.com/subscribe/tmp/fccfjf.html vocation school] [http://maps.my2gig.com/cache/xxmhsd.html new perspectives theatre company] [http://2001.c3.hu/mas/bafcxc.html archive celeb jades] [http://informer.siam.edu/themes/hm/jjorqt.html download latin ringtones] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/guvmvv.html the omen 2 dvd] [http://kom-pas.de/3xcms/config/hkatuploads/images/lwjcuo.html adult height weight average] [http://www.easypayinfo.com/subscribe/tmp/tmgshf.html phoenix az. real estate] [http://aura.c3.hu/thumb/efjuut.html mug shots celebrity] [http://www.easypayinfo.com/subscribe/tmp/voqqxv.html solar powered cars pics] [http://2001.c3.hu/mas/xsuauf.html aria movie clips] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/llkdgc.html world bank research funding] == Part 7 - Miscellaneous ==
{{TOCright}}
<p><em>Mostly internal stuff. Some good for everyone, some only for ASH wizards.</em></p>
== Chat Functions ==
{{Flink|void|chat_clan|string}}
{{Flink|void|chat_clan|string|string|desc=Sends a message to clan chat.}}
{{Flink|void|chat_macro|string|desc=Submits a chat macro to KoL.}}
{{Flink|void|chat_notify|string|string|desc=Sends a notification to the player's own chat.}}
{{Flink|void|chat_private|string|string|desc=Sends a private message to another player.}}
{{Flink|boolean|is_online|string|desc=Check to see if a player is online.}}
{{Flink|boolean [string]|who_clan|desc=Returns a list of whom is in your clan and if they are in chat.}}
{{Flink|boolean|can_faxbot|monster|desc=Check to see if a monster can be faxed.}}
{{Flink|boolean|faxbot|monster|desc=Attempts to receive a fax of a given monster.}}


<p><strong>void print( string helloworld )</strong><br />
== Debugging Functions ==
Prints the given string to the graphical CLI window and to the status line of the main Adventuring window</p>
{{Flink|void|disable|string|desc=Disables the specified function.}}
{{Flink|void|enable|string|desc=Enables the specified function.}}
{{Flink|buffer|load_html|string|desc=Works like visit_url(), but for debugging.}}
{{Flink|string|make_url|string|boolean|boolean|desc=Crafts the URL to visit.}}


<p><strong>boolean cli_execute( string command )</strong><br />
== File Input/Output Functions ==
Executes the given command as if it were entered into the graphical CLI window. This can be used for CLI commands or, if you
{{FunctionEmbed|buffer_to_file|format=signature|desc=yes}}
{{FunctionEmbed|file_to_array|format=signature|desc=yes}}
{{FunctionEmbed|file_to_buffer|format=signature|desc=yes}}
{{Flink|boolean|file_to_map|string|aggregate|desc=Loads a map from a tab-delimited text file.}}
{{Flink|boolean|map_to_file|aggregate|string|desc=Saves a map to a tab-delimited text file.}}
 
== gCLI Command Functions ==
{{FunctionEmbed|cli_execute|format=signature|desc=yes}}
{{FunctionEmbed|cli_execute_output|format=signature|desc=yes}}
 
== Map Management Functions ==
''Note: Information about maps (including creating, assigning, and removing keys, can be found at [[Data Structures#Maps|Map Data Structures]].''
 
{{Flink|int|count|aggregate|desc=Returns the number of defined keys for the specified aggregate.}}
{{Flink|void|clear|aggregate|desc=Removes all keys from the specified aggregate.}}
 
== Time Functions ==
{{Flink|string|format_date_time|string|string|string|desc=Reformats dates.}}
{{Flink|int|gameday_to_int|desc=Returns the current KoL date as an integer.}}
{{Flink|string|gameday_to_string|desc=Returns the current KoL date as a string.}}
{{Flink|int|gametime_to_int|desc=Returns the current KoL time in ms as an integer.}}
{{Flink|string|now_to_string|string|desc=Returns current local time/date in SimpleDateFormat format.}}
{{Flink|string|time_to_string|desc=Returns the current local time in HH:mm:ss z format.}}
{{Flink|string|today_to_string|desc=Returns the current local day in ISO format.}}
 
== SVN Functions ==
''There is much additional information in the [[SVN Primer]]''.
{{Flink|boolean|svn_exists|string|desc=Returns true if a valid working copy named projectname exists in the svn/ folder.}}
{{Flink|boolean|svn_at_head|string|desc=Returns true if projectname exists, is a valid working copy, and is currently at the same revision number as the repository.}}
{{Flink|record|svn_info|string|desc=Returns a record containing additional information about the given projectname: svnurl, last author, last revision, last change date.}}
 
== User Interaction ==
{{Flink|void|print|string|{{opt|string}}|desc=Prints to CLI and status line of Adventuring window, optionally in a specified color.}}
{{Flink|void|print_html|string|desc=Prints to CLI, parsing any included html.}}
{{Flink|void|logprint|string|desc=Prints to the session log.}}
{{Flink|void|wait|int}}
{{Flink|void|waitq|int|desc=Sleeps for the specified number of seconds.}}
{{Flink|boolean|user_confirm|string|desc=Allows user input in Y/N format.}}
 
== Property Functions ==
{{Flink|boolean [string]|get_all_properties|string|boolean|desc=Returns a map of all user or global properties.}}
{{FunctionEmbed|property_exists|format=signature|desc=yes}}
{{FunctionEmbed|property_has_default|format=signature|desc=yes}}
{{FunctionEmbed|property_default_value|format=signature|desc=yes}}
{{Flink|string|get_property|string}}
{{Flink|string|get_property|string|boolean|desc=Gets a global or user preference as appropriate.}}
{{Flink|void|set_property|string|string|desc=Sets a global or user preference as appropriate.}}
{{FunctionEmbed|remove_property|format=signature|desc=yes}}
{{FunctionEmbed|rename_property|format=signature|desc=yes}}
 
== Other Functions ==
{{FunctionEmbed|abort|format=signature|desc=yes}}
{{FunctionEmbed|all_monsters_with_id|format=signature|desc=yes}}
{{Flink|void|batch_open|desc=Used to mark the beginning of a block of functions to operate in batch mode (see page for {{f|batch_close}} for details).}}
{{Flink|boolean|batch_close|desc=Used to mark the end of a block of functions to operate in batch mode (see page for details).}}
{{Flink|int|get_revision|desc=Returns the current KoLmafia revision number.}}
{{Flink|string|get_version|desc=Returns the most recent KoLmafia version.}}
{{Flink|string|get_player_id|string|desc=Returns the user id number of a given player.}}
{{FunctionEmbed|is_dark_mode|format=signature|desc=yes}}
{{Flink|string|to_json|aggregate|desc=Converts a simple aggregate into JSON.}}
 
Additional functions that are considered not really to be ash functions are available in [[Miscellaneous ASH Features#Special Syntax Functions|Misc ASH Features]]
 
[[Category:Scripting]]

Latest revision as of 14:55, 23 December 2020

Chat Functions

void chat_clan( string )

void chat_clan( string, string )

Sends a message to clan chat.

void chat_macro( string )

Submits a chat macro to KoL.

void chat_notify( string, string )

Sends a notification to the player's own chat.

void chat_private( string, string )

Sends a private message to another player.

boolean is_online( string )

Check to see if a player is online.

boolean [string] who_clan()

Returns a list of whom is in your clan and if they are in chat.

boolean can_faxbot( monster )

Check to see if a monster can be faxed.

boolean faxbot( monster )

Attempts to receive a fax of a given monster.


Debugging Functions

void disable( string )

Disables the specified function.

void enable( string )

Enables the specified function.

buffer load_html( string )

Works like visit_url(), but for debugging.

string make_url( string, boolean, boolean )

Crafts the URL to visit.


File Input/Output Functions

boolean buffer_to_filebuffer, string )

Saves a buffer to a text file. Returns true on success, false on failure.

string [int] file_to_arraystring )

Reads data from a text file and returns a map of strings containing each line.

buffer file_to_bufferstring )

Loads the entire contents of a text file into a buffer.

boolean file_to_map( string, aggregate )

Loads a map from a tab-delimited text file.

boolean map_to_file( aggregate, string )

Saves a map to a tab-delimited text file.


gCLI Command Functions

boolean cli_executestring )

Executes a string as a gCLI command. Returns true on success, false on failure.

string cli_execute_outputstring )

Executes a gCLI command, capturing and returning the gCLI output.

Map Management Functions

Note: Information about maps (including creating, assigning, and removing keys, can be found at Map Data Structures.

int count( aggregate )

Returns the number of defined keys for the specified aggregate.

void clear( aggregate )

Removes all keys from the specified aggregate.


Time Functions

string format_date_time( string, string, string )

Reformats dates.

int gameday_to_int()

Returns the current KoL date as an integer.

string gameday_to_string()

Returns the current KoL date as a string.

int gametime_to_int()

Returns the current KoL time in ms as an integer.

string now_to_string( string )

Returns current local time/date in SimpleDateFormat format.

string time_to_string()

Returns the current local time in HH:mm:ss z format.

string today_to_string()

Returns the current local day in ISO format.


SVN Functions

There is much additional information in the SVN Primer.

boolean svn_exists( string )

Returns true if a valid working copy named projectname exists in the svn/ folder.

boolean svn_at_head( string )

Returns true if projectname exists, is a valid working copy, and is currently at the same revision number as the repository.

record svn_info( string )

Returns a record containing additional information about the given projectname: svnurl, last author, last revision, last change date.


User Interaction

void print( string, [string] )

Prints to CLI and status line of Adventuring window, optionally in a specified color.

void print_html( string )

Prints to CLI, parsing any included html.

void logprint( string )

Prints to the session log.

void wait( int )

void waitq( int )

Sleeps for the specified number of seconds.

boolean user_confirm( string )

Allows user input in Y/N format.


Property Functions

boolean [string] get_all_properties( string, boolean )

Returns a map of all user or global properties.

boolean property_existsstring, boolean? )

Checks whether a property exists.

boolean property_has_defaultstring )

Checks if a property has a built-in default value.

string property_default_valuestring )

Returns the default value of a property, or an empty string if a default value does not exist.

string get_property( string )

string get_property( string, boolean )

Gets a global or user preference as appropriate.

void set_property( string, string )

Sets a global or user preference as appropriate.

string remove_propertystring, boolean? )

Removes or resets a property and returns its previous value.

boolean rename_propertystring, string )

Renames a property. Returns true on success, false on failure.

Other Functions

void abortstring? )

Immediately halts the current script and all queued functions.

boolean [monster] all_monsters_with_id()

Returns a map of all monsters that have a non-zero monster ID.

void batch_open()

Used to mark the beginning of a block of functions to operate in batch mode (see page for batch_close() for details).

boolean batch_close()

Used to mark the end of a block of functions to operate in batch mode (see page for details).

int get_revision()

Returns the current KoLmafia revision number.

string get_version()

Returns the most recent KoLmafia version.

string get_player_id( string )

Returns the user id number of a given player.

boolean is_dark_mode()

Checks if the current KoLmafia theme is dark mode.

string to_json( aggregate )

Converts a simple aggregate into JSON.


Additional functions that are considered not really to be ash functions are available in Misc ASH Features