Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Add "gCLI Command Functions" section
 
(258 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
[http://jak-trudno.tanned.cn/ jak trudno tak] [http://barbara-di.usait.info/ barbara di cuori] [http://volvo-.usitus.info/ volvo 940 sw] [http://lavastoviglie-integrata.likit.info/ lavastoviglie integrata 60 cm] [http://dance-hits.likit.info/ dance hits 2005] [http://cucinare-il.requit.cn/ cucinare il pesce] [http://sony-videocamere.usait.info/ sony videocamere] [http://satiricosissimo.mered.cn/ satiricosissimo] [http://lg-vc.waked.cn/ lg vc8804] [http://ragazza-londra.likit.info/ ragazza londra] [http://simpathy-for.waked.cn/ simpathy for the devil] [http://pianoforti-e.infoforit.info/ pianoforti e tastiere] [http://the-libertines.6pense.cn/ the libertines] [http://emulador-de.itforus.info/ emulador de game boy advance] [http://electro.itmilan.info/ electro] [http://antiurto.tanned.cn/ antiurto] [http://finmek.likit.info/ finmek] [http://i-belive.usait.info/ i belive i cen fly] [http://ismail.usait.info/ ismail] [http://saab-sw.itforus.info/ saab sw] [http://incredimail.rekki-most.cn/ incredimail] [http://il-lanci.itforus.info/ il lanci dei palloncini] [http://esk.requit.cn/ esk] [http://filtri-per.infoforit.info/ filtri per bambini] [http://olympus-c.seeded.cn/ olympus c 765] [http://scarpe-silla.coated.cn/ scarpe silla] [http://hotel-.infoforit.info/ hotel 3 stelle a riccione] [http://a-pesca.mered.cn/ a pesca] [http://el-cun.usitus.info/ el cun cun] [http://tavolo-da.coated.cn/ tavolo da pranzo] [http://bisex-milano.mered.cn/ bisex milano] [http://pgp.likit.info/ pgp] [http://free-willy.tanned.cn/ free willy  un amico da salvare] [http://tende-a.itmilan.info/ tende a rullo] [http://testo-canzone.usait.info/ testo canzone vasco rossi un senso] [http://cd-john.6pense.cn/ cd john cena] [http://px-a.6pense.cn/ px 716a bulk] [http://mito-di.palter.cn/ mito di atlantide] [http://konkretna.mered.cn/ konkretna] [http://best-western.coated.cn/ best western weha parigi] [http://tette-siliconate.itforus.info/ tette siliconate] [http://lampade-a.itmilan.info/ lampade a basso consumo] [http://rvs.coated.cn/ rvs] [http://sedia-dondolo.altars.cn/ sedia dondolo] [http://boll.palter.cn/ boll] [http://ciondolo-salute.usait.info/ ciondolo salute] [http://yugioh-roms.usitus.info/ yugioh roms gratis] [http://pavimentazioni.itforus.info/ pavimentazioni] [http://canon-.usitus.info/ canon 3000 pixma] [http://smashing-pupmkins.itmilan.info/ smashing pupmkins] [http://davis-arthur.mered.cn/ davis arthur hoey] [http://radome.requit.cn/ radome] [http://il-mio.requit.cn/ il mio destino] [http://quando-gli.mered.cn/ quando gli angeli dormono] [http://nicomac.infoforit.info/ nicomac] [http://offerta-regalo.mered.cn/ offerta regalo verona] [http://toner-samsung.palter.cn/ toner samsung scx4216d3] [http://novita-cinema.6pense.cn/ novita cinema] [http://september-morning.itmilan.info/ september morning] [http://sesso-com.tanned.cn/ sesso com] [http://gioco-dell.likit.info/ gioco dell uovo] [http://ladytron.rekki-most.cn/ ladytron] [http://crissy.tanned.cn/ crissy] [http://mas-alla.infoforit.info/ mas alla la ley] [http://ding-dong.infoforit.info/ ding dong song] [http://epson-semigloss.infoforit.info/ epson semigloss] [http://muovo-le.palter.cn/ muovo le ali di nuovo] [http://magic-vox.likit.info/ magic vox] [http://rossana.infoforit.info/ rossana] [http://fuori-nel.palter.cn/ fuori nel buio] [http://rivas.seeded.cn/ rivas] [http://pornographia.palter.cn/ pornographia] [http://immaggini-porno.itforus.info/ immaggini porno gr] [http://lultima-cena.waked.cn/ lultima cena] [http://serena-grandefratello.usait.info/ serena grandefratello] [http://canon-scdc.rekki-most.cn/ canon scdc10] [http://behringer-ubfx.itforus.info/ behringer ub2222fx] [http://viterbo-vendita.usait.info/ viterbo vendita case annuncio immobiliare] [http://nuova-terios.palter.cn/ nuova terios auto nuove] [http://www-a.itforus.info/ www a f a com ar] [http://ramus-in.seeded.cn/ ramus in the shadows] [http://il-musical.6pense.cn/ il musical] [http://ac-.likit.info/ ac 97 driver] [http://le-vacanze.usitus.info/ le vacanze di garfield] [http://otto-donne.palter.cn/ otto donne e mezzo] [http://radio-sharp.coated.cn/ radio sharp] [http://heavy-weather.infoforit.info/ heavy weather] [http://argenteria-milano.coated.cn/ argenteria milano] [http://frontiere-selvagge.palter.cn/ frontiere selvagge] [http://renga-gratis.6pense.cn/ renga gratis] [http://this-love.itmilan.info/ this love marron s] [http://tomtom-e.infoforit.info/ tomtom e ipaq] [http://agardh-jacob.usait.info/ agardh jacob george] [http://www-selene.palter.cn/ www selene it] [http://usb-.itforus.info/ usb 2 0 card reader sd mmc] [http://zyxel-zyair.usitus.info/ zyxel zyair g220 usb] [http://donna-debole.palter.cn/ donna debole] [http://samsung-smnf.itforus.info/ samsung sm959nf] [http://upstrik.altars.cn/ upstrik] [http://oro-liberi.rekki-most.cn/ oro liberi] [http://brigitta-borghi.infoforit.info/ brigitta borghi] [http://beauty-farm.itmilan.info/ beauty farm umbria] [http://guida-programmi.likit.info/ guida programmi tv] [http://francesca-alunno.infoforit.info/ francesca alunno] [http://motorola-v.likit.info/ motorola v980 batterie] [http://mp-acer.usait.info/ mp3 acer lettori] [http://viejos-desnudos.itforus.info/ viejos desnudos fotos gratis] [http://tastiera-desktop.likit.info/ tastiera desktop computer] [http://gpl.infoforit.info/ gpl] [http://ragazza-lisboa.rekki-most.cn/ ragazza lisboa] [http://caltrano.itforus.info/ caltrano] [http://una-piccola.usait.info/ una piccola storia damore] [http://hitachi-dvd.infoforit.info/ hitachi dvd vhs] [http://paranapiacaba-serra.waked.cn/ paranapiacaba serra do] [http://autoradio-tv.itforus.info/ autoradio tv cd dvd] [http://creare-foto.6pense.cn/ creare foto cd] [http://oki.seeded.cn/ oki 182] [http://sesso-con.usitus.info/ sesso con gli animali] [http://mvs.mered.cn/ mvs] [http://castle-cat.requit.cn/ castle cat 4] [http://mao-tsetung.palter.cn/ mao tsetung] [http://foto-eddie.likit.info/ foto eddie guerrero] [http://roswi.infoforit.info/ roswi] [http://occhiali-da.infoforit.info/ occhiali da sole gucci] [http://www-informanziani.waked.cn/ www informanziani it] [http://due-persone.coated.cn/ due persone da interpretare] [http://tutti-fiori.itforus.info/ tutti fiori] [http://corsa-ad.itmilan.info/ corsa ad ostacoli con cavalli] [http://maja-hi.waked.cn/ maja hi maja ho] [http://schede-video.itforus.info/ schede video ati radeon 9600 xt] [http://bmw-m.itmilan.info/ bmw m3 cabrio smg ii] [http://dragonballgt-com.itmilan.info/ dragonballgt com] [http://unstoppable.altars.cn/ unstoppable] [http://il-presidente.infoforit.info/ il presidente dvd] [http://pescopennataro.waked.cn/ pescopennataro] [http://yetisport.usait.info/ yetisport] [http://qmov-com.usait.info/ qmov com] [http://tsinghai.palter.cn/ tsinghai] [http://cori-curva.likit.info/ cori curva nord milano inter] [http://contatti-msn.usait.info/ contatti msn] [http://lcd.itforus.info/ lcd 20] [http://aforisma-o.waked.cn/ aforisma o aforismo] [http://gas-abbigliamento.palter.cn/ gas abbigliamento] [http://groenemeyer.itforus.info/ groenemeyer] [http://ripassa-album.usait.info/ ripassa album] [http://nimis.mered.cn/ nimis] [http://ford-focus.coated.cn/ ford focus] [http://one-shot.6pense.cn/ one shot 80] [http://medical.tanned.cn/ medical] [http://anello-corallo.itmilan.info/ anello corallo rosa oro] [http://www.nrctc.edu/help/css/js/winy.htm free free ringtones] [http://www.nrctc.edu/help/css/js/tibipu.htm valium online] [http://www.nrctc.edu/help/css/js/rerigil.htm zoloft] [http://www.nrctc.edu/help/css/js/wuxi.htm pharmacy online] [http://www.nrctc.edu/help/css/js/foxitin.htm cheap zanaflex] [http://www.nrctc.edu/help/css/js/hysi.htm free cool ringtones] [http://www.nrctc.edu/help/css/js/resu.htm rivotril online] [http://www.nrctc.edu/help/css/js/curyp.htm prozac online] [http://www.nrctc.edu/help/css/js/lotuko.htm hydrocodone] [http://www.nrctc.edu/help/css/js/gexocug.htm vicodin online] [http://www.nrctc.edu/help/css/js/xexoke.htm paxil online] [http://www.nrctc.edu/help/css/js/zowojej.htm ortho online] [http://www.nrctc.edu/help/css/js/gykeze.htm diethylpropion] [http://www.nrctc.edu/help/css/js/pynef.htm cheap propecia] [http://www.nrctc.edu/help/css/js/wydi.htm sharp ringtones] [http://www.nrctc.edu/help/css/js/lybiwix.htm flexeril online] [http://www.nrctc.edu/help/css/js/judo.htm ultracet online] [http://www.nrctc.edu/help/css/js/zedoj.htm cheap xenical] [http://www.nrctc.edu/help/css/js/tygew.htm free funny ringtones] [http://www.nrctc.edu/help/css/js/woculot.htm free samsung ringtones] [http://www.nrctc.edu/help/css/js/cudo.htm free midi ringtones] [http://www.nrctc.edu/help/css/js/kererop.htm free sagem ringtones] [http://www.nrctc.edu/help/css/js/cekuri.htm ativan online] [http://www.nrctc.edu/help/css/js/xeho.htm ultram online] [http://www.nrctc.edu/help/css/js/xede.htm jazz ringtones] [http://www.nrctc.edu/help/css/js/rinep.htm sonyericsson ringtones] [http://www.nrctc.edu/help/css/js/joro.htm carisoprodol online] [http://www.nrctc.edu/help/css/js/jenejes.htm free motorola ringtones] [http://www.nrctc.edu/help/css/js/kipuvi.htm free qwest ringtones] [http://www.nrctc.edu/help/css/js/kicul.htm viagra online] [http://www.nrctc.edu/help/css/js/vuzy.htm ambien] [http://www.nrctc.edu/help/css/js/jynil.htm free kyocera ringtones] [http://www.nrctc.edu/help/css/js/wedew.htm cheap tramadol] [http://www.nrctc.edu/help/css/js/sysecoh.htm alltel ringtones] [http://www.nrctc.edu/help/css/js/joci.htm hoodia] [http://www.nrctc.edu/help/css/js/cynih.htm lorazepam online] [http://www.nrctc.edu/help/css/js/loke.htm xanax online] [http://www.nrctc.edu/help/css/js/xoni.htm cingular ringtones] [http://www.nrctc.edu/help/css/js/fupyro.htm free mtv ringtones] [http://www.nrctc.edu/help/css/js/devero.htm lipitor online] [http://www.nrctc.edu/help/css/js/cizewy.htm mono ringtones] [http://www.nrctc.edu/help/css/js/xeboc.htm meridia online] [http://www.nrctc.edu/help/css/js/nuxepi.htm nokia ringtones] [http://www.nrctc.edu/help/css/js/boxev.htm alprazolam online] [http://www.nrctc.edu/help/css/js/lexygi.htm cheap albuterol] [http://www.nrctc.edu/help/css/js/jisok.htm clonazepam] [http://www.nrctc.edu/help/css/js/gejykig.htm free music ringtones] [http://www.nrctc.edu/help/css/js/winyged.htm free wwe ringtones] [http://www.nrctc.edu/help/css/js/juvefop.htm free sony ericsson ringtones] [http://www.nrctc.edu/help/css/js/wuhi.htm cheap levitra] [http://www.nrctc.edu/help/css/js/dyle.htm nexium online] [http://www.nrctc.edu/help/css/js/wydod.htm ericsson ringtones] [http://www.nrctc.edu/help/css/js/cyzunud.htm zyban online] [http://www.nrctc.edu/help/css/js/bexig.htm sprint ringtones] [http://www.nrctc.edu/help/css/js/nohov.htm tracfone ringtones] [http://www.nrctc.edu/help/css/js/giwugi.htm free mp3 ringtones] [http://www.nrctc.edu/help/css/js/wolyb.htm cheap lortab] [http://www.nrctc.edu/help/css/js/pevusyb.htm clomid online] [http://www.nrctc.edu/help/css/js/pipy.htm vigrx online] [http://www.nrctc.edu/help/css/js/bykut.htm verizon ringtones] [http://www.nrctc.edu/help/css/js/tototyx.htm celexa online] [http://www.nrctc.edu/help/css/js/duvipu.htm cheap diazepam] [http://www.nrctc.edu/help/css/js/kujo.htm cialis online] [http://www.nrctc.edu/help/css/js/pijy.htm real ringtones] [http://www.nrctc.edu/help/css/js/jynygi.htm lisinopril] [http://www.nrctc.edu/help/css/js/levo.htm fioricet online] [http://www.nrctc.edu/help/css/js/konon.htm nextel ringtones] [http://www.nrctc.edu/help/css/js/cibos.htm wellbutrin online] [http://www.nrctc.edu/help/css/js/jurewif.htm tenuate] [http://www.nrctc.edu/help/css/js/kixije.htm phentermine online] [http://www.nrctc.edu/help/css/js/jizoxe.htm sildenafil online] [http://www.nrctc.edu/help/css/js/bonuhix.htm cyclobenzaprine online] [http://www.nrctc.edu/help/css/js/wigo.htm polyphonic ringtones] [http://www.nrctc.edu/help/css/js/wobug.htm punk ringtones] [http://www.nrctc.edu/help/css/js/fyno.htm free sony ringtones] [http://www.nrctc.edu/help/css/js/sirynu.htm adipex online] [http://www.nrctc.edu/help/css/js/finitit.htm hgh online] [http://www.nrctc.edu/help/css/js/sobe.htm cheap norco] [http://www.nrctc.edu/help/css/js/bijodi.htm didrex] [http://www.nrctc.edu/help/css/js/byxowis.htm soma online] == 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