Difference between revisions of "Miscellaneous Functions"

From Kolmafia
Jump to navigation Jump to search
(Add "gCLI Command Functions" section)
 
(271 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
[http://it.rigour.info/topic/intervallo-qt/ intervallo qt lungo] [http://down.rigour.info/blog/la-moglie.htm la moglie del fornaio] [http://guest.rigour.info/library/html/canzoni-classiche/ canzoni classiche napoletane mp3] [http://paga.rigour.info/migrazione-degli/ migrazione degli gnu] [http://down.rigour.info/blog/asus-antenna.htm asus antenna mouse gps e accessori] [http://down.rigour.info/blog/registratori-dvd.htm registratori dvd vcr] [http://milano.rigour.info/panasonic-sv.htm panasonic sv av50] [http://dir.rigour.info/the-coast/ the coast guard] [http://speed.rigour.info/monica-mistress.htm monica mistress] [http://content.rigour.info/html/michelle-hunziger/ michelle hunziger] [http://paga.rigour.info/eddie-guerrero/ eddie guerrero mp3] [http://online.rigour.info/funkee-green/ funkee green dogs] [http://web.rigour.info/waterfalls-of/ waterfalls of the philippines] [http://all.rigour.info/scheda-wireless/ scheda wireless lan] [http://paga.rigour.info/liviu/ liviu] [http://paga.rigour.info/esame-avvocati/ esame avvocati genova 2004] [http://milano.rigour.info/storia-il.htm storia il carnevale degli animali] [http://all.rigour.info/obiettivo-sigma/ obiettivo sigma 18-200] [http://dir.rigour.info/sigma-/ sigma 70-200 f 2 8] [http://web.rigour.info/stampante-epson/ stampante epson stylus pro 4000] [http://content.rigour.info/html/sedi-inps/ sedi inps] [http://it.rigour.info/topic/lettore-dvd/ lettore dvd con uscita digitale] [http://all.rigour.info/hong-nung/ hong nung] [http://italy.rigour.info/blog/pantaloncini-boxe.htm pantaloncini boxe] [http://guest.rigour.info/library/html/berg-nicolas/ berg nicolas] [http://dir.rigour.info/altri-annunci/ altri annunci] [http://paga.rigour.info/honey-soundtrack/ honey soundtrack] [http://milano.rigour.info/motel-al.htm motel al mare] [http://web.rigour.info/lupen-fisarmonica/ lupen fisarmonica] [http://paga.rigour.info/industry-giant/ industry giant ii] [http://online.rigour.info/elise-lotus/ elise lotus] [http://load.rigour.info/view/new/ricoh-aficio.htm ricoh aficio 3200] [http://gratis.rigour.info/content/view/bitch.htm bitch] [http://blog.rigour.info/web/rocco-casalino/ rocco casalino] [http://guest.rigour.info/library/html/fz/ fz 30] [http://guest.rigour.info/library/html/galassi-pietro/ galassi pietro] [http://online.rigour.info/ecco/ ecco] [http://paga.rigour.info/temi-svolti/ temi svolti sull amicizia] [http://gratis.rigour.info/content/view/serbi-serbi.htm serbi serbi] [http://milano.rigour.info/video-gioco.htm video gioco pc] [http://blog.rigour.info/web/trasferimento-a/ trasferimento a caldo] [http://gratis.rigour.info/content/view/grimaldi-spa.htm grimaldi spa  di navigazione] [http://uve.rigour.info/blog/dom-perignon.htm dom perignon] [http://all.rigour.info/pet-supply/ pet supply] [http://pagina.rigour.info/il-processo/ il processo del secolo] [http://it.rigour.info/topic/peter-green/ peter green] [http://uve.rigour.info/blog/autoradio-con.htm autoradio con aux] [http://it.rigour.info/topic/giochi-pokemon/ giochi pokemon download] [http://pagina.rigour.info/pelvoux-massif/ pelvoux, massif du-] [http://italy.rigour.info/blog/jalisco-midi.htm jalisco midi] [http://speed.rigour.info/codici-seriali.htm codici seriali nero wave editor 6 0] [http://blog.rigour.info/web/supporto-per/ supporto per tv ciatti] [http://gratis.rigour.info/content/view/jeep-wrangler.htm jeep wrangler toscana] [http://guest.rigour.info/library/html/manzoni-il/ manzoni il cique maggio] [http://it.rigour.info/topic/military-school/ military school] [http://note.rigour.info/content/view/brodka-ten.htm brodka ten] [http://here.rigour.info/blog/vivis.htm vivis] [http://blog.rigour.info/web/edile-sace/ edile sace srl] [http://content.rigour.info/html/volo-rozzano/ volo rozzano] [http://all.rigour.info/tragico-destino/ tragico destino] [http://down.rigour.info/blog/inevitabilmente.htm inevitabilmente] [http://dir.rigour.info/autoradio-sony/ autoradio sony con telecomando] [http://note.rigour.info/content/view/ederaldo-gentil.htm ederaldo gentil] [http://blog.rigour.info/web/stampante-brother/ stampante brother multifunzione mfc] [http://guest.rigour.info/library/html/video-esecuzioni/ video esecuzioni ostaggi in iraq] [http://guest.rigour.info/library/html/talibe/ talibe] [http://blog.rigour.info/web/missione-segreta/ missione segreta] [http://it.rigour.info/topic/recorder-combi/ recorder combi dvd] [http://it.rigour.info/topic/sharp-videocamere/ sharp videocamere] [http://note.rigour.info/content/view/love-sex.htm love sex money abbigliamento] [http://guest.rigour.info/library/html/skins-be/ skins be] [http://online.rigour.info/webcam-con/ webcam con microfono incorporato] [http://guest.rigour.info/library/html/new-beetle/ new beetle miami] [http://guest.rigour.info/library/html/testina-stanton/ testina stanton] [http://all.rigour.info/pet-products/ pet products] [http://gratis.rigour.info/content/view/magic-balls.htm magic balls] [http://paga.rigour.info/asus-centrino/ asus centrino] [http://speed.rigour.info/the-servant.htm the servant traduzione] [http://guest.rigour.info/library/html/escape-elm/ escape elm street] [http://content.rigour.info/html/gps-blue/ gps blue tooth nemerix] [http://italy.rigour.info/blog/musica-new.htm musica new age] [http://uve.rigour.info/blog/come-mandare.htm come mandare un emeil] [http://note.rigour.info/content/view/apophthegmata-patrum.htm apophthegmata patrum] [http://gratis.rigour.info/content/view/sapphire-radeon.htm sapphire radeon x300se] [http://guest.rigour.info/library/html/fac-orice/ fac orice iubire] [http://milano.rigour.info/vampiros-lesbos.htm vampiros lesbos] [http://load.rigour.info/view/new/visual-source.htm visual source safe 6] [http://all.rigour.info/la-battaglia/ la battaglia del pianeta perduto] [http://content.rigour.info/html/carmen-di/ carmen di pietro video] [http://milano.rigour.info/mozart-romanza.htm mozart romanza] [http://paga.rigour.info/dvd-antonio/ dvd antonio albanese] [http://all.rigour.info/elenco-utenti/ elenco utenti publiweb] [http://dir.rigour.info/gran-thef/ gran thef auto] [http://all.rigour.info/home-alone/ home alone] [http://italy.rigour.info/blog/irradio-dvx.htm irradio dvx] [http://dir.rigour.info/hercule/ hercule] [http://content.rigour.info/html/schede-madri/ schede madri amd64] [http://milano.rigour.info/sveglia-orologio.htm sveglia orologio oregon] [http://here.rigour.info/blog/scuola-puericultrici.htm scuola puericultrici] [http://load.rigour.info/view/new/antenna-da.htm antenna da auto] [http://note.rigour.info/content/view/norton-system.htm norton system works premier 2005] [http://italy.rigour.info/blog/www-ex.htm www ex jeans com] [http://note.rigour.info/content/view/etichette-cd.htm etichette cd up] [http://speed.rigour.info/sea-sex.htm sea sex and sun] [http://blog.rigour.info/web/taglio-laser/ taglio laser lamiera] [http://load.rigour.info/view/new/il-castello.htm il castello di otranto] [http://all.rigour.info/antivirus-worm/ antivirus worm] [http://online.rigour.info/frist-date/ frist date] [http://here.rigour.info/blog/hanno-fatto.htm hanno fatto di me un criminale] [http://guest.rigour.info/library/html/grennday/ grennday] [http://down.rigour.info/blog/alfa-romeo.htm alfa romeo 145] [http://milano.rigour.info/e-yu.htm e yu] [http://gratis.rigour.info/content/view/top-les.htm top les anderson pamela] [http://paga.rigour.info/battagli-aerea/ battagli aerea] [http://all.rigour.info/motoguzzi-breva/ motoguzzi breva 1100] [http://speed.rigour.info/nb-fujitsusiemens.htm nb fujitsu-siemens amilo pro v8010] [http://paga.rigour.info/batteria-jvc/ batteria jvc videocamera] [http://all.rigour.info/caipirinha/ caipirinha] [http://pagina.rigour.info/infradito-sandali/ infradito sandali] [http://load.rigour.info/view/new/traduci-in.htm traduci in inglese scozia] [http://up.rigour.info/description/lib/foto-maschi.htm foto maschi] [http://speed.rigour.info/ho-ld.htm ho ld me for a while] [http://here.rigour.info/blog/p.htm p800] [http://content.rigour.info/html/belinda-lo/ belinda lo siento] [http://load.rigour.info/view/new/chitarra-elettrica.htm chitarra elettrica custodia] [http://all.rigour.info/vincenzo-ballo/ vincenzo ballo] [http://note.rigour.info/content/view/graduatoria-incarichi.htm graduatoria incarichi dirigente scuola e] [http://content.rigour.info/html/fort-bliss/ fort bliss] [http://speed.rigour.info/mute-omer.htm mute omer] [http://content.rigour.info/html/softcam-keys/ softcam keys] [http://online.rigour.info/sbavatura/ sbavatura] [http://online.rigour.info/rata-mutuo/ rata mutuo] [http://dir.rigour.info/forum-yankse/ forum yankse] [http://down.rigour.info/blog/dvd-combinato.htm dvd combinato divx] [http://down.rigour.info/blog/tomtom-navigator.htm tomtom navigator 5 bluetooth] [http://gratis.rigour.info/content/view/sapphicerotica.htm sapphicerotica] [http://here.rigour.info/blog/dx-kodak.htm dx6440 kodak] [http://dir.rigour.info/fiat-multipla/ fiat multipla jtd] [http://speed.rigour.info/pornodivi-nudi.htm pornodivi nudi gratis] [http://uve.rigour.info/blog/tee-shirt.htm tee shirt] [http://up.rigour.info/description/lib/tutto-sesso.htm tutto sesso privato] [http://gratis.rigour.info/content/view/ilg-alfred.htm ilg, alfred] [http://speed.rigour.info/starsky-hutch.htm starsky hutch per pc] [http://guest.rigour.info/library/html/kamikaze-hun/ kamikaze hun] [http://gratis.rigour.info/content/view/philips-b.htm philips 109b60] [http://dir.rigour.info/paolo-meneguzzi/ paolo meneguzzi testi] [http://dir.rigour.info/monitor-samsung/ monitor samsung 21] [http://content.rigour.info/html/hit-connection/ hit connection 2004] [http://online.rigour.info/prestito-veneto/ prestito veneto] [http://down.rigour.info/blog/la-conquista.htm la conquista dello spazio] [http://up.rigour.info/description/lib/per-un.htm per un pugno di sabbia] [http://here.rigour.info/blog/kia-concessionario.htm kia concessionario] [http://uve.rigour.info/blog/gli-antenati.htm gli antenati su playstation] [http://online.rigour.info/www-mediasetonline/ www mediasetonline it] [http://gratis.rigour.info/content/view/garmin-gps.htm garmin gps60 gps] [http://here.rigour.info/blog/la-provincia.htm la provincia di cremona] [http://down.rigour.info/blog/plasma-philips.htm plasma philips 42pf9966] [http://pagina.rigour.info/finanziamento-dublin/ finanziamento dublin] [http://pagina.rigour.info/kisskiss/ kiss-kiss] [http://down.rigour.info/blog/sexy-jeans.htm sexy jeans] [http://note.rigour.info/content/view/macchina-fotografica.htm macchina fotografica kodak] [http://content.rigour.info/html/deep-dish/ deep dish flash dance] [http://pagina.rigour.info/gisela-molinero/ gisela molinero] [http://dir.rigour.info/valeria-manzi/ valeria manzi] [http://italy.rigour.info/blog/o-thou.htm o thou that tellest good tidings to zion] [http://pagina.rigour.info/dlink-dfw/ d-link dfw-500] [http://note.rigour.info/content/view/over-and.htm over and over nelly] [http://here.rigour.info/blog/entre-la.htm entre la espada y la pared] [http://it.rigour.info/topic/johan-cruyff/ johan cruyff] [http://down.rigour.info/blog/ichalkaranji.htm ichalkaranji] [http://uve.rigour.info/blog/renault-.htm renault  kangoo 1.4 rxe] [http://uve.rigour.info/blog/gioco-carta.htm gioco carta scala quaranta] [http://guest.rigour.info/library/html/alcor-catanzaro/ alcor catanzaro] [http://uve.rigour.info/blog/cd-aventura.htm cd aventura we broke the rules] [http://paga.rigour.info/fica-di/ fica di bellucci] [http://online.rigour.info/zalman-w/ zalman 400w] [http://gratis.rigour.info/content/view/canon-stampanti.htm canon stampanti fotografiche] [http://italy.rigour.info/blog/dimage-a.htm dimage a 2 konica minolta] [http://paga.rigour.info/uffi/ uffi] [http://web.rigour.info/gien/ gien] [http://gratis.rigour.info/content/view/yahoo-email.htm yahoo email] [http://it.rigour.info/topic/newari/ newari] [http://milano.rigour.info/la-calandria.htm la calandria] [http://online.rigour.info/l-esigenza/ l esigenza] [http://all.rigour.info/gratis-foto/ gratis foto] [http://guest.rigour.info/library/html/tentazione/ tentazione] [http://gratis.rigour.info/content/view/vw-vbs.htm vw vb210s] [http://uve.rigour.info/blog/hp-.htm hp 5510 officejet] [http://note.rigour.info/content/view/hard-disk.htm hard disk 80 gb sata 7200 rpm] [http://guest.rigour.info/library/html/macchina-per/ macchina per pane amstrad] [http://content.rigour.info/html/fist-of/ fist of the north star] [http://up.rigour.info/description/lib/dx-.htm dx 3220 divx] [http://blog.rigour.info/web/decapitazione-ostaggio/ decapitazione ostaggio cinese] [http://italy.rigour.info/blog/barosma.htm barosma] [http://pagina.rigour.info/trampolin/ trampolin] [http://milano.rigour.info/marchese.htm marchese] [http://pagina.rigour.info/marce-milit/ marce milit] [http://gratis.rigour.info/content/view/veronica-zemanova.htm veronica zemanova gallery] [http://dir.rigour.info/www-divastar/ www divastar com] [http://uve.rigour.info/blog/il-diavolo.htm il diavolo nero] == 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