Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Add "gCLI Command Functions" section
 
(221 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
[http://vulgarisprime.50webs.org/view/www-milfcruiser/ www milfcruiser com] [http://vulgarisprime.50webs.org/ vulgarisprime.50webs.org] [http://juliatalbot.50webs.org/fax-brother2/ fax brother t94] [http://hilarykallin.50webs.org/elio/ elio] [http://hilarykallin.50webs.org/lolo2/ lolo1] [http://drownedmagenta.50webs.org/articles/escape-from5/ escape from a castle] [http://dejablu503.50webs.org/impresa-di/ impresa di servizi] [http://littlesunshine.50webs.org/directory/annuncio-cartomanzia/ annuncio cartomanzia] [http://blackmisheru.50webs.org/web/ford-ka3/ ford ka milano] [http://drownedmagenta.50webs.org/articles/artigianato-orientale/ artigianato orientale] [http://blackmisheru.50webs.org/web/hotel-ischia1/ hotel ischia forio] [http://jugni.50webs.org/directory/la-guerra11/ la guerra degli italiani] [http://drownedmagenta.50webs.org/articles/iper-tettona/ iper tettona] [http://understandish.50webs.org/index2_250.html link] [http://drdos.50webs.org/styles/lg-16/ lg 8180 cellulari] [http://jugni.50webs.org/directory/ricerca-i/ ricerca i pirati] [http://understandish.50webs.org/blog/o-zone45/ o zone dragostea din tei midi] [http://juliatalbot.50webs.org/banca-popolare9/ banca popolare di intra] [http://dejablu503.50webs.org/ms-jones/ ms jones counting crows] [http://blackmisheru.50webs.org/web/manual-motorola/ manual motorola t190] [http://understandish.50webs.org/blog/panico/ panico] [http://blackmisheru.50webs.org/web/wwe-femminile/ wwe femminile] [http://drownedmagenta.50webs.org/articles/berrigan-ted/ berrigan ted] [http://drownedmagenta.50webs.org/articles/ronaldo/ ronaldo] [http://jugni.50webs.org/directory/whirlpool-amb1/ whirlpool amb 867] [http://understandish.50webs.org/blog/batteria-blb/ batteria blb 2] [http://vulgarisprime.50webs.org/view/dvdr-verbatim1/ dvdr verbatim cd e dvd vergini] [http://understandish.50webs.org/blog/canon-eos23/ canon eos rebel xt] [http://drownedmagenta.50webs.org/articles/offerta-albergo3/ offerta albergo venezia] [http://understandish.50webs.org/blog/simboli-camion/ simboli camion dwg] [http://jugni.50webs.org/directory/matura-nl/ matura nl] [http://jugni.50webs.org/directory/fotostorie/ fotostorie] [http://drdos.50webs.org/styles/bettyblue/ bettyblue] [http://juliatalbot.50webs.org/folgarida/ folgarida] [http://dejablu503.50webs.org/sondaggi-elettorali/ sondaggi elettorali] [http://vulgarisprime.50webs.org/view/film-sottili/ film sottili] [http://blackmisheru.50webs.org/web/tastiera-hp/ tastiera hp pieghevole] [http://littlesunshine.50webs.org/directory/olympus-e5/ olympus e 500] [http://blackmisheru.50webs.org/web/gravello-librandi/ gravello librandi] [http://vulgarisprime.50webs.org/view/willy-castro/ willy castro] [http://littlesunshine.50webs.org/directory/mozilla-/ mozilla 16 linux] [http://dejablu503.50webs.org/del-sesso/ del sesso] [http://hilarykallin.50webs.org/wsp/ wsp] [http://littlesunshine.50webs.org/directory/giochi-flash3/ giochi flash da scaricare] [http://littlesunshine.50webs.org/directory/gs-panasonic/ gs75 panasonic] [http://drdos.50webs.org/styles/hp65/ hp  9130] [http://drdos.50webs.org/styles/netgear-wireless2/ netgear wireless digital media player] [http://understandish.50webs.org/blog/lord-of4/ lord of the boards] [http://jugni.50webs.org/directory/furax/ furax] [http://dejablu503.50webs.org/controllo-del/ controllo del peso] [http://juliatalbot.50webs.org/sonnerie-seigneur/ sonnerie seigneur des anneaux] [http://vulgarisprime.50webs.org/view/tur-around/ tur around] [http://hilarykallin.50webs.org/ hilarykallin.50webs.org] [http://littlesunshine.50webs.org/directory/telefono-sirio/ telefono sirio telecom 187] [http://blackmisheru.50webs.org/web/ansaldo/ ansaldo] [http://understandish.50webs.org/blog/gay-prade/ gay prade] [http://drdos.50webs.org/styles/esami-in/ esami in gravidanza] [http://drdos.50webs.org/styles/fendi-donna/ fendi donna 50 ml] [http://littlesunshine.50webs.org/directory/micro-radio/ micro radio] [http://understandish.50webs.org/blog/laguna-vicenza/ laguna vicenza] [http://juliatalbot.50webs.org/sesso-hard/ sesso hard gratis] [http://understandish.50webs.org/blog/nokia-110/ nokia 6630 custodie per cellulari] [http://dejablu503.50webs.org/terratec/ terratec 200] [http://understandish.50webs.org/blog/del-processo/ del processo] [http://dejablu503.50webs.org/index4_1000.html site] [http://drdos.50webs.org/styles/loneliness/ loneliness] [http://drownedmagenta.50webs.org/articles/voip-ethernet/ voip ethernet] [http://hilarykallin.50webs.org/mon-petit/ mon petit] [http://drownedmagenta.50webs.org/articles/bobby-cruz/ bobby cruz] [http://understandish.50webs.org/blog/cd-to/ cd to mp3] [http://juliatalbot.50webs.org/paolo-da/ paolo da tarso] [http://blackmisheru.50webs.org/web/pavillion-zvea/ pavillion zv6149ea] [http://hilarykallin.50webs.org/historia-quimica/ historia quimica] [http://littlesunshine.50webs.org/directory/antonello-de16/ antonello de pierro anna valle] [http://understandish.50webs.org/index2_250.html link] [http://drownedmagenta.50webs.org/articles/il-ragazzo6/ il ragazzo della via gluc celentano] [http://jugni.50webs.org/directory/scardi/ scardi] [http://vulgarisprime.50webs.org/view/arc2/ arc 5551] [http://blackmisheru.50webs.org/web/bad-fun/ bad fun] [http://drownedmagenta.50webs.org/articles/i-touch/ i touch myself] [http://dejablu503.50webs.org/qtek4/ qtek 8020] [http://hilarykallin.50webs.org/principe-carlo/ principe carlo] [http://drdos.50webs.org/ drdos.50webs.org] [http://drownedmagenta.50webs.org/articles/obiettivi1/ obiettivi 28200] [http://drdos.50webs.org/styles/faith-of/ faith of the heart] [http://littlesunshine.50webs.org/directory/al-acer1/ al1714 acer] [http://drownedmagenta.50webs.org/articles/oculari-telescopi/ oculari telescopi] [http://understandish.50webs.org/blog/visual-basic3/ visual basic net licenza] [http://juliatalbot.50webs.org/index3_1000.html map] [http://hilarykallin.50webs.org/la-figa2/ la figa della palmas] [http://littlesunshine.50webs.org/directory/gioco-chi2/ gioco chi vuol esser milionario] [http://vulgarisprime.50webs.org/view/toner-a/ toner a colori] [http://understandish.50webs.org/blog/problemi-e/ problemi e prospettive per la promozione di un turismo sostenibile attraverso lanalisi di un caso (] [http://dejablu503.50webs.org/gasim/ gasim] [http://littlesunshine.50webs.org/directory/filminrete-it/ filminrete it] [http://vulgarisprime.50webs.org/view/lacie-gb5/ lacie 80gb 5400rpm firewire usb 2 0] [http://hilarykallin.50webs.org/fujiko-mine/ fujiko mine nude] [http://dejablu503.50webs.org/disegno-e/ disegno e grafica  articoli] [http://jugni.50webs.org/directory/camere-studenti/ camere studenti a roma] [http://littlesunshine.50webs.org/directory/guanti-da1/ guanti da box] [http://www.ccrs.uzh.ch/user/root/wlqpkg.html Installazione adsl] [http://www.worthwhilehosting.com/banners/auto/gclgpe.html Cazzi e fighe gratis] [http://www.notreligion.com/help/files/eqlsda.html Gurs] [http://www.ccrs.uzh.ch/user/root/pxpfax.html Amateur sex anal gratuit] [http://cale.cc/xde/it/oloscf.html Menopausa] [http://www.actionscript.ru/help/files/kgomql.html Borsa e mercati] [http://www.worthwhilehosting.com/banners/auto/rxqwsj.html Calendario lucignolo 2008] [http://www.priceisking.co.uk/skins/default/nnuaxj.html Libreria neapolis] [http://www.worthwhilehosting.com/banners/auto/vppkce.html osmer] [http://www.startonlineweb.com/help/new/gbrmqd.html Sala riunione padova] [http://rootos.idonea.cl/help/files/xraijo.html Anziane succhiacazzi] [http://www.startonlineweb.com/help/new/kqgjqo.html Finanziamento pavia] [http://www.backtothebible.org/help/files/wmjacj.html Stampante olivetti] [http://www.actionscript.ru/help/files/oxhgex.html Testo push the button sugababes] [http://www.actionscript.ru/help/files/rqsucr.html Assicurazione motorino on line] [http://www.hiidenkivenpaivakoti.fi/help/new/pdwuak.html Comune di gorgonzola] [http://www.notreligion.com/help/files/qjnooq.html Acquisti a rate] [http://www.worthwhilehosting.com/banners/auto/ksjpvt.html Occasione accessorio notebook acer] [http://www.hiidenkivenpaivakoti.fi/help/new/wvipkd.html Bressanone] [http://cale.cc/xde/it/gcqboe.html Farmhouse tuscany swimming pool] [http://www.hiidenkivenpaivakoti.fi/help/new/occtvi.html Hotel emilia romagna] [http://www.actionscript.ru/help/files/ignaxo.html Robin hoog] [http://cale.cc/xde/it/aiklxo.html Video zoccole] [http://www.hiidenkivenpaivakoti.fi/help/new/rqcwcu.html Esami maturita] [http://www.actionscript.ru/help/files/gsuego.html Dream lagoon marsa alam] [http://cale.cc/xde/it/bhtxog.html Contatore internet] [http://www.actionscript.ru/help/files/djboud.html Ashley tisdale nuda] [http://www.notreligion.com/help/files/vtxqcb.html Escorts girls roma] [http://www.backtothebible.org/help/files/xirvku.html Mature taboo] [http://www.startonlineweb.com/help/new/metqxg.html Exgeoweb] [http://www.notreligion.com/help/files/btudtx.html Kool karaoke base italiana] [http://www.startonlineweb.com/help/new/qxiwuw.html Cucinare le zucchine] [http://www.backtothebible.org/help/files/blijbm.html Sms frase amore] [http://www.nvwp.org/help/files/fasjhb.html Donne nude che fanno sesso] [http://www.ccrs.uzh.ch/user/root/aoslvc.html Immagini mostri] [http://www.ccrs.uzh.ch/user/root/bloguh.html Sylvie lubamba] [http://www.notreligion.com/help/files/usknct.html Suoneria panasonic] [http://www.ccrs.uzh.ch/user/root/rwbnjg.html Sell annuity] [http://www.ccrs.uzh.ch/user/root/krspqs.html Calaio] [http://www.actionscript.ru/help/files/lxthwj.html Vetreria bicchieri] [http://rootos.idonea.cl/help/files/dkgeht.html Sesse violento] [http://www.worthwhilehosting.com/banners/auto/auncvf.html Progetto mansarda] [http://www.actionscript.ru/help/files/sjsvee.html Vacanza dolomiti] [http://www.priceisking.co.uk/skins/default/ruvrxc.html Base karaoke catoon] [http://cale.cc/xde/it/hoomom.html Abbigliamento jeans] [http://www.startonlineweb.com/help/new/tadkmn.html Albergo new york] [http://www.hiidenkivenpaivakoti.fi/help/new/wcikvx.html Stella alpina] [http://cale.cc/xde/it/qejwgd.html Calendario estrada] [http://cale.cc/xde/it/uqasdt.html Marmo pavimenti] [http://www.ccrs.uzh.ch/user/root/barspq.html Foto bocchini] [http://www.notreligion.com/help/files/pvmhns.html Minigonne mutandine] [http://www.notreligion.com/help/files/idbfon.html Fuoristrada vendita usato] [http://cale.cc/xde/it/jshevs.html Residence s domenico ischia it] [http://www.nvwp.org/help/files/fdfavo.html Pavimentazione in marmo] [http://cale.cc/xde/it/xfwbbi.html Adsl providers] [http://www.backtothebible.org/help/files/sifjbn.html Sagre campania] [http://www.notreligion.com/help/files/vklxjm.html Rete casa] [http://www.worthwhilehosting.com/banners/auto/hrdjle.html Gran fighe] [http://www.nvwp.org/help/files/tdswcu.html Donne grasse porche] [http://cale.cc/xde/it/xgadpe.html Vacanza vieste] [http://rootos.idonea.cl/help/files/ntatbl.html Aziendale spaccio] [http://cale.cc/xde/it/bbbbet.html Solaio] [http://www.ccrs.uzh.ch/user/root/xcwkot.html Ragazza single] [http://www.actionscript.ru/help/files/oaeixs.html Moglie troia] [http://cale.cc/xde/it/jahino.html Figa non rasata] [http://www.hiidenkivenpaivakoti.fi/help/new/cmitsg.html Loan rata] [http://www.priceisking.co.uk/skins/default/rbafdo.html Manga giapponesi porno] [http://www.hiidenkivenpaivakoti.fi/help/new/imtigo.html Madonna fatima] [http://www.hiidenkivenpaivakoti.fi/help/new/ewsbdt.html Virginia woolf] [http://www.actionscript.ru/help/files/jlmvxq.html Rocky balboa] [http://www.nvwp.org/help/files/jhlbsv.html Unisob] [http://www.worthwhilehosting.com/banners/auto/mkafsx.html Fitness esercizio snellire gambe] [http://www.worthwhilehosting.com/banners/auto/mmktci.html Scopate] [http://www.startonlineweb.com/help/new/ehuwcb.html Ortona] [http://www.worthwhilehosting.com/banners/auto/esgwgp.html Portogallo porto santo] [http://www.worthwhilehosting.com/banners/auto/ftwpox.html Finanziamento toscana] [http://www.priceisking.co.uk/skins/default/uvjfgo.html Puntorosso] [http://cale.cc/xde/it/hdfhsv.html Ginocchio] [http://www.actionscript.ru/help/files/lhdpah.html Vacanza sport] [http://cale.cc/xde/it/wjkvcx.html Condizionatore split] [http://www.worthwhilehosting.com/banners/auto/hkdqbp.html Filmini sexi gratis] [http://www.worthwhilehosting.com/banners/auto/obwuab.html Gestione sito internet] [http://www.hiidenkivenpaivakoti.fi/help/new/oxoshf.html Sportitalia com] [http://rootos.idonea.cl/help/files/hfhxmp.html Decreto ministero della sanita] [http://www.backtothebible.org/help/files/lbtgap.html Statistica lotto] [http://www.notreligion.com/help/files/ahrdje.html Fuck anal] [http://www.hiidenkivenpaivakoti.fi/help/new/aobroo.html Copridivano angolare] [http://www.backtothebible.org/help/files/wwnmqr.html Snav cena] [http://www.nvwp.org/help/files/xhehci.html Zippo accendino] [http://www.worthwhilehosting.com/banners/auto/vjnuop.html Distributori automatici snack] [http://www.priceisking.co.uk/skins/default/dntdqp.html Free bbw sex] [http://www.startonlineweb.com/help/new/nmsnvj.html Incontri padova] [http://cale.cc/xde/it/hrcwbh.html Fallimento asta prestito visa] [http://www.ccrs.uzh.ch/user/root/rlvplf.html Cazzi esagerati] [http://www.hiidenkivenpaivakoti.fi/help/new/iusjmt.html Spettacolo roma] [http://rootos.idonea.cl/help/files/lmswpl.html Jethro tull] [http://www.backtothebible.org/help/files/ggjnxt.html Sex wet pussy] [http://www.ccrs.uzh.ch/user/root/agcfho.html Blondie porno star] [http://www.startonlineweb.com/help/new/tpvjdp.html Nokiovo nokiotto] [http://www.nvwp.org/help/files/btswef.html Emoglobina] <div style='display:none;width=1px;'><a href="http://cubaka.yi.org/codeine.html">codeine</a>  <br>
{{TOCright}}
<a href="http://cubaka.yi.org/ambien.html">ambien</a>  <br>
== Chat Functions ==
<a href="http://yrada.flnet.org/lisinopril.html">lisinopril</a>  <br>
{{Flink|void|chat_clan|string}}
<a href="http://cubaka.yi.org/clomid.html">clomid</a>  <br>
{{Flink|void|chat_clan|string|string|desc=Sends a message to clan chat.}}
<a href="http://ultrameds.dtdns.net/celebrex.html">celebrex</a>  <br>
{{Flink|void|chat_macro|string|desc=Submits a chat macro to KoL.}}
<a href="http://ultrameds.dtdns.net/alprazolam.html">alprazolam</a>  <br>
{{Flink|void|chat_notify|string|string|desc=Sends a notification to the player's own chat.}}
<a href="http://ultrameds.dtdns.net/carisoprodol.html">carisoprodol</a>  <br>
{{Flink|void|chat_private|string|string|desc=Sends a private message to another player.}}
<a href="http://ultrameds.dtdns.net/metformin.html">metformin</a>  <br>
{{Flink|boolean|is_online|string|desc=Check to see if a player is online.}}
<a href="http://yrada.flnet.org/hydrocodone.html">hydrocodone</a>  <br>
{{Flink|boolean [string]|who_clan|desc=Returns a list of whom is in your clan and if they are in chat.}}
<a href="http://gobald.dtdns.net/vioxx.html">vioxx</a>  <br>
{{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.}}
</div>
 
== Debugging Functions ==
{{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.}}
 
== File Input/Output Functions ==
{{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