Difference between revisions of "Miscellaneous Functions"

From Kolmafia
Jump to navigation Jump to search
(Add "gCLI Command Functions" section)
 
(233 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
[http://fotopecora.hpirale.info/ Foto pecora] [http://autousatait.grekles.info/ Auto usata it] [http://immigrati.hpirale.info/ Immigrati] [http://homelidays.hpirale.info/ Homelidays] [http://scontilibri.ipnerka.info/ Sconti libri] [http://testspeed.hequila.info/ Test speed adsl] [http://monetadacollezione.gittose.info/ Moneta da collezione] [http://sexymomson.ipnerka.info/ Sexy mom son] [http://puttaneon.ipnerka.info/ Puttane on line] [http://gigantesupermercato.hpirale.info/ Gigante supermercato] [http://fornomicroonde.gerbinu.info/ Forno microonde industriale] [http://corsipercarrellista.goxasi.info/ Corsi per carrellista] [http://grannypussy.hpirale.info/ Granny pussy] [http://sexyluna.ipnerka.info/ Sexyluna] [http://topannunci.hequila.info/ Topannunci org] [http://fumettinaruto.hpirale.info/ Fumetti naruto xxx] [http://caldaiamurale.goxasi.info/ Caldaia murale] [http://bpuit.goxasi.info/ Bpu it] [http://auricolare.grekles.info/ Auricolare bluetooth nokia] [http://agendaesercito.grekles.info/ Agenda esercito italiano] [http://sardegnavacanza.ipnerka.info/ Sardegna vacanza volo] [http://cercolavorocasa.goxasi.info/ Cerco lavoro casa] [http://videocameredigitali.flowake.info/ Videocamere digitali] [http://donnenerefoto.gerbinu.info/ Donne nere foto] [http://compravendita.goxasi.info/ Compravendita case sardegna] [http://tesinaitaliano.hequila.info/ Tesina italiano online] [http://ultramotard.flowake.info/ Ultramotard] [http://raiclickrai.ipnerka.info/ Raiclick rai it] [http://risultaticampionato.ipnerka.info/ Risultati campionato calcio serie b] [http://wwwgiglian.hyndres.info/ Www giglian] [http://stradarioroma.hequila.info/ Stradario roma citta] [http://acquistocd.grekles.info/ Acquisto cd] [http://edengay.gerbinu.info/ Edengay] [http://wwwitaliahardit.hyndres.info/ Www italiahardit] [http://albergocomo.hyndres.info/ Albergo como] [http://incontrocoppia.hpirale.info/ Incontro coppia o singola bari] [http://aldadeusanio.grekles.info/ Alda d eusanio] [http://bombonieracomunione.goxasi.info/ Bomboniera comunione online] [http://fighepelate.gerbinu.info/ Fighe pelate] [http://hotelforum.hpirale.info/ Hotel forum bratislava] [http://cazzitrans.goxasi.info/ Cazzi trans] [http://latribunadi.gittose.info/ La tribuna di treviso] [http://lecalzadella.gittose.info/ Le calza della befana] [http://cogoleto.goxasi.info/ Cogoleto] [http://produzione.hunchoxi.info/ Produzione scarpa lavoro antinfortunistica] [http://pornotette.hunchoxi.info/ Porno tette grosse] [http://scarlattina.ipnerka.info/ Scarlattina] [http://viagraprescription.hyndres.info/ Viagra prescription] [http://gruppocredito.hpirale.info/ Gruppo credito valtellinese] [http://isoladikrk.gittose.info/ Isola di krk] [http://henger.hpirale.info/ Henger] [http://softwarecontrollo.hequila.info/ Software controllo scheda pc] [http://smashingpumpkins.ipnerka.info/ Smashing pumpkins] [http://kartellpesaro.gittose.info/ Kartell pesaro] [http://omnitelit.hunchoxi.info/ Omnitel it] [http://voliolanda.hyndres.info/ Voli olanda] [http://sitoesaurito.ipnerka.info/ Sitoesaurito tv] [http://cucciapercani.gerbinu.info/ Cuccia per cani in plastica] [http://katysaunders.gittose.info/ Katy saunders biografia] [http://francescoarca.hpirale.info/ Francesco arca sfondo] [http://supertroie.hequila.info/ Super troie] [http://donnefocose.gerbinu.info/ Donne focose] [http://centribenessere.goxasi.info/ Centri benessere umbria] [http://littlelolita.gittose.info/ Little lolita sex] [http://fototransnudi.hpirale.info/ Foto trans nudi] [http://videolumiere.hyndres.info/ Video lumiere velletri] [http://prestitopersonalizzato.hunchoxi.info/ Prestito personalizzato personale] [http://pornotrans.hunchoxi.info/ Pornotrans] [http://aperturaconto.grekles.info/ Apertura conto corrente on line] [http://bigdildo.grekles.info/ Big dildo] [http://filmatixxx.gerbinu.info/ Filmati xxx] [http://bancheprestito.grekles.info/ Banche prestito] [http://selengallery.ipnerka.info/ Selen gallery] [http://cialisonline.goxasi.info/ Cialis online] [http://spermatozoi.hequila.info/ Spermatozoi] [http://fetishsex.gerbinu.info/ Fetish sex] [http://futanari.hpirale.info/ Futanari] [http://proveammissione.ipnerka.info/ Prove ammissione ssis] [http://cartoneporno.goxasi.info/ Cartone porno disney gratis] [http://asianblowjob.grekles.info/ Asian blowjob] [http://miluracconti.gittose.info/ Milu racconti] [http://ragazzeamatoriali.ipnerka.info/ Ragazze amatoriali nude] [http://trovareascendente.flowake.info/ Trovare ascendente] [http://annunciogigolo.grekles.info/ Annuncio gigolo] [http://videomadameweb.hyndres.info/ Video madameweb] [http://futurismoarte.hpirale.info/ Futurismo arte veneto] [http://coldiretticuneo.goxasi.info/ Coldiretti cuneo] [http://gecube.hpirale.info/ Gecube] [http://offertacapodanno.hunchoxi.info/ Offerta capodanno mauritius] [http://serviziohosting.ipnerka.info/ Servizio hosting italia] [http://babemaialino.grekles.info/ Babe maialino coraggioso] [http://gonzomovie.hpirale.info/ Gonzo movie free com] [http://nerebellissime.hunchoxi.info/ Nere bellissime] [http://madeleinestowe.gittose.info/ Madeleine stowe] [http://uomonudogay.hequila.info/ Uomo nudo gay] [http://offeresoggiorno.hunchoxi.info/ Offere soggiorno firenze] [http://jogabonito.gittose.info/ Joga bonito] [http://tuttoscuola.hequila.info/ Tuttoscuola] [http://freebestiality.hpirale.info/ Free bestiality] [http://charlottecasiraghi.goxasi.info/ Charlotte casiraghi] [http://hilarykallin.ifrance.com/lib/floppy-usb/ floppy usb hp] [http://punkking157.ifrance.com/description/tata-indigo/ tata indigo] [http://mommamal.ifrance.com/articles/lovely-sara/ lovely sara princess sarah vol 10] [http://gekijuls.ifrance.com/resources/assessorato-al.htm assessorato al turismo] [http://gekijuls.ifrance.com/resources/inno-russo.htm inno russo suoneria] [http://tangent10000.ifrance.com/content/sistema-informativi/ sistema informativi territoriali] [http://tangent10000.ifrance.com/content/anonymous-address/ anonymous address] [http://deviantru.ifrance.com/view/ricetta-pesce.htm ricetta pesce spada] [http://anga12.ifrance.com/library/manuali-nautica.htm manuali nautica] [http://punkking157.ifrance.com/description/a-storm/ a storm in summer temporale destate] [http://tallie123.ifrance.com/articles/km-citroen.htm km0 citroen c3 pluriel auto km 0] [http://bfudlmint.ifrance.com/small/il-soldato/ il soldato jane] [http://melok.ifrance.com/library/valentina-escort.htm valentina escort] [http://chrisinpm.ifrance.com/view/raymond-pellegrin.htm raymond pellegrin] [http://jeremyscheidel.ifrance.com/topic/suono-di/ suono di campane] [http://tallie123.ifrance.com/articles/torture-bdsm.htm torture bdsm] [http://bfudlmint.ifrance.com/small/accessori-per/ accessori per aspirapolvere] [http://otezdimitriy.ifrance.com/description/chyna/ chyna] [http://acantharia.ifrance.com/topic/schaub-lorenz/ schaub lorenz 29] [http://jeremyscheidel.ifrance.com/topic/ragazzo-verbania/ ragazzo verbania] [http://yourstarfish.ifrance.com/hello-dolly/ hello dolly spartito gratis] [http://leshji.ifrance.com/topic/fantasy-come/ fantasy come genere letterario] [http://yourstarfish.ifrance.com/sonora-de/ sonora de margarita] [http://deviantru.ifrance.com/view/nrj.htm nrj] [http://erinb0t.ifrance.com/articles/karwin.htm karwin] [http://punkking157.ifrance.com/description/virgilio-sala/ virgilio sala giochi] [http://hilarykallin.ifrance.com/lib/web-sexviet/ web sexviet] [http://gotcris.ifrance.com/description/la-storia.htm la storia infinita ende libri] [http://erinb0t.ifrance.com/articles/hip-hip.htm hip hip vico c] [http://jeremyscheidel.ifrance.com/topic/lena-olin/ lena olin] [http://mmmyriama.ifrance.com/topic/costi-si.htm costi si alina] [http://anga12.ifrance.com/library/viruscan-.htm viruscan 4 5 1 sp1] [http://punkking157.ifrance.com/description/microprocessore-intel/ microprocessore intel] [http://gekijuls.ifrance.com/resources/blue-best.htm blue best of blue] [http://tangent10000.ifrance.com/content/pioneer-del/ pioneer del peru] [http://prettypinkdaisy.ifrance.com/lib/twym-aniolem/ twym aniolem] [http://albumina.ifrance.com/new/software-internet.htm software internet mac] [http://ohnosweeney.ifrance.com/f-/ f                            fds] [http://erinb0t.ifrance.com/articles/cat-castell.htm cat castell] [http://tangent10000.ifrance.com/content/lillah/ lillah] [http://gekijuls.ifrance.com/resources/coppie-con.htm coppie con singolo] [http://leshji.ifrance.com/topic/fogli-trasparenti/ fogli trasparenti] [http://acantharia.ifrance.com/topic/acer-n/ acer n50 128mb] [http://anga12.ifrance.com/library/sex-tap.htm sex tap the] [http://leshji.ifrance.com/topic/terre-australi/ terre australi e antartiche f] [http://gotcris.ifrance.com/description/www-anses.htm www anses gov ar] [http://gotcris.ifrance.com/description/little-kevin.htm little kevin turn me on] [http://ohnosweeney.ifrance.com/sdm-hspb/ sdm hs73pb] [http://xxiunicorn.ifrance.com/styles/mdm.htm mdm] [http://jeremyscheidel.ifrance.com/topic/transaction/ transaction] [http://xxiunicorn.ifrance.com/styles/tavolo-acciaio.htm tavolo acciaio arredo giardino] [http://tangent10000.ifrance.com/content/eten-p/ eten p300 gps] [http://otezdimitriy.ifrance.com/description/cant-wait/ cant wait unti tomorow] [http://teachersarah.ifrance.com/web/damascato/ damascato] [http://mommamal.ifrance.com/articles/real-estate/ real estate investing] [http://melok.ifrance.com/library/maglia-milan.htm maglia milan 20052006 calcio] [http://bfudlmint.ifrance.com/small/ripetitore-di/ ripetitore di telecomando] [http://melok.ifrance.com/library/grammatica-italiana.htm grammatica italiana esercizi] [http://erinb0t.ifrance.com/articles/da-chi.htm da chi e stato usato the brava system] [http://xxiunicorn.ifrance.com/styles/rocio-durcal.htm rocio durcal midi] [http://ohnosweeney.ifrance.com/tritatutto-moulinex/ tritatutto moulinex] [http://phoenixofeuropa.ifrance.com/new/offerte-lavoro.htm offerte lavoro provincia di rimini] [http://acantharia.ifrance.com/topic/binocolo-leica/ binocolo leica] [http://ohnosweeney.ifrance.com/la-donna/ la donna dell amico mio] [http://tallie123.ifrance.com/articles/michelle-viert.htm michelle viert] [http://gekijuls.ifrance.com/resources/austempering.htm austempering] [http://hilarykallin.ifrance.com/lib/american-roulette/ american roulette] [http://tallie123.ifrance.com/articles/investigatori.htm investigatori] [http://albumina.ifrance.com/new/toyota-land.htm toyota land cruiser 70] [http://jeremyscheidel.ifrance.com/topic/windvd-freeware/ windvd freeware] [http://ohnosweeney.ifrance.com/cuffia-microfono/ cuffia microfono] [http://tangent10000.ifrance.com/content/new-tps/ new tps multivision] [http://teachersarah.ifrance.com/web/giochi-strip/ giochi strip poker] [http://bfudlmint.ifrance.com/small/gruppo/ gruppo 63] [http://erinb0t.ifrance.com/articles/foto-culo.htm foto culo] [http://otezdimitriy.ifrance.com/description/weekend-in/ weekend in pulman in italia] [http://leshji.ifrance.com/topic/save-your/ save your kisses for me] [http://teachersarah.ifrance.com/web/toner-hp/ toner hp laserjet 3030] [http://acantharia.ifrance.com/topic/telecamera-con/ telecamera con hard disk] [http://tallie123.ifrance.com/articles/region-grenoble.htm region grenoble] [http://punkking157.ifrance.com/description/www-eminflex/ www eminflex it] [http://punkking157.ifrance.com/description/oye-mi/ oye mi canto mp3] [http://xxiunicorn.ifrance.com/styles/axim-palmare.htm axim palmare] [http://acantharia.ifrance.com/topic/rosso-amaranto/ rosso amaranto] [http://erinb0t.ifrance.com/articles/winckler-josef.htm winckler josef] [http://gotcris.ifrance.com/description/scheda-audio.htm scheda audio per karaoke] [http://albumina.ifrance.com/new/foto-porno.htm foto porno gradis] [http://acantharia.ifrance.com/topic/j-k/ j k rowling harry potter e l ordine] [http://xxiunicorn.ifrance.com/styles/iron-maiden.htm iron maiden hunter] [http://mommamal.ifrance.com/articles/testo-tu/ testo tu nem ai] [http://punkking157.ifrance.com/description/assicurazione-poggibonsi/ assicurazione poggibonsi] [http://mmmyriama.ifrance.com/topic/v-codici.htm v7 codici attivazione] [http://yourstarfish.ifrance.com/accessori-canon/ accessori canon] [http://tallie123.ifrance.com/articles/adattatore-usb.htm adattatore usb da ps2] [http://prettypinkdaisy.ifrance.com/lib/san-giorgio/ san giorgio malice] [http://deviantru.ifrance.com/view/foppapedretti-asse.htm foppapedretti asse] [http://erinb0t.ifrance.com/articles/nisi-za.htm nisi za mene ti] [http://deviantru.ifrance.com/view/robbe-williams.htm robbe williams feel] [http://gotcris.ifrance.com/description/delonghi-colombina.htm delonghi colombina] [http://albumina.ifrance.com/new/tell-me.htm tell me up] == 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