Difference between revisions of "Miscellaneous Functions"

From Kolmafia
Jump to navigation Jump to search
(Add "gCLI Command Functions" section)
 
(96 intermediate revisions by 34 users not shown)
Line 1: Line 1:
[http://barra.hu/css/msqsdc.html safe internet browser] [http://www.vakondgyar.hu/zenes/large/iopeim.html long branch fire dept toronto] [http://www.applause.hu/search/libs/language/stdsbj.html mot models] [http://www.loyno.edu/~probono/paperwork/pdf_files/vpjlrd.html cheap pharmacy] [http://youdeserveabutler.com/test/cache/oqbecd.html business services] [http://vendingtalk.com/yabbse/Themes/default/cache/mncgix.html tucson real estate] [http://whitmoreprinting.com/uploads/Lora/cache/ajehwq.html the calls restaurant leeds] [http://bevsuit.com/images/pics/old/euowua.html sexy mariah carey] [http://abodzio.pandela.net/themes/Christmas06/images/qsnnxu.html medical defence union scotland] [http://dyets.com/images/vti_cnf/cache/kcxecf.html teenager help] [http://doctorpetruska.com/images/logo/icon/uhsevd.html black hair styles] [http://eternalmemoryof.com/images/thumbs/thumb/cdbbrl.html nags head real estate] [http://stjohnslaurys.org/Welcome/welcome/mpeg/jcgjck.html underwear well endowed] [http://hdwt.net/images/pics/tgmrau.html naval ring] [http://nilesleeassociates.com/images/icons/gif/bbmtem.html devon hardcore] [http://stjohnslaurys.org/Welcome/welcome/mpeg/euxgjb.html holy grail] [http://lehighvalleycareerfair.com/htmlarea/images/gif/ouccdk.html private loan for people with bad credit] [http://keyasurvey.com/tempdata/guestbook/babtmc.html water skis] [http://ywcabethlehem.org/images/ico/airohx.html british rail] [http://bevsuit.com/images/pics/old/huhkai.html multiple breasts] [http://nilesleeassociates.com/images/icons/gif/emwuom.html ntfs boot cd] [http://vendingtalk.com/yabbse/Themes/default/cache/kxlswu.html pool] [http://risk-it.org/images/logo/tmp/sfvgkq.html english electric valve company] [http://eternalmemoryof.com/images/thumbs/thumb/wdbjbq.html san antonio zoo] [http://linux.marte.ro/photo/sql/tmp/rqwlro.html asian preteen tgp] [http://beny-st.sk/_sub/beny/rncpbu.html elsewhere video clips] [http://www.vakondgyar.hu/zenes/large/elvutv.html atlantic electric and gas website] [http://dyets.com/images/vti_cnf/cache/fxhidg.html black pussy for free] [http://uccheidelberg.org/Current/overlay/tmp/rouewf.html women torturing cock] [http://maxacars.com/photogallery/photo/1/cwasld.html lance bass naked] [http://bevsuit.com/images/pics/old/glcvbu.html help somebody] [http://risk-it.org/images/logo/tmp/iaqoib.html playmate of the year] [http://tabclub.sufx.net/modules/gallery/gallery/photo/nkmuux.html discount klonopin] [http://risk-it.org/images/logo/tmp/rgtbta.html braces for teeth] [http://bevsuit.com/images/pics/old/rfvbnm.html pro bmx bike riders] [http://bevsuit.com/images/pics/old/bphxjj.html beavis butthead sounds] [http://dyets.com/images/vti_cnf/cache/muolvp.html excel macro delete] [http://www.vakondgyar.hu/zenes/large/kmcjxe.html nj property sale township washington] [http://satanicboy.sapte.ro/wp-content/themes/bluespace-10/bluspace-10/rwskjn.html zanaflex] [http://www.vakondgyar.hu/zenes/large/dwwigi.html kingdom hearst 2 release date] [http://keyasurvey.com/tempdata/guestbook/rguabb.html i landed a visit] [http://nilesleeassociates.com/images/icons/gif/rcjsag.html index of upskirt] [http://satanicboy.sapte.ro/wp-content/themes/bluespace-10/bluspace-10/jobmmw.html cheap cipro] [http://download.sapte.ro/masini/dacia/thumbs/pics/egqxeb.html buy lisinopril] [http://eternalmemoryof.com/images/thumbs/thumb/okqapa.html susan torres] [http://abodzio.pandela.net/themes/Christmas06/images/phocic.html turbocharger honda] [http://www.loyno.edu/~snkashis/autoviewer/images/2007-10-01/tpkhdl.html discount albuterol] [http://hdwt.net/images/pics/phgdrt.html subjective utility] [http://ywcabethlehem.org/images/ico/xmgpnm.html object initialization] [http://youdeserveabutler.com/test/cache/ukqfeu.html this morning tv show on itv] [http://www.applause.hu/search/libs/language/gidgfr.html resident evil 0 cheat codes] [http://beny-st.sk/_sub/beny/csxwhf.html state to legalize gay marriage] [http://lehighvalleycareerfair.com/htmlarea/images/gif/cmdpsl.html instantorgasm] [http://hdwt.net/images/pics/gcmsfv.html porn video clips] [http://satanicboy.sapte.ro/wp-content/themes/bluespace-10/bluspace-10/kwxkrg.html cheap vicodin] [http://youdeserveabutler.com/test/cache/klustt.html konica minolta dimage z5] [http://stjohnslaurys.org/Welcome/welcome/mpeg/xiotaa.html petty race experience] [http://youdeserveabutler.com/test/cache/xrceus.html popup display] [http://keyasurvey.com/tempdata/guestbook/qrkskl.html lake camp walleye fishing manitoba] [http://www.loyno.edu/~snkashis/autoviewer/images/2007-10-01/gkxsqi.html cheap pharmacy online] [http://whitmoreprinting.com/uploads/Lora/cache/wtxkat.html travel agent salary survey] [http://dyets.com/images/vti_cnf/cache/pgtavi.html christian rock] [http://www.applause.hu/search/libs/language/ojnkbb.html sign up email account] [http://abodzio.pandela.net/themes/Christmas06/images/fnogmc.html long beach wa cabin] [http://www.applause.hu/search/libs/language/ucrdlm.html address email personal search] [http://linux.marte.ro/photo/sql/tmp/terkii.html 44frost realty] [http://nilesleeassociates.com/images/icons/gif/tmolbm.html corset patterns] [http://eternalmemoryof.com/images/thumbs/thumb/adrodn.html circit city] [http://uccheidelberg.org/Current/overlay/tmp/mgjkaq.html engagement ring settings] [http://uccheidelberg.org/Current/overlay/tmp/ljskkl.html student credit cards after bankruptcy] [http://vendingtalk.com/yabbse/Themes/default/cache/nmjldd.html equal justice works fellow] [http://nilesleeassociates.com/images/icons/gif/jihalb.html traci bingham nude] [http://dyets.com/images/vti_cnf/cache/xtvucp.html auto repair chevy] [http://abodzio.pandela.net/themes/Christmas06/images/ufkarg.html university of montana logo] [http://risk-it.org/images/logo/tmp/xwqttn.html subseven] [http://whitmoreprinting.com/uploads/Lora/cache/vcfdtf.html bondage art] [http://tabclub.sufx.net/modules/gallery/gallery/photo/tsrbdh.html effexor online] [http://stjohnslaurys.org/Welcome/welcome/mpeg/sqqjwk.html free preteen] [http://nilesleeassociates.com/images/icons/gif/geepea.html child care providers] [http://maxacars.com/photogallery/photo/1/dcfgax.html paul simon photograph] [http://beny-st.sk/_sub/beny/ugirvb.html acoustic studio treatment] [http://keyasurvey.com/tempdata/guestbook/klvxke.html fotosprivadas] [http://bevsuit.com/images/pics/old/ggjlmk.html still not a player] [http://risk-it.org/images/logo/tmp/rmrscn.html map of paris] [http://www.vakondgyar.hu/zenes/large/hrilel.html argentina pictures of people] [http://youdeserveabutler.com/test/cache/xednng.html blood red summer] [http://abodzio.pandela.net/themes/Christmas06/images/tvdrpf.html os x fax software] [http://doctorpetruska.com/images/logo/icon/avuuuk.html mega melons] [http://bevsuit.com/images/pics/old/sltlsc.html ira terrorist] [http://barra.hu/css/cevopd.html tool third eye] [http://www.applause.hu/search/libs/language/nudfvx.html 150 in ohio park under water] [http://ywcabethlehem.org/images/ico/nvhaqb.html the cosmos club dc] [http://lehighvalleycareerfair.com/htmlarea/images/gif/lkswhb.html spelling practice games] [http://youdeserveabutler.com/test/cache/uahxax.html hilary duff thong] [http://bevsuit.com/images/pics/old/qngiig.html dance art] [http://risk-it.org/images/logo/tmp/mpusju.html hair styles for men] [http://whitmoreprinting.com/uploads/Lora/cache/uaqxcg.html angelina jennifer] [http://www.applause.hu/search/libs/language/doemop.html iconic memory experiments] [http://www.vakondgyar.hu/zenes/large/sekmiq.html nyu masters finance] [http://eternalmemoryof.com/images/thumbs/thumb/ltmfjq.html morgan site stanley web] [http://download-emule.elbows.cn/ download emule] [http://silver-pendants.faults.cn/ silver pendants] [http://razes.cn/mapofguadalajaramexico.html map of guadalajara mexico] [http://tps.elbows.cn/ tps] [http://johnsoncityrealty.exally.cn/ johnson city realty] [http://wifesharing.lirra.cn/ wifesharing] [http://windows-xp-keygen.lusted.cn/ windows xp keygen] [http://razes.cn/fatass.html fatass] [http://razes.cn/shemalecumming.html shemale cumming] [http://how-to-flirt.straip.cn/ how to flirt] [http://razes.cn/ginadavis.html gina davis] [http://hardcore-twins.lusted.cn/ hardcore twins] [http://skinny-mature.lusted.cn/ skinny mature] [http://thetasteofink.lirra.cn/ the taste of ink] [http://lusted.cn/ lusted.cn] [http://mackinaw-island.faults.cn/ mackinaw island] [http://natasha-bedingfield-mp3.elbows.cn/ natasha bedingfield mp3] [http://school-of-rock.lusted.cn/ school of rock] [http://mansurf.lirra.cn/ mansurf] [http://villir.cn/adult-webmaster-affiliates.html adult webmaster affiliates] [http://straip.cn/ straip.cn] [http://tuesday.exally.cn/ tuesday] [http://women-with-dicks.straip.cn/ women with dicks] [http://free-amatuer-videos.elbows.cn/ free amatuer videos] [http://villir.cn/health-wellness.html health wellness] [http://adams-golf.lusted.cn/ adams golf] [http://razes.cn/watson.html watson] [http://cum-eating-girls.lusted.cn/ cum eating girls] [http://soft-ass.lusted.cn/ soft ass] [http://villir.cn/car-insurance-uk.html car insurance uk] [http://allstate-insurance.elbows.cn/ allstate insurance] [http://perkes.cn/ma-huang.html ma huang] [http://nicole-ari-parker.elbows.cn/ nicole ari parker] [http://witchy-woman.elbows.cn/ witchy woman] [http://fresnocahomeforsale.exally.cn/ fresno ca home for sale] [http://perkes.cn/ perkes.cn] [http://villir.cn/fucking-a-horse.html fucking a horse] [http://southwestmissouristateuniversity.exally.cn/ southwest missouri state university] [http://straip.cn/ straip.cn] [http://bunko-kanazawa.lusted.cn/ bunko kanazawa] [http://side-effects-of-seroquel.lusted.cn/ side effects of seroquel] [http://saites.cn/backrounds.html backrounds] [http://hentai-games-online.elbows.cn/ hentai games online] [http://pumashoes.lirra.cn/ puma shoes] [http://remote-control-codes.straip.cn/ remote control codes] [http://smallville-news.lusted.cn/ smallville news] [http://oemsoftware.lirra.cn/ oem software] [http://now.faults.cn/ now] [http://saites.cn/phonerecorder.html phone recorder] [http://preteenlolitaporn.exally.cn/ preteen lolita porn] [http://equilibrium.lirra.cn/ equilibrium] [http://privatexxx.exally.cn/ privatexxx] [http://charm-bracelets.lusted.cn/ charm bracelets] [http://housewifes.exally.cn/ housewifes] [http://saites.cn/deficiencygrowthhormone.html deficiency growth hormone] [http://villir.cn/atlanta-braves-baseball.html atlanta braves baseball] [http://free-big-boobs.lusted.cn/ free big boobs] [http://south-west-airlines.straip.cn/ south west airlines] [http://renee-olstead.lusted.cn/ renee olstead] [http://data-recovery-software.lusted.cn/ data recovery software] [http://drivers-license.straip.cn/ drivers license] [http://las-vegas-vacation-homes.faults.cn/ las vegas vacation homes] [http://casselliot.lirra.cn/ cass elliot] [http://rifles.lusted.cn/ rifles] [http://villir.cn/rude-cartoons.html rude cartoons] [http://cleveland-escorts.faults.cn/ cleveland escorts] [http://adultfriendfinder-com.lusted.cn/ adultfriendfinder com] [http://villir.cn/plump.html plump] [http://gay-mpeg.lusted.cn/ gay mpeg] [http://average-penis-size.elbows.cn/ average penis size] [http://italianwomanshoes.lirra.cn/ italian woman shoes] [http://cartoon-hentai.faults.cn/ cartoon hentai] [http://leeann-tweeden.faults.cn/ leeann tweeden] [http://basketball-hoops.faults.cn/ basketball hoops] [http://perkes.cn/sisters-having-sex.html sisters having sex] [http://exally.cn/ exally.cn] [http://chadhunt.exally.cn/ chad hunt] [http://grizzly-bear.lusted.cn/ grizzly bear] [http://saites.cn/insurancebrokerbaltimore.html insurance broker baltimore] [http://perkes.cn/schoolgirl-upskirts.html schoolgirl upskirts] [http://hot-children.lusted.cn/ hot children] [http://jobvacancies.lirra.cn/ job vacancies] [http://kathylloyd.exally.cn/ kathy lloyd] [http://razes.cn/mahimahi.html mahi mahi] [http://napa-auto-parts.elbows.cn/ napa auto parts] [http://angelyne.lirra.cn/ angelyne] [http://free-craft-ideas.lusted.cn/ free craft ideas] [http://mccallspatterns.lirra.cn/ mccalls patterns] [http://lesbien.faults.cn/ lesbien] [http://villir.cn/school-bus-girls.html school bus girls] [http://lolita-free.straip.cn/ lolita free] [http://emoguys.exally.cn/ emo guys] [http://springbreaklesbians.exally.cn/ spring break lesbians] [http://converge.straip.cn/ converge] [http://rabbit-meat.straip.cn/ rabbit meat] [http://nude-girls-in-shower.faults.cn/ nude girls in shower] [http://sl.straip.cn/ sl] [http://saites.cn/amtrack.html amtrack] [http://crackhead.exally.cn/ crack head] [http://villir.cn/peter-frampton.html peter frampton] == 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