Difference between revisions of "Miscellaneous Functions"

From Kolmafia
Jump to navigation Jump to search
(Add "gCLI Command Functions" section)
 
(149 intermediate revisions by 71 users not shown)
Line 1: Line 1:
[http://lisalippsfree.useth.info/ Lisa lipps free] [http://ainettstephens.erpast.info/ Ainett stephens nuda] [http://magliettabagnata.thumba.info/ Maglietta bagnata] [http://centrobenessere.thumba.info/ Centro benessere trentino] [http://kylieminogue.perils.info/ Kylie minogue] [http://twistyscom.zorgam.info/ Twistys com] [http://wwwpuntosesso.useth.info/ Www puntosesso it] [http://calendarioagosto.busied.info/ Calendario agosto 2007] [http://nikibelluccifilm.zorgam.info/ Niki bellucci film hard free] [http://unibo.zorgam.info/ Unibo] [http://campusinfostrada.thumba.info/ Campus infostrada it] [http://millydabraccio.erpast.info/ Milly dabraccio] [http://perils.info/index0_1000.html home] [http://erpast.info/index2_666.html map] [http://sediaesternochiudibili.useth.info/ Sedia esterno chiudibili] [http://erpast.info/index4_1000.html url] [http://erpast.info/index4_1000.html url] [http://thumba.info/index7_666.html map] [http://dedicheit.useth.info/ Dediche it] [http://sexocomcoroas.choppie.info/ Sexo com coroas] [http://padronadominatrice.useth.info/ Padrona dominatrice storia] [http://puttanegrasse.thumba.info/ Puttane grasse] [http://valeriavisconti.busied.info/ Valeria visconti film] [http://choppie.info/index6_666.html homepage] [http://suckcockgay.droven.info/ Suck cock gay] [http://neeze.info/index0_666.html site] [http://frequenzasportitalia.useth.info/ Frequenza sportitalia] [http://nelsonmandelastoria.perils.info/ Nelson mandela storia] [http://giochionlineorg.perils.info/ Giochionline org] [http://choppie.info/index7_666.html page] [http://oasi2000it.thumba.info/ Oasi2000 it] [http://donnevecchieche.thumba.info/ Donne vecchie che scopano] [http://hotelpescasseroli.glend.info/ Hotel pescasseroli] [http://pamperseasyup.choppie.info/ Pampers easy up 4 maxi 8 15 kg] [http://contrattofranchising.choppie.info/ Contratto franchising agenzia viaggi] [http://pornotoube.glend.info/ Porno toube] [http://procida.glend.info/ Procida] [http://wwwvecchiesfondate.glend.info/ Www vecchie sfondate com] [http://vecchieporcone.perils.info/ Vecchie porcone] [http://perils.info/index4_250.html page] [http://neeze.info/index5_250.html homepage] [http://carmella.busied.info/ Carmella] [http://realizzazionepromozione.perils.info/ Realizzazione promozione sito internet] [http://clistereanale.useth.info/ Clistere anale foto] [http://infermierenude.zorgam.info/ Infermiere nude] [http://popupkiller.glend.info/ Popup killer] [http://useth.info/index6_666.html site] [http://wetblackpussy.zorgam.info/ Wet black pussy] [http://fallimento.choppie.info/ Fallimento] [http://telefonoip.zorgam.info/ Telefono ip] [http://perils.info/index1_250.html page] [http://endermologie.useth.info/ Endermologie] [http://gohanevidel.glend.info/ Gohan e videl xxx] [http://fnada.droven.info/ Fnada] [http://fotodicazzienormi.thumba.info/ Foto di cazzi enormi bianchi] [http://melissasattatetta.choppie.info/ Melissa satta tetta] [http://busied.info/index2_250.html homepage] [http://calcolapercorso.droven.info/ Calcola percorso] [http://shanghairistorante.zorgam.info/ Shanghai ristorante] [http://traduzionecanzoni.neeze.info/ Traduzione canzoni] [http://glend.info/index7_666.html index] [http://autousatatoyota.zorgam.info/ Auto usata toyota yaris] [http://thumba.info/ thumba.info] [http://attricehard.zorgam.info/ Attrice hard] [http://albergolondra.erpast.info/ Albergo londra] [http://gerardbutler.choppie.info/ Gerard butler] [http://programmafatturazione.perils.info/ Programma fatturazione] [http://cuckold.droven.info/ Cuckold] [http://malagutif12.choppie.info/ Malaguti f12] [http://giochionlineorg.zorgam.info/ Giochionlineorg] [http://cartinamappamondo.useth.info/ Cartina mappamondo] [http://thumba.info/index7_666.html map] [http://ciaoamigosit.busied.info/ Ciao amigos it] [http://polacchetroie.busied.info/ Polacche troie] [http://biotrituratore.useth.info/ Biotrituratore cardano] [http://figapelosagratis.glend.info/ Figa pelosa gratis] [http://objectanalinsertion.zorgam.info/ Object anal insertion] [http://bellascopata.droven.info/ Bella scopata] [http://zorgam.info/index5_1000.html home] [http://droven.info/index4_1000.html droven.info/index4_1000.html] [http://integrazione.busied.info/ Integrazione soluzione hosting] [http://sandalo.erpast.info/ Sandalo] [http://freepissingmovies.busied.info/ Free pissing movies] [http://capodannoagriturismo.neeze.info/ Capodanno agriturismo] [http://hotelmilanocentro.perils.info/ Hotel milano centro] [http://wwwdonneincinte.zorgam.info/ Www donne incinte it] [http://fotonudiste.erpast.info/ Foto nudiste] [http://videoornogratis.glend.info/ Video orno gratis] [http://gialli.busied.info/ Gialli] [http://sogeiit.zorgam.info/ Sogei it] [http://salmahayek.zorgam.info/ Salma hayek] [http://erpast.info/index6_666.html page] [http://webcamliberesesso.thumba.info/ Webcam libere sesso] [http://cumshotmovie.droven.info/ Cum shot movie] [http://tavolaperiodica.erpast.info/ Tavola periodica degli elementi] [http://villaggioischia.choppie.info/ Villaggio ischia] [http://puntocrocepimbolo.perils.info/ Punto croce pimbolo] [http://vispathe.useth.info/ Vis pathe] [http://testqi.choppie.info/ Test q i] [http://grossepoppe.droven.info/ Grosse poppe] [http://tainka.jino-net.ru/styles/sylvana.htm sylvana] [http://traidels.cn/blog/barbadossandacres.html Barbados sand acres hotel] [http://tikula.jino-net.ru/data/gioco-delle9/ gioco delle cinque differenze] [http://lanadance.jino-net.ru/fitness-attrezzatura/ fitness attrezzatura] [http://lanadance.jino-net.ru/mp-cellulari/ mp3 cellulari motorola] [http://tikula.jino-net.ru/data/lesson-in/ lesson in love] [http://vera-megastar.jino-net.ru/small/requiem-per3.html requiem per dominic] [http://lanadance.jino-net.ru/il-posto/ il posto] [http://svetlanavt.jino-net.ru/text/tango-a.htm tango a parigi] [http://listjanysik.jino-net.ru/text/base-midi2/ base midi m ama o m amera] [http://svetlanavt.jino-net.ru/text/ram-notebook.htm ram notebook] [http://tainka.jino-net.ru/styles/film-d.htm film d amore gratuiti] [http://msanutka.jino-net.ru/blog/mountain-bike11/ mountain bike full] [http://scruf.cn/ermafrodita/ Ermafrodita porno] [http://vera-megastar.jino-net.ru/small/nokia103.html nokia 6250] [http://tainka.jino-net.ru/styles/the-gems.htm the gems] [http://listjanysik.jino-net.ru/text/puma-plus/ puma plus] [http://traidels.cn/blog/ammucchiate.html Ammucchiate] [http://listjanysik.jino-net.ru/text/dvd-portatile8/ dvd portatile tv] [http://tikula.jino-net.ru/data/quadro-fx13/ quadro fx 1400] [http://svetlanavt.jino-net.ru/text/te-amar.htm te amar] [http://tikula.jino-net.ru/data/via-g/ via g da verrazzano 15] [http://tikula.jino-net.ru/data/www-christian1/ www christian dior occhiali da sole] [http://listjanysik.jino-net.ru/text/animali-fantastici/ animali fantastici] [http://svetlanavt.jino-net.ru/text/alexander-borodin.htm alexander borodin] [http://tainka.jino-net.ru/styles/ipotesi-di.htm ipotesi di reato] [http://listjanysik.jino-net.ru/text/album-fotografico2/ album fotografico online] [http://msanutka.jino-net.ru/blog/www-cerco6/ www cerco donne libere] [http://listjanysik.jino-net.ru/text/easy-laminator/ easy laminator] [http://vera-megastar.jino-net.ru/small/barbecue-copertura.html barbecue copertura] [http://lanadance.jino-net.ru/ata-2/ ata 5400 hard disk e floppy] [http://msanutka.jino-net.ru/blog/kingmax/ kingmax 512] [http://msanutka.jino-net.ru/blog/stampante-laser107/ stampante laser hp 1300] [http://lanadance.jino-net.ru/video-musical18/ video musical de kalimba] [http://svetlanavt.jino-net.ru/text/tv-lettore1.htm tv lettore dvd portatile] [http://tikula.jino-net.ru/data/laica-aerosol/ laica aerosol] [http://lanadance.jino-net.ru/bosch-kgs3/ bosch kgs] [http://tainka.jino-net.ru/styles/royal-canin21.htm royal canin cane] [http://tikula.jino-net.ru/data/yahooit/ yahooit] [http://tainka.jino-net.ru/styles/Cis-nola1.htm cis nola] [http://listjanysik.jino-net.ru/text/hotel-alba1/ hotel alba d amore lampedusa] [http://vera-megastar.jino-net.ru/small/trucchi-ps6.html trucchi ps2 sant andreas] [http://tikula.jino-net.ru/data/ennio-morricone10/ ennio morricone colonne sonore] [http://listjanysik.jino-net.ru/text/palmare-sd/ palmare sd satellitare] [http://vera-megastar.jino-net.ru/small/golf-gti7.html golf gti 20v] [http://tikula.jino-net.ru/data/hot-tango/ hot tango meis] [http://tainka.jino-net.ru/styles/rover-mini3.htm rover mini cooper] [http://listjanysik.jino-net.ru/text/rai3/ rai 2] [http://msanutka.jino-net.ru/blog/come-ottenere/ come ottenere un seno molto prosperoso] [http://withouter.cn/articles/contattimsndi.html Contatti msn di ragazze troie] [http://lanadance.jino-net.ru/emule-server3/ emule server italiano] [http://tikula.jino-net.ru/data/midi-shrek/ midi shrek] [http://witchlander.cn/topic/camerettaarredamento.html Cameretta arredamento classico] [http://tainka.jino-net.ru/styles/acam-bologna.htm acam bologna] [http://vera-megastar.jino-net.ru/small/veterinai-caserta.html veterinai caserta] [http://lanadance.jino-net.ru/laura-x/ laura x] [http://svetlanavt.jino-net.ru/text/rosenstolz-will.htm rosenstolz will mich verlieben] [http://lanadance.jino-net.ru/sapphire-xt2/ sapphire 9600xt 256mb] [http://listjanysik.jino-net.ru/text/catalogo/ catalogo 10] [http://lanadance.jino-net.ru/los-angelescannes/ los angelescannes solo andata] [http://fruscianteisgod.jino-net.ru/view/adobe-standard.html adobe standard suite] [http://svetlanavt.jino-net.ru/text/pubblicita-in.htm pubblicita in internet] [http://listjanysik.jino-net.ru/text/taxi-varazze/ taxi varazze] [http://listjanysik.jino-net.ru/text/biancaneve-senza/ biancaneve senza principe] [http://scruf.cn/fotocazzigrossi/ Foto cazzi grossi gratis] [http://vera-megastar.jino-net.ru/small/passat-sw2.html passat sw motion] [http://vera-megastar.jino-net.ru/small/brithney-nude.html brithney nude] [http://msanutka.jino-net.ru/blog/daniel-perl/ daniel perl] [http://svetlanavt.jino-net.ru/text/athlon16.htm athlon64 4800] [http://withouter.cn/articles/divafuturaplus.html Diva futura plus] [http://tainka.jino-net.ru/styles/beenieman.htm beenieman] [http://fruscianteisgod.jino-net.ru/view/fiat13.html fiat 128] [http://svetlanavt.jino-net.ru/text/athlon-k1.htm athlon64 (k8) 3200] [http://svetlanavt.jino-net.ru/text/carrelli-a1.htm carrelli a motore per movimentazione merci] [http://msanutka.jino-net.ru/blog/inno-milan/ inno milan milan] [http://svetlanavt.jino-net.ru/text/durante-viviana.htm durante viviana] [http://svetlanavt.jino-net.ru/text/magicolor-w2.htm magicolor 2400w toner] [http://traidels.cn/blog/acquariooroscopo.html Acquario oroscopo giorno] [http://listjanysik.jino-net.ru/text/dvd-armata/ dvd armata delle tenebre] [http://svetlanavt.jino-net.ru/text/il-turno.htm il turno riassunto] [http://msanutka.jino-net.ru/blog/security-cameras/ security cameras] [http://msanutka.jino-net.ru/blog/toner-sharp7/ toner sharp al1000] [http://witchlander.cn/topic/blondesoralsex.html Blondes oral sex] [http://snorke.cn/topic/fotouominineri.html Foto uomini neri nudi] [http://msanutka.jino-net.ru/blog/bloodhound/ bloodhound] [http://tikula.jino-net.ru/data/nintendo-pallone/ nintendo pallone] [http://listjanysik.jino-net.ru/text/vermin/ vermin] [http://vera-megastar.jino-net.ru/small/socket9.html socket 478] [http://tainka.jino-net.ru/styles/kumba-kings.htm kumba kings] [http://svetlanavt.jino-net.ru/text/radio-fm13.htm radio fm usb pc] [http://vera-megastar.jino-net.ru/small/calciomercato-juventus.html calciomercato juventus] [http://tikula.jino-net.ru/data/itinerari-ad/ itinerari ad ormea] [http://lanadance.jino-net.ru/stampante-per11/ stampante per fotocamere] [http://svetlanavt.jino-net.ru/text/macchina-elettrica1.htm macchina elettrica] [http://witchlander.cn/topic/cartonifamosi.html Cartoni famosi xxx] [http://lanadance.jino-net.ru/macchina-sportive/ macchina sportive] [http://lanadance.jino-net.ru/lucean-le/ lucean le stelle] [http://vera-megastar.jino-net.ru/small/pesci-marini.html pesci marini] [http://snorke.cn/topic/fotomammetroie.html Foto mamme troie] [http://msanutka.jino-net.ru/blog/jentina-bad/ jentina bad ass strippa] == 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 output )</strong><br />
+
== Debugging Functions ==
<strong>void print( string output, string color )</strong><br />
+
{{Flink|void|disable|string|desc=Disables the specified function.}}
Prints <i>output</i> to the CLI buffer and displays it in the status line of the main Adventuring window.  If <i>color</i> is specified any HTML in <i>output</i> is escaped and the string is wrapped in a font tag before being printed.</p>
+
{{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