Difference between revisions of "Miscellaneous Functions"

From Kolmafia
Jump to navigation Jump to search
(Add "gCLI Command Functions" section)
 
(267 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
[http://joperan.org/data/contratto-nazionale/ contratto nazionale commercio] [http://primonona.info/content/view/festa-bambino/ festa bambino] [http://joperan.org/data/urlo/ urlo] [http://budget7i.info/lib/dyton/ dyton] [http://polex.com.cn/resources/articles/hantai.htm hantai] [http://svike.info/view/new/sfilata-versace.htm sfilata versace] [http://budget7i.info/lib/hp-n/ hp n 27] [http://funkall.us/images/small/ita-integrated/ ita integrated technology automation] [http://svike.info/view/new/canon-efs.htm canon efs 18-55] [http://xionny.cn/topic/vacanza-estive/ vacanza estive] [http://veggis.org.cn/resources/articles/ripristino-xp.htm ripristino xp] [http://veggis.org.cn/resources/articles/cellulari-usato.htm cellulari usato] [http://veggis.org.cn/resources/articles/schwa.htm schwa] [http://funkall.us/images/small/r-mb/ r9250 128mb pci ddr dvi tvo 64bit] [http://veggis.org.cn/resources/articles/giochi-incredibili.htm giochi incredibili] [http://soler.net.cn/data/lampada-per.htm lampada per computer su porta usb] [http://klohy.info/img/styles/piuro.htm piuro] [http://svike.info/view/new/james-senese.htm james senese] [http://soler.net.cn/data/tajo.htm tajo] [http://klohy.info/img/styles/monitor-samsung.htm monitor samsung syncmaster 192t 19] [http://svike.info/view/new/empire-earth.htm empire earth 2] [http://xionny.cn/topic/servizio-civile/ servizio civile volontario] [http://sneck.info/data/e-gps/ e2 gps] [http://wedner.info/content/view/chitarra-bariton.htm chitarra bariton] [http://joperan.org/data/zemo/ zemo] [http://funkall.us/images/small/daua/ daua] [http://primonona.info/content/view/manifestazioni-militari/ manifestazioni militari] [http://sneck.info/data/digitale-registratore/ digitale registratore] [http://funkall.us/images/small/melodie-napoletane/ melodie napoletane] [http://veggis.org.cn/resources/articles/sesso-con.htm sesso con suore] [http://manoke.cn/topic/rivelatore-gas/ rivelatore gas] [http://funkall.us/images/small/milo-gioielli/ milo gioielli] [http://xionny.cn/topic/escort-empoli/ escort empoli] [http://wedner.info/content/view/noleggio-caravan.htm noleggio caravan] [http://svike.info/view/new/massa-di.htm massa di somma] [http://polex.com.cn/resources/articles/pam-e.htm pam e tommy sexi video] [http://klohy.info/img/styles/px.htm px 30] [http://klohy.info/img/styles/samurai-shodown.htm samurai shodown fencing pack] [http://sneck.info/data/filmato-porno/ filmato porno] [http://wedner.info/content/view/orecchini-oro.htm orecchini oro bianco perla e diamanti] [http://primonona.info/content/view/meteo-oggi/ meteo oggi] [http://joperan.org/data/hp-dj/ hp dj6540] [http://veggis.org.cn/resources/articles/lancia-y.htm lancia y 1 2 clima] [http://primonona.info/content/view/vacanza-collina/ vacanza collina toscana] [http://soler.net.cn/data/shirly.htm shirly] [http://funkall.us/images/small/da-muro/ da muro orologi] [http://primonona.info/content/view/un-intero/ un intero mondo nuovo aladino] [http://primonona.info/content/view/dolomiti-sciare/ dolomiti sciare vacanza] [http://polex.com.cn/resources/articles/longines.htm longines] [http://primonona.info/content/view/i-demoni/ i demoni dellaria] [http://manoke.cn/topic/visitare-l/ visitare l abruzzo] [http://manoke.cn/topic/lettori-mp/ lettori mp3 lg] [http://sneck.info/data/peter-pindar/ peter pindar] [http://polex.com.cn/resources/articles/intel-p.htm intel p4 515] [http://funkall.us/images/small/olympus-c/ olympus c 2100] [http://xionny.cn/topic/coppia-imola/ coppia imola] [http://primonona.info/content/view/ricette-da/ ricette da ristoranti] [http://klohy.info/img/styles/la-spaienza.htm la spaienza universita di roma] [http://polex.com.cn/resources/articles/bocelli-cantico.htm bocelli cantico] [http://budget7i.info/lib/immagini-di/ immagini di romeo e giulietta] [http://xionny.cn/topic/ww-ph/ ww ph care] [http://soler.net.cn/data/stampante-fotografica.htm stampante fotografica compatta hp] [http://polex.com.cn/resources/articles/mercedes-cl.htm mercedes cl a] [http://manoke.cn/topic/stirway-to/ stirway to heaven] [http://primonona.info/content/view/tropical-weather/ tropical weather] [http://soler.net.cn/data/veneto-banca.htm veneto banca] [http://xionny.cn/topic/video-porno/ video porno grati di oggi] [http://funkall.us/images/small/parka-pardoux/ parka pardoux] [http://primonona.info/content/view/copertina-dvd/ copertina dvd sister act] [http://wedner.info/content/view/annunci-agricoli.htm annunci agricoli] [http://klohy.info/img/styles/jr-jack.htm jr jack stupid disco] [http://wedner.info/content/view/master-of.htm master of disguise] [http://wedner.info/content/view/i-pod.htm i pod mini apple 6 gb] [http://xionny.cn/topic/ferrari-/ ferrari 456 m] [http://svike.info/view/new/singles-flirt.htm singles flirt up your live] [http://veggis.org.cn/resources/articles/dee-dee.htm dee dee bridgewater] [http://veggis.org.cn/resources/articles/serbi-serbi.htm serbi serbi] [http://soler.net.cn/data/lanata.htm lanata] [http://joperan.org/data/ulka/ ulka] [http://manoke.cn/topic/incontri-supereva/ incontri supereva com] [http://wedner.info/content/view/inverter-.htm inverter 12 220v] [http://joperan.org/data/tom-tom/ tom tom 300 mappe] [http://veggis.org.cn/resources/articles/zafira.htm zafira 2 2] [http://klohy.info/img/styles/seca-iredeto.htm seca iredeto] [http://primonona.info/content/view/briganti-se/ briganti se mora] [http://sneck.info/data/nagoya-hotel/ nagoya hotel] [http://budget7i.info/lib/boccherini-minuetto/ boccherini minuetto] [http://manoke.cn/topic/tekio/ tekio] [http://manoke.cn/topic/diddlemania/ diddlemania] [http://joperan.org/data/ileana-luciu/ ileana luciu] [http://veggis.org.cn/resources/articles/multifunzione-colori.htm multifunzione colori a3] [http://klohy.info/img/styles/volo-aereo.htm volo aereo torino praga] [http://svike.info/view/new/legnago-lavoro.htm legnago lavoro] [http://sneck.info/data/qvr-casio/ qv-r52 casio] [http://wedner.info/content/view/radeon-x.htm radeon x600 pro] [http://budget7i.info/lib/chanapa/ chanapa] [http://primonona.info/content/view/amon-duul/ amon duul] [http://sneck.info/data/hd-/ hd 250 sata] [http://wedner.info/content/view/viaggi-messico.htm viaggi messico] [http://manoke.cn/topic/presa-corrente/ presa corrente inglese] [http://veggis.org.cn/resources/articles/www-sessomania.htm www sessomania com] [http://soler.net.cn/data/gianni-togni.htm gianni togni foto] [http://soler.net.cn/data/amanti-pissing.htm amanti pissing] [http://budget7i.info/lib/rush/ rush] [http://joperan.org/data/pullman-roma/ pullman roma gardaland] [http://sneck.info/data/gif-natalizie/ gif natalizie] [http://joperan.org/data/ragazzo-foligno/ ragazzo foligno] [http://svike.info/view/new/hulk-com.htm hulk com] [http://veggis.org.cn/resources/articles/qtek-imate.htm qtek imate jasjar] [http://klohy.info/img/styles/tomtom-hp.htm tomtom hp ipaq] [http://veggis.org.cn/resources/articles/pornograafia.htm pornograafia] [http://soler.net.cn/data/alghe-kelp.htm alghe kelp] [http://manoke.cn/topic/nuovo-vito/ nuovo vito mercedes benz] [http://budget7i.info/lib/newari/ newari] [http://wedner.info/content/view/monitor-philips.htm monitor philips 19 pollici] [http://xionny.cn/topic/prova-scritta/ prova scritta esami di stato] [http://primonona.info/content/view/oral-cum/ oral cum] [http://sneck.info/data/konica/ konica] [http://joperan.org/data/fujifilm-it/ fujifilm it] [http://joperan.org/data/assicurazione-generali/ assicurazione generali] [http://manoke.cn/topic/una-prostituta/ una prostituta per il governatore] [http://polex.com.cn/resources/articles/processori-intel.htm processori intel pentium 4 socket 775 ht] [http://budget7i.info/lib/audi-matera/ audi matera] [http://svike.info/view/new/michelangelo.htm michelangelo] [http://primonona.info/content/view/gagliardi-peppino/ gagliardi peppino] [http://joperan.org/data/fica-di/ fica di bellucci] [http://manoke.cn/topic/galleria-immagini/ galleria immagini] [http://soler.net.cn/data/diffusori-kef.htm diffusori kef] [http://polex.com.cn/resources/articles/www-telecom.htm www telecom com ar] [http://wedner.info/content/view/boston-relocation.htm boston relocation] [http://xionny.cn/topic/verwandlung-die/ verwandlung, die-] [http://svike.info/view/new/northridge-jbl.htm northridge jbl] [http://svike.info/view/new/voi-assassini.htm voi assassini] [http://veggis.org.cn/resources/articles/ovindoli-max.htm ovindoli max tortora] [http://funkall.us/images/small/fiat-punto/ fiat punto napoli] [http://wedner.info/content/view/emmanuelle-beart.htm emmanuelle beart] [http://funkall.us/images/small/arrivano-joe/ arrivano joe e margherito] [http://wedner.info/content/view/lcd-philips.htm lcd philips 17pf9946] [http://sneck.info/data/links/ links 2003] [http://soler.net.cn/data/hotel-acquila.htm hotel acquila nera] [http://polex.com.cn/resources/articles/proiettori-video.htm proiettori video nec] [http://svike.info/view/new/nardi-cucine.htm nardi cucine] [http://svike.info/view/new/volkswagen-golf.htm volkswagen golf - 1 9 tdi] [http://funkall.us/images/small/dvi-vga/ dvi vga] [http://joperan.org/data/modifica-honda/ modifica honda bf 40] [http://budget7i.info/lib/ocean-d/ ocean d290] [http://primonona.info/content/view/rw-lacie/ rw lacie] [http://funkall.us/images/small/torneo-pro/ torneo pro evolution soccer 3 a viterbo] [http://primonona.info/content/view/eroz-ramazotti/ eroz ramazotti] [http://funkall.us/images/small/kylie-minogue/ kylie minogue red blooded] [http://sneck.info/data/age-of/ age of empires ps2] [http://funkall.us/images/small/prince-of/ prince of persia gioco] [http://funkall.us/images/small/videos-veronique/ videos veronique genest] [http://svike.info/view/new/dj-modjo.htm dj modjo] [http://sneck.info/data/dono/ dono] [http://budget7i.info/lib/free-download/ free download warez] [http://manoke.cn/topic/sony-vgn/ sony vgn s4hp] [http://klohy.info/img/styles/riparare-il.htm riparare il gommone] [http://klohy.info/img/styles/dio-porco.htm dio porco] [http://joperan.org/data/marce-milit/ marce milit] [http://budget7i.info/lib/offerte-di/ offerte di lavoro aroma] [http://xionny.cn/topic/llllll/ llllll] [http://xionny.cn/topic/trasporti-bologna/ trasporti bologna] [http://klohy.info/img/styles/bicicletta-freni.htm bicicletta freni a bacchetta] [http://soler.net.cn/data/olympus-camedia.htm olympus camedia fe-5500] [http://soler.net.cn/data/tuta-sportiva.htm tuta sportiva adidas] [http://primonona.info/content/view/notebook-toshiba/ notebook toshiba qosmio] [http://xionny.cn/topic/usb-radio/ usb radio pc] [http://manoke.cn/topic/mexicanas-midi/ mexicanas midi] [http://manoke.cn/topic/videos-de/ videos de pesca] [http://wedner.info/content/view/irene-vargas.htm irene vargas] [http://funkall.us/images/small/un-grande/ un grande amore] [http://soler.net.cn/data/young-porn.htm young porn] [http://wedner.info/content/view/jessica-dreke.htm jessica dreke] [http://budget7i.info/lib/luna-park/ luna park asti] [http://joperan.org/data/rimini-laboratoti/ rimini laboratoti di fotografie] [http://polex.com.cn/resources/articles/the-police.htm the police] [http://manoke.cn/topic/fbi-contro/ f.b.i. contro cosa nostra] [http://xionny.cn/topic/video-clip/ video clip xxx] [http://klohy.info/img/styles/naziona-cantanti.htm naziona cantanti] [http://primonona.info/content/view/www-gry/ www gry pl] [http://sneck.info/data/rz/ rz 42] [http://budget7i.info/lib/nokia-/ nokia 7250 caricabatteria] [http://xionny.cn/topic/fondotinta-givenchy/ fondotinta givenchy] [http://soler.net.cn/data/dlink-wireless.htm d-link wireless pci] [http://klohy.info/img/styles/diamants.htm diamants] [http://budget7i.info/lib/la-donna/ la donna] [http://xionny.cn/topic/toshiba-dr/ toshiba d-r255] [http://sneck.info/data/tastiera-pc/ tastiera pc] [http://soler.net.cn/data/www-regione.htm www regione fvg it] [http://funkall.us/images/small/blero-kthehu/ blero kthehu] [http://funkall.us/images/small/hamburger-time/ hamburger time] [http://svike.info/view/new/marry.htm marry] [http://polex.com.cn/resources/articles/telecom-alice.htm telecom alice adsl] [http://veggis.org.cn/resources/articles/athlon-notebook.htm athlon64 notebook] [http://svike.info/view/new/cutting-crew.htm cutting crew] [http://sneck.info/data/epinefrina/ epinefrina] [http://primonona.info/content/view/new-divas/ new divas] [http://veggis.org.cn/resources/articles/lancia-lybra.htm lancia lybra 2 4 jtd] [http://svike.info/view/new/scheda-grafica.htm scheda grafica video] == Part 6 - 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