Search results

Jump to navigation Jump to search
  • ! ASH Accessor Function / Notes
    964 bytes (121 words) - 00:51, 30 September 2017
  • ! ASH Accessor Function / Notes
    1 KB (150 words) - 00:48, 30 September 2017
  • function1={{Function| function2={{Function|
    1 KB (147 words) - 21:51, 24 May 2017
  • ...use your current [[Choice Adventures|choice adventure preferences]]. This function returns the HTML of the choice result page (not just what is displayed, but <p>A handy use for this function is to finish up choices that were started in the relay browser, or were int
    6 KB (762 words) - 19:59, 1 January 2021
  • function1={{Function| ...eeds to run a choice or combat, using your current KoLmafia settings. This function returns the HTML from the page (not just what is displayed, but all markup)
    1 KB (201 words) - 05:43, 28 October 2019
  • function1={{Function| function2={{Function|
    1 KB (206 words) - 14:04, 24 January 2017
  • function1={{Function|
    872 bytes (121 words) - 02:01, 22 March 2017
  • <p>This function was added in [https://kolmafia.us/threads/17892-add-a-bunch-of-ash-support-
    1 KB (152 words) - 11:17, 23 December 2020
  • function1={{Function| function2={{Function|
    1 KB (209 words) - 18:24, 2 February 2015
  • function1={{Function| function2={{Function|
    1 KB (158 words) - 18:17, 18 June 2020
  • function1={{Function|
    1 KB (158 words) - 22:08, 8 July 2016
  • function1={{Function| ...es match the selector. In the event the selector uses invalid syntax, this function will error with "invalid xpath expression"|
    3 KB (383 words) - 13:43, 30 April 2015
  • function1={{Function|
    380 bytes (46 words) - 20:28, 7 June 2015
  • ...set - Adds all current active effects on the player. Users will find this function extremely useful.
    5 KB (780 words) - 08:47, 20 November 2019
  • function1={{Function| function_description=This function returns a list of all available in-game outfits.|
    957 bytes (128 words) - 01:15, 24 September 2015
  • function1={{Function| function_description=This function returns image file name of outfit tattoo. If the outfit doesn't exist, retu
    899 bytes (121 words) - 01:36, 24 September 2015
  • function1={{Function|
    1 KB (149 words) - 23:12, 17 October 2015
  • | function1= {{Function
    909 bytes (104 words) - 05:52, 18 October 2015
  • function1={{Function|
    865 bytes (116 words) - 07:00, 19 October 2015
  • function1={{Function|
    528 bytes (66 words) - 15:26, 4 October 2016
  • function1={{Function|
    810 bytes (127 words) - 17:21, 1 August 2016
  • function1={{Function| function_description=This function will the total number of free rests available to your character. These rest
    916 bytes (128 words) - 22:15, 26 November 2014
  • function1={{Function| special=When this function is called by any script that is not a relay override, it returns an empty s
    1 KB (162 words) - 22:52, 26 November 2014
  • function1={{Function| special=When this function is called by any script that is not a relay override, it returns an empty s
    1 KB (161 words) - 22:52, 26 November 2014
  • function1={{Function| special=When this function is called by any script that is not a relay override, it returns an empty s
    1 KB (143 words) - 22:53, 26 November 2014
  • function1={{Function|
    4 KB (451 words) - 00:10, 26 November 2014
  • function1={{Function|
    812 bytes (97 words) - 21:10, 11 May 2015
  • function1={{Function| function_description=This function returns an integer indexed list of all currently defined mood names.|
    1 KB (172 words) - 03:35, 14 January 2015
  • function1={{Function| function_description=This function will return true if a specified monster is currently {{kolwiki|Banishing|ba
    1 KB (149 words) - 07:37, 22 November 2014
  • function1={{Function| function_description=This function returns a list of all KoL outfits that the character currently owns and can
    1 KB (153 words) - 01:24, 25 November 2014
  • function1={{Function| function_description=This function returns a list of all currently defined custom outfits. This list begins wi
    993 bytes (143 words) - 01:17, 25 November 2014
  • function1={{Function|
    887 bytes (120 words) - 03:42, 21 July 2021
  • function1={{Function| special=When not logged in, this function returns false.
    1 KB (116 words) - 07:56, 18 November 2014
  • function1={{Function|
    1 KB (229 words) - 08:05, 20 November 2014
  • function1={{Function| function2={{Function|
    1 KB (168 words) - 15:43, 26 January 2015
  • function1={{Function|
    2 KB (214 words) - 01:20, 10 March 2020
  • function1={{Function|
    1 KB (168 words) - 00:50, 12 November 2014
  • function1={{Function|
    1 KB (163 words) - 00:44, 12 November 2014
  • function1={{Function|
    2 KB (214 words) - 06:36, 17 October 2017
  • function1={{Function| special=If no match is found for {{pspan|convert}}, this function returns $bounty[ none ].|
    1 KB (151 words) - 14:39, 26 January 2015
  • function1={{Function|
    824 bytes (98 words) - 05:19, 10 November 2014
  • function1={{Function| function_description=This function returns true if familiar equipment is locked, otherwise it returns false.|
    710 bytes (84 words) - 07:20, 11 November 2014
  • function1={{Function| ...ocking}} is false. If there is no need to change locking status, then this function will do nothing.|
    924 bytes (119 words) - 07:24, 11 November 2014
  • function1={{Function|
    946 bytes (131 words) - 23:53, 24 January 2021
  • function1={{Function|
    998 bytes (130 words) - 08:49, 8 November 2014
  • function1={{Function|
    1 KB (168 words) - 05:18, 10 November 2014
  • function1={{Function|
    703 bytes (97 words) - 09:18, 7 November 2014
  • function1={{Function|
    535 bytes (68 words) - 09:20, 7 November 2014
  • function1={{Function|
    575 bytes (79 words) - 06:43, 8 November 2014
  • function1={{Function|
    542 bytes (74 words) - 06:44, 8 November 2014
  • function1={{Function| function_description=This function returns true if there are any goals that match {{pspan|type}}.|
    937 bytes (120 words) - 15:42, 25 October 2015
  • function1={{Function| function_description=This function returns an integer indexed map of all active adventuring goals that have no
    894 bytes (122 words) - 06:09, 5 November 2014
  • function1={{Function| function_description=This function returns true if you are wearing all parts of the outfit {{Pspan|name}}.|
    1 KB (163 words) - 23:03, 20 November 2014
  • function1={{Function|
    631 bytes (87 words) - 12:12, 5 November 2014
  • function1={{Function| function_description=This function returns true if you are on the "Avatar of Boris" challenge path and his min
    511 bytes (67 words) - 00:34, 6 November 2014
  • function1={{Function| function_description=This function returns true if the Hippy Stone in your campground is currently broken.|
    871 bytes (104 words) - 00:44, 6 November 2014
  • function1={{Function| special=When not logged in, this function returns 0.
    482 bytes (61 words) - 05:14, 6 November 2014
  • function1={{Function| function2={{Function|
    2 KB (366 words) - 08:47, 6 November 2014
  • function1={{Function|
    998 bytes (138 words) - 20:01, 1 June 2020
  • function1={{Function|
    899 bytes (123 words) - 00:18, 5 November 2014
  • function1={{Function| function_description=This function returns the total number of adventures used by the logged-in character sinc
    799 bytes (104 words) - 12:38, 26 December 2014
  • function1={{Function|
    543 bytes (75 words) - 04:20, 4 November 2014
  • function1={{Function|
    694 bytes (87 words) - 06:33, 4 November 2014
  • function1={{Function|
    556 bytes (75 words) - 04:20, 4 November 2014
  • function1={{Function|
    455 bytes (57 words) - 08:05, 20 November 2014
  • function1={{Function|
    550 bytes (75 words) - 04:20, 4 November 2014
  • function1={{Function|
    450 bytes (57 words) - 08:05, 20 November 2014
  • function1={{Function|
    450 bytes (57 words) - 08:05, 20 November 2014
  • function1={{Function| function_description=This function returns a string identifying how an item is crafted and any other requireme
    3 KB (344 words) - 23:51, 3 November 2014
  • function1={{Function|
    428 bytes (53 words) - 08:04, 20 November 2014
  • function1={{Function|
    500 bytes (71 words) - 04:05, 4 November 2014
  • function1={{Function|
    1,007 bytes (137 words) - 22:56, 17 October 2015
  • function1={{Function| function2={{Function|
    1 KB (183 words) - 10:36, 21 August 2019
  • function1={{Function| description=Following example creates a function that notifies you if items in your shop are above a given percent. The curr
    1 KB (187 words) - 22:26, 21 January 2015
  • function1={{Function| cli_equiv=The CLI command "refresh" with the parameter "shop" has the same function.|
    1 KB (189 words) - 22:03, 3 September 2016
  • function1={{Function| more_info=This function will only return the character's class skill or Shadow Noodles. Other stunn
    797 bytes (108 words) - 23:21, 20 May 2015
  • function1={{Function|
    888 bytes (120 words) - 00:16, 4 December 2013
  • function1={{Function| function2={{Function|
    2 KB (325 words) - 05:19, 9 April 2020
  • function1={{Function| function2={{Function|
    2 KB (327 words) - 14:31, 17 January 2015
  • function1={{Function| special=When not logged in, this function returns 0.
    433 bytes (54 words) - 09:45, 6 November 2014
  • function1={{Function| special=When not logged in, this function returns 0.
    425 bytes (56 words) - 22:33, 1 October 2013
  • function1={{Function| special=When not logged in, this function returns 0.
    425 bytes (56 words) - 22:34, 1 October 2013
  • BatBrain is a function library intended to greatly simplify writing a [[Custom_Combat_Script#Consu ...ng a combat script, you may have to deal with one. Fortunately, there are some functions for dealing with spreads:
    18 KB (2,624 words) - 16:54, 31 August 2018
  • function1={{Function| function_description=This function check if item can be discarded, returning true if it can other false. Keep
    1 KB (151 words) - 10:28, 21 November 2014
  • function1={{Function| description=The following example creates a function called "in_shop" which tells you how many of a given item is currently in y
    1 KB (184 words) - 11:03, 24 August 2020
  • function1={{Function|
    1 KB (134 words) - 19:00, 16 August 2012
  • function1={{Function|
    2 KB (205 words) - 14:13, 20 October 2014
  • function1={{Function| function_description=This function returns true if the logged-in character has completed the Deep Fat Friars q
    764 bytes (102 words) - 07:36, 10 October 2011
  • function1={{Function|
    1 KB (131 words) - 15:18, 26 January 2015
  • function1={{Function| function2={{Function|
    946 bytes (131 words) - 23:06, 23 November 2011
  • function1={{Function| function2={{Function|
    3 KB (373 words) - 05:19, 26 January 2015
  • function1={{Function| function2={{Function|
    2 KB (274 words) - 14:20, 17 January 2015
  • ! ASH Accessor Function / Notes ! ASH Accessor Function / Notes
    8 KB (1,069 words) - 19:33, 2 October 2022
  • function1={{Function|
    1 KB (170 words) - 22:44, 9 July 2017
  • function1={{Function|
    1 KB (182 words) - 22:42, 9 July 2017
  • function1={{Function|
    979 bytes (131 words) - 22:24, 21 January 2015
  • function1={{Function|
    930 bytes (123 words) - 08:24, 11 January 2015
  • function1={{Function|
    1 KB (186 words) - 05:42, 18 March 2012
  • function1={{Function|
    945 bytes (117 words) - 03:17, 27 September 2015
  • function1={{Function|
    815 bytes (109 words) - 19:49, 11 July 2017
  • function1={{Function|
    856 bytes (104 words) - 10:08, 20 July 2011
  • function1={{Function| ...m {{pspan|it}} from {{pspan|master}}. If {{pspan|qty}} is less than 1, the function will return true without purchasing anything. Otherwise it returns true if
    1 KB (201 words) - 05:54, 18 March 2012
  • function1={{Function|
    1 KB (155 words) - 06:04, 20 July 2011
  • function1={{Function|
    2 KB (220 words) - 16:54, 9 July 2011
  • function1={{Function| function_description=This function will return the identity of your current familiar. If you have a Doppelshif
    2 KB (217 words) - 03:57, 19 July 2011
  • function1={{Function| function_description=This function returns true if the logged-in character has has access to Little Canadia.|
    695 bytes (88 words) - 08:05, 19 May 2011
  • function1={{Function| function_description=This function returns true if the logged-in character has has access to the Gnomish Gnoma
    730 bytes (89 words) - 10:15, 19 May 2011
  • function1={{Function| function_description=This function returns true if the logged-in character has has access to the inside of Deg
    725 bytes (92 words) - 08:12, 19 May 2011
  • function1={{Function| ...so if you call this function and then unlock a new NPC store, calling this function again will return the new availability state of the item.|
    1 KB (223 words) - 22:04, 31 January 2015
  • function1={{Function| special=This function returns "None" when not logged in.|
    2 KB (207 words) - 00:06, 19 May 2011
  • function1={{Function| special=This function returns "None" when not logged in.|
    913 bytes (131 words) - 19:20, 2 October 2022
  • function1={{Function| ...itions. Auto-adventuring through KoLmafia or the [[adventure|adventure()]] function will stop if your current conditions are met.|
    1 KB (178 words) - 06:41, 23 February 2011
  • function1={{Function| ...=Returns the url that would be visited if this was a {{f|visit_url}}. This function was intended for troubleshooting crafted urls and has no use outside of deb
    2 KB (224 words) - 09:14, 27 April 2011
  • function1={{Function|
    534 bytes (75 words) - 00:15, 27 January 2011
  • function1={{Function|
    2 KB (226 words) - 13:29, 23 January 2014
  • function1={{Function|
    510 bytes (69 words) - 23:55, 26 January 2011
  • function1={{Function| function2={{Function|
    1 KB (145 words) - 20:44, 8 December 2016
  • function1={{Function|
    782 bytes (114 words) - 18:35, 31 January 2011
  • function1={{Function|
    553 bytes (77 words) - 11:36, 2 February 2011
  • function1={{Function| function_description=This function returns an array of the items which compose an outfit. This works for both
    1 KB (152 words) - 05:38, 8 February 2011
  • function1={{Function| function_description=This function allows mafia to send notifications to chat.|
    695 bytes (94 words) - 08:24, 15 February 2011
  • function1={{Function| function_description=This function returns true if the logged-in character has learned the password to the Kno
    845 bytes (109 words) - 06:07, 18 February 2011
  • function1={{Function| function_description=This function returns true if the logged-in character had successfully used the Spooky Ma
    2 KB (271 words) - 03:38, 14 January 2015
  • function1={{Function|
    538 bytes (76 words) - 07:30, 25 January 2011
  • function1={{Function|
    1 KB (162 words) - 09:17, 11 February 2011
  • function1={{Function| ...t match the actual amount of MP reduction (and therefore the value of this function).|
    887 bytes (131 words) - 23:00, 5 January 2011
  • function1={{Function| * Preferences function: pref(text)
    2 KB (328 words) - 14:48, 16 December 2010
  • function1={{Function| * Preferences function: pref(text)
    3 KB (377 words) - 14:53, 16 December 2010
  • function1={{Function| function_description=This function returns the character in {{pspan|source}} which is at position {{pspan|inde
    684 bytes (85 words) - 05:53, 29 November 2010
  • ...eing true (and will automatically be so, if you use the {{fa|test_button}} function). ...e_field}} and {{fa|write_textarea}}) can be passed the name of a validator function that can check (and possibly modify) the field value. Any validation failur
    9 KB (1,478 words) - 15:57, 3 December 2010
  • function1={{Function| function_description=This function will initiate a countdown from {{pspan|secs}} seconds to 0, during which ti
    2 KB (280 words) - 23:05, 21 January 2015
  • function1={{Function| ...he item used to get the dwelling). Note that if you have no dwelling, this function will return $item[big rock].|
    886 bytes (121 words) - 03:34, 14 January 2015
  • ZLib is a function library intended to make life easier for both script authors and script use {{HideLink|excise}}{{Function|
    40 KB (6,317 words) - 06:21, 28 July 2021
  • function1={{Function| special=When not logged in, this function returns 0.
    742 bytes (96 words) - 23:21, 15 November 2010
  • function1={{Function| function2={{Function|
    4 KB (593 words) - 03:46, 5 January 2016
  • function1={{Function|
    678 bytes (78 words) - 03:15, 27 September 2015
  • ...l it without using the return value in any way, KoLmafia will abort if the function fails:
    5 KB (700 words) - 20:37, 3 July 2021
  • function1={{Function|
    820 bytes (115 words) - 17:30, 2 June 2016
  • function1={{Function|
    1 KB (211 words) - 08:56, 27 April 2011
  • function1={{Function|
    1 KB (147 words) - 16:54, 29 July 2010
  • function1={{Function| ...o be promoted for the general public's use. When using a daily build, this function returns the most recent official version.|
    2 KB (230 words) - 15:03, 30 July 2010
  • ...No value can be assigned to '''void''' nor can a value be returned from a function of datatype '''void'''. Be careful when doing math with integers! As with some other strongly-typed languages, numbers are converted to integers at every
    16 KB (2,415 words) - 03:15, 2 March 2023
  • ...l''' modifier will attempt to maximize all elements, even if it means that some of the elements will get no boost at all. Some extra provided keywords are useful in PvP minigames. '''number''' increases
    15 KB (2,277 words) - 18:14, 10 March 2023
  • function1={{Function| ...ly in a Casual ascension. In any other path (including Unrestricted) this function returns false.|
    884 bytes (118 words) - 18:42, 23 June 2022
  • function1={{Function|
    766 bytes (89 words) - 17:59, 23 July 2010
  • function1={{Function|
    1 KB (160 words) - 06:55, 24 July 2010
  • function1={{Function|
    1 KB (152 words) - 16:49, 14 October 2014
  • function1={{Function|
    1 KB (148 words) - 16:46, 14 October 2014
  • function1={{Function| function_description=This function first resets the matcher {{pspan|pattern}}. It then scans the input sequenc
    1 KB (166 words) - 01:03, 4 January 2015
  • function1={{Function| function_description=This function first resets the matcher {{pspan|pattern}}. It then scans the input sequenc
    1 KB (155 words) - 20:34, 5 August 2010
  • function1={{Function| function2={{Function|
    1 KB (149 words) - 05:15, 22 May 2010
  • function1={{Function| function2={{Function|
    1 KB (150 words) - 05:14, 22 May 2010
  • function1={{Function| ...y non-negative integer smaller than or equal to the value returned by this function is guaranteed to be a valid [[group|group()]] parameter for this matcher.|
    783 bytes (111 words) - 17:07, 14 October 2014
  • function1={{Function| function2={{Function|
    957 bytes (131 words) - 05:14, 22 May 2010
  • function1={{Function|
    1 KB (154 words) - 17:12, 14 October 2014
  • function1={{Function|
    649 bytes (90 words) - 17:08, 14 October 2014
  • function1={{Function| function2={{Function|
    1 KB (190 words) - 17:04, 14 October 2014
  • : ''type'' is an optional parameter which must match the return value of the function. If not specified, ''type'' defaults to void. ...H code will result in an error, because the <code>func_inside_bar()</code> function is not visible from within <code>foo()</code>:
    2 KB (228 words) - 06:52, 23 February 2021
  • ...ly every possible pattern of characters you might want to search for. Only some of the generally most common forms of regexes will be described on this pag ...type. Defining a matcher also requires the use of the {{f|create_matcher}} function.
    8 KB (1,281 words) - 21:48, 2 August 2011
  • function1={{Function|
    906 bytes (134 words) - 05:13, 22 May 2010
  • function1={{Function| ...monster is specified and no monster has been fought in this session, this function returns $monster[none]. This is because mafia forgets the value when it log
    587 bytes (78 words) - 22:20, 21 May 2010
  • function1={{Function| ...tion=Replaces the center image of the Cyrpt (it's blank, don't worry) with some information regarding the noncombats of the zones.|
    2 KB (219 words) - 05:11, 22 May 2010
  • function1={{Function|
    1 KB (182 words) - 22:18, 21 May 2010
  • function1={{Function|
    629 bytes (93 words) - 02:45, 5 November 2014
  • function1={{Function|
    789 bytes (110 words) - 18:25, 31 January 2011
  • |description=This function returns a price no more than 18 hours old by checking {{f|mall_price}} if { function checkPrice(shopfor) {
    1 KB (164 words) - 15:06, 31 December 2020
  • function1={{Function| function2={{Function|
    1 KB (208 words) - 03:16, 14 January 2014
  • ...s the same restrictions as {{f|mall_price}}. Unlike {{f|mall_price}}, this function will never hit the server.</p>
    2 KB (239 words) - 14:59, 31 December 2020
  • function1={{Function| * Path function: path(text)
    4 KB (565 words) - 16:01, 5 June 2015
  • function1={{Function| function2={{Function|
    1 KB (187 words) - 21:19, 1 July 2020
  • function1={{Function| function2={{Function|
    1 KB (178 words) - 21:19, 1 July 2020
  • function1={{Function| function2={{Function|
    1 KB (139 words) - 05:25, 22 May 2010
  • function1={{Function|
    761 bytes (98 words) - 05:26, 22 May 2010
  • function1={{Function| ...om the relay request being handled. Unlike the [[form_field|form_field()]] function, this allows iterating over all the fields,
    1 KB (171 words) - 05:26, 22 May 2010
  • function1={{Function| special=If no match is found for {{pspan|convert}}, this function returns $stat[ none ].|
    1 KB (141 words) - 15:43, 26 January 2015
  • function1={{Function| cli_equiv=The CCS entry of "try to steal an item" accomplishes the same function. (You can change your CCS with the command "ccs" on the CLI.)|
    793 bytes (114 words) - 22:24, 21 May 2010
  • function1={{Function| special=Note that this function is case-sensitive, as with direct casting. Anything besides the following l
    1 KB (166 words) - 14:44, 26 January 2015
  • ...variable declared inside of a function will be accessible only inside that function (including inside of control structures), but is considered to not exist by ...fined variable, and then declare a variable with the same name inside of a function (as their scopes overlap).
    10 KB (1,631 words) - 09:22, 2 July 2021
  • function1={{Function|
    997 bytes (132 words) - 21:41, 21 May 2010
  • function1={{Function| description=Removes the border that KoL uses to frame some tables.|
    1 KB (155 words) - 06:37, 19 August 2020
  • function1={{Function|
    1 KB (151 words) - 06:37, 19 August 2020
  • ...eserved for special usage by KoLmafia. They can not be used as variable or function names.
    1 KB (153 words) - 00:54, 1 May 2023
  • function1={{Function| function_description=This function returns true if the logged-in character has completed Doc Galaktik's Quest
    876 bytes (114 words) - 03:34, 14 January 2015
  • function1={{Function| <p>Note that this function does not return any information regarding the mini-moon.|
    968 bytes (126 words) - 21:41, 21 May 2010
  • function1={{Function|
    929 bytes (132 words) - 03:35, 14 January 2015
  • If you find yourself here in search of a function, please note that you will need to look for an alternative.
    403 bytes (66 words) - 11:54, 13 April 2010
  • Errors happen. When they do, it helps to have some idea of what what wrong. Whenever a script runs the [[abort|abort()]] function, this error is generated.
    10 KB (1,421 words) - 11:25, 24 June 2011
  • function1={{Function|
    1 KB (144 words) - 05:08, 22 May 2010
  • function1={{Function|
    1 KB (144 words) - 05:08, 22 May 2010
  • Enables the script writer to invoke a function whose name is known at runtime. Constructor function used to populate a record.
    11 KB (1,663 words) - 08:58, 5 June 2020
  • function1={{Function|
    534 bytes (73 words) - 05:25, 22 May 2010
  • function1={{Function|
    919 bytes (131 words) - 05:26, 22 May 2010
  • function1={{Function| function_description=This function returns the total number of adventures used thus far by the logged-in chara
    2 KB (250 words) - 07:14, 22 November 2015
  • function1={{Function| <p>The main difference between this function and {{f|visit_url}} is that this function will only contact the server once each time the script is run; from then on
    1 KB (212 words) - 22:34, 6 October 2012
  • function1={{Function| ...are not in a sign with access to a special eatery, or not logged in, this function returns $item[none].|
    2 KB (222 words) - 08:45, 11 January 2015
  • function1={{Function| special=This function returns false if no character is logged in.|
    1 KB (159 words) - 03:37, 14 January 2015
  • function1={{Function| ...s not reflect whether or not the items were actually consumed.) Using this function, rather than {{f|eat}}, will suppress the warning dialogs that may otherwis
    2 KB (269 words) - 08:49, 11 January 2015
  • function1={{Function| function2={{Function|
    3 KB (375 words) - 22:01, 8 September 2023
  • * ASH function [[form_fields|form_fields()]], which returns a string[string] map with all Additionally, there are some excellent tools for writing form elements in interface scripts on the [http
    16 KB (2,308 words) - 07:14, 13 March 2021
  • function1={{Function|
    832 bytes (112 words) - 21:48, 21 May 2010
  • function1={{Function| function2={{Function|
    1 KB (184 words) - 05:24, 22 May 2010
  • function1={{Function| function2={{Function|
    1 KB (157 words) - 21:48, 23 October 2016
  • function1={{Function|
    649 bytes (82 words) - 21:48, 21 May 2010
  • Note that although some of these functions have an ASH derivative that may be easier to use, the tw ! Related ASH function / Notes
    16 KB (2,541 words) - 18:34, 10 March 2023
  • function1={{Function| description=The following function sets the MCD to the maximum possible value.|
    1 KB (165 words) - 10:10, 19 May 2011
  • function1={{Function| function2={{Function|
    2 KB (226 words) - 04:14, 21 April 2013
  • function1={{Function| function2={{Function|
    4 KB (503 words) - 15:52, 26 January 2015
  • function1={{Function| function2={{Function|
    1 KB (202 words) - 14:46, 26 January 2015
  • function1={{Function| function2={{Function|
    1 KB (203 words) - 14:45, 26 January 2015
  • function1={{Function| function2={{Function|
    3 KB (481 words) - 00:35, 22 September 2019
  • function1={{Function| function2={{Function|
    1 KB (193 words) - 15:44, 26 January 2015
  • function1={{Function| function2={{Function|
    1 KB (204 words) - 21:02, 24 March 2015
  • function1={{Function| function2={{Function|
    2 KB (247 words) - 02:52, 26 June 2010
  • function1={{Function| function2={{Function|
    1 KB (177 words) - 14:39, 26 January 2015
  • function1={{Function| special=String converted by this function can be returned to their original form with [[url_decode|url_decode()]].|
    1 KB (145 words) - 08:31, 20 November 2014
  • function1={{Function| special=String converted by this function can be returned to their original form with [[url_encode|url_encode()]].|
    1 KB (148 words) - 08:32, 20 November 2014
  • function1={{Function| function2={{Function|
    5 KB (671 words) - 00:41, 21 August 2020
  • function1={{Function| function2={{Function|
    1 KB (159 words) - 05:13, 22 May 2010
  • function1={{Function| function2={{Function|
    3 KB (397 words) - 19:50, 12 August 2015
  • function1={{Function| ...ltiple times in a row; however, they cannot be the first character or this function will return false).|
    982 bytes (147 words) - 05:05, 22 May 2010
  • This function was removed when the make money game was removed from KoL.
    180 bytes (32 words) - 20:00, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    404 bytes (71 words) - 19:55, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    228 bytes (38 words) - 19:55, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    199 bytes (36 words) - 19:57, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    204 bytes (36 words) - 20:01, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    138 bytes (26 words) - 19:55, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    168 bytes (31 words) - 19:56, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    217 bytes (39 words) - 19:56, 24 April 2021
  • mmg was removed from KoL and KoLmafia in 2019. This function is obsolete.
    346 bytes (62 words) - 19:43, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    152 bytes (28 words) - 19:56, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    166 bytes (31 words) - 19:56, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    174 bytes (32 words) - 19:57, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    162 bytes (30 words) - 20:00, 24 April 2021
  • This function was removed when the make money game was removed from KoL.
    362 bytes (67 words) - 19:54, 24 April 2021
  • function1={{Function|
    827 bytes (98 words) - 23:26, 21 January 2015
  • function1={{Function| function2={{Function|
    1 KB (189 words) - 05:22, 22 May 2010
  • function1={{Function| function2={{Function|
    2 KB (282 words) - 06:11, 21 November 2019
  • This one is tricky! The function takes a 'Familiar' type, and will error when you feed it a string. Therefor Another tricky function in that it only takes an "Item". Syntax is:
    2 KB (297 words) - 19:55, 12 July 2010
  • function1={{Function| special=This function returns an empty string when not logged in.|
    528 bytes (72 words) - 21:34, 21 May 2010
  • ...e out slime damage that will be taken. Note that it is defined OUTSIDE any function! f) Time for the main function. I have 3 inputs. How many turns to adventure, when I should use a Chamois(
    7 KB (1,020 words) - 21:23, 23 August 2010
  • ...se all 10 usages per day. Note the stills_available() function. I then buy some basic booze if needed, then use create() to make the appropriate upgrade to ## If we don't have enough, go buy some of the basic booze.
    5 KB (951 words) - 21:22, 23 August 2010
  • f) Finally, note the have_effect() function. It tests to see if your character has a specific buff/debuff. If so, the r
    3 KB (493 words) - 21:22, 23 August 2010
  • ...ing, you can mall-sell certain items, auto-sell some of them, or pulverize some.
    4 KB (676 words) - 21:21, 23 August 2010
  • c) item_amount($item[xxx]) is a function that will tell you how many of an item you currently possess. ...tem[xxx]) is what you use to buy stuff from the mall. You NEED to use this function as it specifically overrides your normal preferences. If you use the 'acqui
    4 KB (699 words) - 21:20, 23 August 2010
  • ...ing everything that comes before {{pspan|start}} in {{pspan|search}}. This function returns the position where {{pspan|find}} first occurs in {{pspan|search}}, <p>This function returns a 0-indexed value, meaning that the first character of {{pspan|sear
    2 KB (308 words) - 12:26, 23 December 2020
  • ...h the string {{pspan|search}}, looking for the string {{pspan|find}}. This function returns the position where {{pspan|find}} last occurs in {{pspan|search}}.< <p>This function returns a 0-indexed value, meaning that the first character of {{pspan|sear
    2 KB (252 words) - 12:34, 23 December 2020
  • function1={{Function| function2={{Function|
    2 KB (240 words) - 05:10, 22 May 2010
  • function1={{Function| ...ch are both case-sensitive (it will not match on "You gain 10 meat"). This function can be used for parsing meat gains and losses from combat and kmails (thoug
    2 KB (291 words) - 08:51, 11 January 2015
  • function1={{Function| ...se-sensitive, so it will not match on "You Acquire 10 broken skulls". This function can be used for parsing item acquisition from combat and kmails (though onl
    3 KB (427 words) - 08:51, 11 January 2015
  • function1={{Function|
    2 KB (233 words) - 22:24, 21 January 2015
  • function1={{Function| p1desc={{pspan|func}} is the name of the function you wish to enable.
    852 bytes (115 words) - 05:32, 22 May 2010
  • function1={{Function| ...ont size, tables, font colours, etc can all be specified. This can produce some interesting effects in scripts. For example, producing pleasing layouts, su
    1 KB (204 words) - 05:30, 22 May 2010
  • function1={{Function| function2={{Function|
    2 KB (274 words) - 14:18, 26 January 2015
  • function1={{Function| function2={{Function|
    3 KB (385 words) - 20:40, 1 December 2019
  • function1={{Function|
    633 bytes (87 words) - 05:07, 22 May 2010
  • function1={{Function|
    1 KB (146 words) - 08:25, 11 January 2015
  • function1={{Function| function2={{Function|
    938 bytes (140 words) - 22:21, 21 January 2015
  • function1={{Function|
    1 KB (189 words) - 10:40, 26 June 2010
  • function1={{Function| function2={{Function|
    1 KB (194 words) - 22:22, 21 January 2015
  • function1={{Function| special=This function uses the last monster encountered, so it will base its calculations on your
    918 bytes (128 words) - 22:26, 21 May 2010
  • function1={{Function| special=This function uses the last monster encountered, so it will base its calculations on your
    890 bytes (124 words) - 22:26, 21 May 2010
  • function1={{Function| function_description=This function attempts to use an item during a combat round, and returns the html respons
    991 bytes (149 words) - 22:24, 21 May 2010
  • function1={{Function| cli_equiv=The CCS entry of "run away" accomplishes the same function. (You can change your CCS with the command "ccs" on the CLI.)|
    793 bytes (114 words) - 22:24, 21 May 2010
  • function1={{Function| function_description=This function attempts to use two items in a combat round (for those with the skill Ambid
    4 KB (495 words) - 22:56, 21 January 2015
  • function1={{Function| cli_equiv=The CCS entry of "attack with weapon" accomplishes the same function. (You can change your CCS with the command "ccs" on the CLI.)|
    795 bytes (113 words) - 22:23, 21 May 2010
  • function1={{Function| function2={{Function|
    3 KB (464 words) - 04:07, 28 June 2020
  • function1={{Function| special=When not logged in, this function returns $location[none].|
    827 bytes (114 words) - 22:19, 21 May 2010
  • function1={{Function| cli_equiv=The CLI command "refresh" with the parameter "status" has the same function.|
    1 KB (142 words) - 18:22, 31 December 2010
  • function1={{Function|
    1 KB (180 words) - 22:19, 21 May 2010
  • function1={{Function|
    1 KB (186 words) - 22:18, 21 May 2010
  • function1={{Function| function2={{Function|
    2 KB (266 words) - 06:26, 8 November 2014
  • function1={{Function| function_description=This function will initiate a countdown from {{pspan|secs}} seconds to 0, during which ti
    1 KB (193 words) - 23:05, 21 January 2015
  • function1={{Function| p1desc={{pspan|func}} is the name of the function you wish to disable.
    3 KB (427 words) - 05:32, 22 May 2010
  • function1={{Function| function2={{Function|
    3 KB (464 words) - 03:10, 13 September 2019
  • function1={{Function| function2={{Function|
    3 KB (456 words) - 14:30, 17 January 2015
  • function1={{Function| function2={{Function|
    4 KB (556 words) - 05:36, 19 September 2019
  • function1={{Function|
    803 bytes (98 words) - 02:33, 14 October 2016
  • function1={{Function|
    841 bytes (107 words) - 02:32, 14 October 2016
  • |description=This function checks whether the string "Hello World!" contains the word "World". |description=This function checks whether a character is in a clan.
    1 KB (171 words) - 12:42, 23 December 2020
  • function1={{Function| ...te a new key in a map (defined outside the function to hopefully eliminate some confusion).|
    815 bytes (111 words) - 03:50, 7 July 2010
  • function1={{Function| function_description=This function allows you to send ingame private messages through chat to any player.|
    1 KB (165 words) - 08:16, 15 February 2011
  • function1={{Function| function2={{Function|
    2 KB (227 words) - 13:55, 28 July 2014
  • function1={{Function|
    935 bytes (134 words) - 17:29, 2 June 2016
  • function1={{Function|
    981 bytes (129 words) - 15:42, 26 January 2015
  • function1={{Function|
    762 bytes (113 words) - 05:30, 22 May 2010
  • function1={{Function|
    901 bytes (127 words) - 22:19, 21 May 2010
  • function1={{Function|
    746 bytes (102 words) - 04:34, 1 March 2011
  • function1={{Function|
    1 KB (161 words) - 22:18, 21 May 2010
  • function1={{Function|
    1 KB (142 words) - 03:33, 14 January 2015
  • function1={{Function| function_description=This function returns true if you have all parts of the outfit {{Pspan|name}} and meet al
    1 KB (203 words) - 23:04, 20 November 2014
  • function1={{Function| function_description=This function attempts to put on the outfit specified as {{pspan|name}}, and returns true
    1 KB (181 words) - 05:20, 8 February 2011
  • function1={{Function| special=Note that while this function does take class weapons and the jewel-eyed wizard hat into account, it does
    674 bytes (99 words) - 22:14, 21 May 2010
  • function1={{Function| ...t match the actual amount of MP reduction (and therefore the value of this function).|
    871 bytes (129 words) - 22:58, 5 January 2011
  • function1={{Function| function2={{Function|
    2 KB (275 words) - 21:20, 1 July 2020
  • function1={{Function| function_description=This is the ceiling function, which returns the smallest integer greater than or equal to the supplied {
    1 KB (144 words) - 05:04, 22 May 2010
  • function1={{Function| function2={{Function|
    1 KB (173 words) - 22:39, 24 May 2017
  • ! ASH Accessor Function / Notes
    3 KB (400 words) - 20:08, 26 December 2023
  • ! ASH Accessor Function / Notes
    1 KB (141 words) - 00:41, 30 September 2017
  • function1={{Function|
    940 bytes (117 words) - 01:28, 13 April 2014
  • function1={{Function| ...the specified familiar {{pspan|buddy}} is your current familiar after the function's completion (so it will return true if you try to switch to your current f
    2 KB (283 words) - 23:04, 21 January 2015
  • function1={{Function| function_description=This function returns true if the logged-in character has unlocked the Black Market. Othe
    823 bytes (110 words) - 21:40, 21 May 2010
  • function1={{Function| function_description=This function returns true if the logged-in character has unlocked their guild store. Oth
    1 KB (183 words) - 09:40, 31 October 2010
  • function1={{Function| ...cked the hippy store. Otherwise, it returns false. Note: technically, this function checks for the hippy store + island access; it never checks to see if you h
    2 KB (209 words) - 03:39, 14 January 2015
  • function1={{Function| function_description=This function returns true if the logged-in character has completed the White Citadel Que
    855 bytes (114 words) - 21:41, 21 May 2010
  • function1={{Function| description=A universal consume function.|
    2 KB (351 words) - 20:07, 27 October 2017
  • function1={{Function| ...{{pspan|check_me}} on your character, false if you cannot. Note that this function doesn't check for whether or not you actually have the item; just whether y
    1 KB (233 words) - 19:43, 25 August 2012
  • function1={{Function| ...kingly labeled as "3-handed" in KoL are actually 2-handed in reality, this function will return 3.|
    661 bytes (90 words) - 10:18, 12 September 2010
  • function1={{Function| ...ot have any stat requirements. If {{pspan|check_me}} is not a weapon, this function returns $stat[none].|
    621 bytes (88 words) - 02:17, 23 August 2010
  • function1={{Function| ...ct transformations of familiars due to wardrobe or doppleshifting, so this function is incapable of detecting such transformation if it is called during combat
    1 KB (215 words) - 03:37, 14 January 2015
  • function1={{Function| cli_equiv=The CLI commands "equip" and others function similarly, if the parameter "list" or no parameters are given.|
    1 KB (154 words) - 22:10, 21 May 2010
  • function1={{Function| ...for the final result), only the last stage of requirements is listed. This function will parse items that can be created through multi-use of items as well as
    2 KB (227 words) - 21:44, 5 August 2010
  • function1={{Function| function_description=This function checks to see if the item {{pspan|check_me}} can be sent as a gift, returni
    1 KB (174 words) - 10:40, 10 November 2014
  • function1={{Function| function_description=This function checks to see if the item {{pspan|check_me}} can be put in a display case,
    1 KB (195 words) - 18:20, 28 June 2010
  • function1={{Function|
    1 KB (160 words) - 22:34, 7 October 2013
  • function1={{Function|
    773 bytes (114 words) - 22:03, 21 May 2010
  • function1={{Function| function2={{Function|
    1 KB (152 words) - 00:09, 5 November 2014
  • function1={{Function| function2={{Function|
    1 KB (174 words) - 22:02, 21 May 2010
  • function1={{Function|
    778 bytes (116 words) - 22:03, 21 May 2010
  • function1={{Function|
    1 KB (160 words) - 17:45, 26 June 2010
  • function1={{Function|
    1 KB (222 words) - 21:50, 21 May 2010
  • function1={{Function| ...f {{pspan|get}} is not a hermit item, this function will return true. This function will fail to return any value and abort completely if unable to buy the req
    2 KB (232 words) - 03:38, 14 January 2015
  • function1={{Function| ...with a non-usable item, a message saying so will print to the CLI and the function will return true.|
    1 KB (235 words) - 07:26, 17 November 2015
  • function1={{Function| cli_equiv=The CLI commands "pull" and "hagnk" function similarly.|
    2 KB (239 words) - 20:56, 21 March 2013
  • function1={{Function|
    794 bytes (118 words) - 22:03, 21 May 2010
  • function1={{Function| * Caution is required when using more than one batchable function in a single batch, since they won't be executed in the same order you wrote
    4 KB (649 words) - 07:47, 14 March 2021
  • function1={{Function|
    544 bytes (72 words) - 08:54, 27 April 2011
  • function1={{Function|
    1 KB (144 words) - 22:10, 21 May 2010
  • function1={{Function| function2={{Function|
    3 KB (377 words) - 10:28, 31 August 2020
  • function1={{Function|
    1,014 bytes (134 words) - 14:21, 8 December 2021
  • function1={{Function| function_description=This function will visit the council and print the text there to the CLI. It is useful in
    859 bytes (116 words) - 22:18, 21 May 2010
  • function1={{Function| function_description=This function returns a map of every monster in a given location. Useful for iterating ov
    1 KB (176 words) - 22:21, 21 May 2010
  • ...itions. Auto-adventuring through KoLmafia or the [[adventure|adventure()]] function will stop if your current conditions are met.</p> <p>Note that this function adds items in "+ mode" rather than the standard "total mode" done via the A
    2 KB (302 words) - 13:49, 23 December 2020
  • function1={{Function| function_description=This function will read a line from the active [[Custom Combat Script|CCS]] for a given r
    2 KB (226 words) - 10:00, 6 December 2016
  • function1={{Function| p3desc={{Pspan|filterFunc}} is a macro or the name of a combat filter function defined elsewhere in your script, with the same behavior as in the 3-parama
    2 KB (356 words) - 06:45, 7 July 2021
  • The main() function in the ASH script being consulted must accept three parameters:
    11 KB (1,702 words) - 08:04, 15 March 2021
  • function1={{Function|
    547 bytes (72 words) - 09:24, 11 February 2011
  • function1={{Function| function_description=This function finds all (non-overlapping) matches of the regular expression {{pspan|group
    4 KB (513 words) - 17:14, 14 October 2014
  • function1={{Function|
    824 bytes (109 words) - 21:51, 21 May 2010
  • function1={{Function| p1desc={{pspan|target}} is the minimum HP desired after the function is run.|
    2 KB (324 words) - 17:23, 17 December 2011
  • function1={{Function| p1desc={{pspan|target}} is the minimum MP desired after the function is run.|
    2 KB (358 words) - 21:40, 17 December 2011
  • function1={{Function| ...have_effect}}. If the effect is an intrinsic that you currently have, this function returns 2147483547 (which is 100 less than a signed integer's upper limit).
    1 KB (225 words) - 04:01, 7 May 2013
  • function1={{Function|
    2 KB (258 words) - 00:34, 23 June 2020
  • function1={{Function| description=The following prints a friendly reminder to grab some lucre if you don't have Olfaction.|
    943 bytes (129 words) - 03:37, 7 July 2010
  • function1={{Function|
    561 bytes (78 words) - 21:47, 21 May 2010
  • function1={{Function|
    1 KB (198 words) - 01:11, 4 December 2016
  • function1={{Function| description=The following function will use your shop when acquiring an item however it will not purchase anyt
    2 KB (212 words) - 22:25, 21 January 2015
  • function1={{Function| function_description=This function will return true if you are under the Bad Moon sign. If you are under any o
    804 bytes (114 words) - 10:17, 19 May 2011
  • function1={{Function| function2={{Function|
    4 KB (578 words) - 07:12, 3 July 2021
  • <p>This function was added in [https://kolmafia.us/threads/20796-add-runtime-library-functio
    545 bytes (72 words) - 14:31, 13 July 2021
  • function1={{Function| ...n average return per monster for a given location. It calls the preceeding function.|
    1 KB (192 words) - 21:36, 21 May 2010
  • function1={{Function|
    1 KB (146 words) - 21:36, 21 May 2010
  • function1={{Function| function2={{Function|
    5 KB (686 words) - 05:56, 22 November 2019
  • function1={{Function| <p>Note that the function will return true for items that can be bought in sign stores, even if you c
    828 bytes (123 words) - 21:49, 21 May 2010
  • function1={{Function|
    801 bytes (106 words) - 16:20, 7 July 2011
  • function1={{Function|
    743 bytes (97 words) - 21:44, 21 May 2010
  • function1={{Function|
    782 bytes (98 words) - 21:45, 21 May 2010
  • function1={{Function| <li> Most values will be 1 to represent the item exists; some can be as high as 9, such as pretty bouquets and fences.</li>
    1 KB (181 words) - 04:45, 22 July 2020
  • function1={{Function|
    454 bytes (60 words) - 21:45, 21 May 2010
  • function1={{Function| description=This function attempts to create a Divine, or gives a warning if still uses aren't availa
    1 KB (145 words) - 04:43, 13 April 2011
  • function1={{Function| // Just to save some space later on.
    1 KB (151 words) - 21:45, 21 May 2010
  • function1={{Function| function2={{Function|
    1 KB (173 words) - 08:56, 24 March 2023
  • function1={{Function|
    1,019 bytes (141 words) - 21:46, 21 May 2010
  • function1={{Function| function2={{Function|
    3 KB (380 words) - 05:34, 16 February 2021
  • ! ASH Accessor Function / Notes
    826 bytes (110 words) - 00:38, 30 September 2017
  • function1={{Function|
    907 bytes (110 words) - 21:46, 3 June 2020
  • function1={{Function|
    1 KB (174 words) - 21:36, 21 May 2010
  • function1={{Function| function_description=This is a raw crafting function that will attempt to craft raw materials without considering the outcome of
    2 KB (367 words) - 22:08, 21 May 2010
  • function1={{Function| function_description=Retrieves some variable-length internal data that isn't readily readable via [[file_to_map
    4 KB (511 words) - 17:04, 7 April 2011
  • function1={{Function| special=When not logged in the function returns 0.0
    924 bytes (116 words) - 22:45, 12 June 2019
  • function1={{Function| special=When not logged in the function returns 0.0
    1 KB (160 words) - 21:36, 21 May 2010
  • function1={{Function|
    1 KB (181 words) - 09:02, 26 June 2010
  • function1={{Function|
    2 KB (250 words) - 22:14, 21 May 2010
  • ! ASH Accessor Function / Notes
    1 KB (176 words) - 00:40, 30 September 2017
  • function1={{Function| ...ber, from a minimum of 0 to a maximum of {{pspan|range}}-1. Note that this function aborts with an error if you attempt to supply 1 for {{pspan|range}} (not th
    965 bytes (137 words) - 01:35, 3 July 2010
  • This function returns true if the character is out of Hardcore or Ronin, false otherwise. Essentially the top three overloaded functions call the bottom function, telling it NOT to create the item.
    4 KB (549 words) - 09:49, 22 May 2010
  • function1={{Function| function2={{Function|
    3 KB (490 words) - 16:49, 12 April 2024
  • function1={{Function|
    4 KB (541 words) - 12:59, 10 May 2020
  • function1={{Function|
    744 bytes (100 words) - 21:40, 21 May 2010
  • function1={{Function| function2={{Function|
    2 KB (239 words) - 15:43, 26 January 2015
  • ! ASH Accessor Function / Notes
    2 KB (262 words) - 00:49, 30 September 2017
  • There are two forms of this function. In a combat consult script, this returns a buffer, but otherwise it return function1={{Function|
    3 KB (405 words) - 01:34, 26 March 2015
  • function1={{Function|
    808 bytes (109 words) - 00:14, 4 December 2013
  • Some command names can be followed by a question mark (shown as [?] ), in which ...me can be used in the obvious way, however this may sometimes fail because some items have numbers as part of their names. KoL's fuzzy matching will someti
    28 KB (3,853 words) - 20:56, 12 August 2019
  • |more_info=Note that this function returns an empty string if the page does not exist or if the request times ...ome people claim that it is better to [[append|append]] the result of this function to a buffer instead of saving it as a string when dealing with an especiall
    4 KB (574 words) - 11:56, 20 December 2020
  • function1={{Function| function_description=This is the floor function, which returns the largest integer less than or equal to the supplied {{psp
    881 bytes (119 words) - 05:04, 22 May 2010
  • function1={{Function| function2={{Function|
    3 KB (567 words) - 05:44, 10 March 2021
  • function1={{Function| function2={{Function|
    3 KB (465 words) - 05:51, 21 December 2020
  • function1={{Function| function_description=This function checks to see if the item {{pspan|check_me}} can be traded via the Mall, re
    874 bytes (120 words) - 21:55, 20 August 2010
  • ...ement, if specified. Note that the value's datatype must match that of the function itself (void functions can only use return by itself).
    10 KB (1,450 words) - 13:11, 6 March 2021
  • ...ny time you can declare a variable: as a top level (global) variable, as a function parameter, or as a local variable in any scope. ...a from a map any time you can provide a data value: in an expression, as a function parameter, on the right side of an assignment statement, from a "return" st
    21 KB (3,322 words) - 17:33, 27 February 2021
  • ...ll execute it as though it was typed in through the normal interface. This function will return <code>true</code> if the gCLI command executed properly, and <c ...where no ASH function exists to handle a task (e.g. creating moods). This function provides an escape hatch for such tasks by using gCLI commands from within
    4 KB (519 words) - 14:41, 23 December 2020
  • ...evel command; attempting to import another script inside a closure (e.g. a function or a loop) will result in an error. ...licitly called by the importing script. To do so, the script calls it as a function with the name <code>main@filename()</code>.
    3 KB (448 words) - 03:14, 27 November 2014
  • function1={{Function| function2={{Function|
    3 KB (385 words) - 11:12, 23 October 2020
  • function1={{Function| function2={{Function|
    4 KB (571 words) - 21:19, 1 July 2020
  • function1={{Function| special=When no character is logged in, this function returns the Character ID of the last logged-in character or 0 if no charact
    724 bytes (99 words) - 21:31, 21 May 2010
  • function1={{Function| description=This example function will return the total number of knob goblin firecrackers in your inventory,
    1 KB (158 words) - 21:21, 24 November 2019
  • function1={{Function| ...assing $stat[submuscle], $stat[submysticality], or $stat[submoxie] to this function will always return 0.|
    1 KB (142 words) - 21:34, 21 May 2010
  • function1={{Function| description=The following function attempts to set your MCD to the maximum.|
    1 KB (159 words) - 10:11, 19 May 2011
  • function1={{Function| function2={{Function|
    2 KB (262 words) - 05:46, 31 October 2010
  • function1={{Function| function2={{Function|
    2 KB (327 words) - 23:20, 20 September 2020
  • function1={{Function|
    803 bytes (103 words) - 22:02, 4 April 2016
  • function1={{Function|
    1 KB (149 words) - 21:15, 10 June 2010
  • function1={{Function| ...an item, or an item that cannot be autosold, will still return true as the function has done as much as it could.|
    1 KB (178 words) - 22:07, 21 May 2010
  • function1={{Function| This function and it's CLI equivalent "acquire" will not purchase items from the mall tha
    2 KB (270 words) - 22:03, 27 December 2022
  • |description=This function is often used for basic error handling.
    1 KB (163 words) - 13:34, 23 December 2020
  • ...listed; this list is intended to be kept current, but it is possible that some functions added since the above revision may be missing. (Please feel free The CLI command "[[ashref]]" shows every implemented ash function for your mafia version. A guide to add new functions via a script can be fo
    24 KB (3,546 words) - 04:46, 29 April 2023
  • function1={{Function| ...the logged-in character's particular stat as an int.</p><p>Note that this function also accepts $stat[submuscle], $stat[submysticality], and $stat[submoxie] a
    1 KB (202 words) - 21:34, 21 May 2010
  • ...er_confirm|user_confirm( string )]] (which returns a boolean), but not the function [[to_url|to_url( location )]] (which returns a string).
    779 bytes (118 words) - 22:31, 10 November 2010
  • function1={{Function| special=When not logged in, this function returns 15.
    1 KB (159 words) - 20:02, 16 September 2010
  • function1={{Function| special=When not logged in, this function returns 0.
    705 bytes (89 words) - 21:40, 21 May 2010
  • function1={{Function| description=The function will calculate the average damage you will take from each monster in a give
    2 KB (252 words) - 06:23, 27 November 2015
  • function1={{Function|
    494 bytes (63 words) - 21:35, 21 May 2010
  • function1={{Function| description=The function will calculate the average damage you will take from a given monster, if yo
    1 KB (189 words) - 08:48, 11 January 2015
  • function1={{Function| special=This function returns 0 when not logged in.
    1 KB (170 words) - 06:57, 27 December 2017
  • function1={{Function| description=This example attempts to eat some food giving moxie substats if today is a moxie day.|
    854 bytes (119 words) - 21:37, 21 May 2010
  • function1={{Function| description=The following function checks to see if tomorrow will be a stat day benefiting your primary stat.|
    898 bytes (121 words) - 21:37, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns $stat[muscle].
    1 KB (161 words) - 06:57, 27 December 2017
  • function1={{Function| description=This example function ensures that the MCD is set to 5 before attacking the Bonerdagon.|
    944 bytes (117 words) - 21:37, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns 0.
    960 bytes (125 words) - 21:33, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns 0.
    692 bytes (95 words) - 21:33, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns 0.
    664 bytes (89 words) - 21:33, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns 0.
    667 bytes (90 words) - 21:33, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns false.
    797 bytes (108 words) - 03:39, 14 January 2015
  • function1={{Function| special=When not logged in, this function returns false.
    831 bytes (110 words) - 03:40, 14 January 2015
  • function1={{Function| special=When not logged in, this function returns false.
    814 bytes (111 words) - 03:39, 14 January 2015
  • function1={{Function| special=When not logged in, this function returns $stat[moxie] (Needs spading).
    1 KB (148 words) - 19:58, 16 September 2010
  • function1={{Function|
    699 bytes (85 words) - 08:51, 8 November 2014
  • ! ASH Accessor Function / Notes
    2 KB (300 words) - 00:42, 30 September 2017
  • function1={{Function| ...r Oxygenarian path. If the character is subject to those restrictions this function returns false.|
    840 bytes (116 words) - 21:38, 21 May 2010
  • function1={{Function| ...r Oxygenarian path. If the character is subject to those restrictions this function returns false.|
    894 bytes (120 words) - 07:08, 5 April 2020
  • function1={{Function| ...ubject to Hardcore restrictions. If not subject to such restrictions this function returns false.|
    903 bytes (114 words) - 21:39, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns 14.
    1 KB (134 words) - 21:40, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns 0.
    686 bytes (85 words) - 21:40, 21 May 2010
  • function1={{Function| description=Using this function to spend all of your adventures farming the Castle:|
    1 KB (150 words) - 21:32, 21 May 2010
  • function1={{Function| function_description=This function returns true if the logged-in character is subject to neither Hardcore nor
    1 KB (158 words) - 21:38, 21 May 2010
  • function1={{Function| function_description=This function returns the total number of adventures used thus far by the logged-in chara
    776 bytes (99 words) - 07:09, 4 November 2014
  • ...ction. No check is made to verify that the chopped-off portion of the old function name actually matches the type of its parameter.
    2 KB (438 words) - 00:14, 8 June 2020
  • ! ASH Accessor Function / Notes
    5 KB (784 words) - 04:45, 14 August 2020
  • function1={{Function| special=When not logged in, this function returns $[[class]][none].
    749 bytes (95 words) - 21:32, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns 1.
    757 bytes (102 words) - 21:32, 21 May 2010
  • ! ASH Accessor Function / Notes
    2 KB (235 words) - 21:40, 3 June 2020
  • function1={{Function| special=When not logged in, this function returns an empty string.
    1 KB (137 words) - 21:31, 21 May 2010
  • function1={{Function| special=When not logged in, this function returns 0.
    1 KB (186 words) - 21:44, 21 May 2010
  • {{Flink|void|disable|string|desc=Disables the specified function.}} {{Flink|void|enable|string|desc=Enables the specified function.}}
    5 KB (807 words) - 14:55, 23 December 2020
  • ...ts the desired location a specified number of times, using a combat filter function defined elsewhere in your script.}}
    5 KB (783 words) - 00:02, 9 January 2023
  • ...equip requirement stat for the specified item. If it is not a weapon, this function returns $stat[none].}} {{Flink|string [int]|get_outfits|desc=This function returns a list of all KoL outfits that the character currently owns and ca
    3 KB (413 words) - 21:37, 31 July 2020
  • ...; font-size: 0.875em; font-weight: bold; padding: 0; margin: 0 0 0 0.4em;">FUNCTION CATEGORIES</span><br /> * [[Ash Functions|Master Function List]]
    5 KB (577 words) - 18:04, 24 April 2021
  • ! ASH Accessor Function / Notes
    905 bytes (116 words) - 00:47, 30 September 2017
  • ! ASH Accessor Function / Notes
    2 KB (299 words) - 06:31, 14 March 2019
  • ! ASH Accessor Function / Notes
    950 bytes (131 words) - 00:34, 30 September 2017
  • function1={{Function|
    1 KB (157 words) - 07:12, 27 December 2017
  • function1={{Function|
    1 KB (146 words) - 01:11, 7 November 2018
  • function1={{Function|
    563 bytes (79 words) - 22:44, 29 November 2019
  • function1={{Function|
    651 bytes (100 words) - 22:44, 29 November 2019
  • function1={{Function|
    533 bytes (68 words) - 17:02, 11 March 2020
  • function1={{Function|
    419 bytes (57 words) - 17:05, 11 March 2020
  • function1={{Function|
    749 bytes (90 words) - 23:09, 11 April 2020
  • function1={{Function| special=This function returns "0" when not logged in.|
    677 bytes (95 words) - 19:14, 2 October 2022
  • function1={{Function|
    1 KB (202 words) - 19:22, 2 October 2022
  • function1={{Function|
    1 KB (189 words) - 19:23, 2 October 2022
  • function1={{Function| function2={{Function|
    740 bytes (100 words) - 10:08, 20 August 2020
  • function1={{Function|
    501 bytes (72 words) - 11:03, 24 August 2020
  • function1={{Function| function2={{Function|
    2 KB (312 words) - 23:19, 20 September 2020
  • function1={{Function| function2={{Function|
    1 KB (188 words) - 16:26, 23 September 2020
  • function1={{Function|
    785 bytes (109 words) - 12:04, 19 October 2020
  • function1={{Function|
    791 bytes (108 words) - 12:05, 19 October 2020
  • function1={{Function|
    531 bytes (72 words) - 12:07, 19 October 2020
  • ...e> module. To use these functions, you must use the <code>require()</code> function to import them: The <code>require()</code> function is usually called once at the top of the script.
    13 KB (1,704 words) - 08:48, 13 December 2022
  • ...439-you-can-create-a-bottle-of-sea-wine-by-using-a-bunch-of-sea-grapes-add-some-a.24054/ r19439].</p>
    974 bytes (126 words) - 05:33, 21 December 2020
  • ...tion always retrieves the up-to-date internal list of known monsters. This function is needed because <code>$monsters[]</code> contains a list of monsters that
    1 KB (135 words) - 11:54, 23 December 2020
  • ...439-you-can-create-a-bottle-of-sea-wine-by-using-a-bunch-of-sea-grapes-add-some-a.24054/ r19439].
    1 KB (141 words) - 05:33, 21 December 2020
  • <p>This function was added in [https://kolmafia.us/threads/file_to_string-or-file_to_map-str
    1 KB (174 words) - 06:38, 24 April 2023
  • ...hecks if the current KoLmafia theme is one of the "dark mode" themes. This function was added in [https://kolmafia.us/threads/20566-new-command-is_dark_mode-fo
    715 bytes (91 words) - 05:13, 21 December 2020
  • |description=This function was added in [https://sourceforge.net/p/kolmafia/code/17937 r17937] and [ht
    1 KB (171 words) - 07:31, 22 December 2020
  • <p>This function was added in [https://kolmafia.us/threads/17892-add-a-bunch-of-ash-support-
    2 KB (189 words) - 10:25, 23 December 2020
  • <p>This function was added in [https://kolmafia.us/threads/17892-add-a-bunch-of-ash-support-
    993 bytes (113 words) - 10:44, 23 December 2020
  • <p>This function was added in [https://kolmafia.us/threads/17892-add-a-bunch-of-ash-support-
    1 KB (122 words) - 10:47, 23 December 2020
  • <p>This function was added in [https://kolmafia.us/threads/17892-add-a-bunch-of-ash-support-
    1 KB (150 words) - 10:53, 23 December 2020
  • |description=This function was added in [https://kolmafia.us/threads/17911-add-ash-convenience-functio |description=The following function call will return <code>true</code>:
    952 bytes (111 words) - 12:12, 23 December 2020
  • |description=This function was added in [https://kolmafia.us/threads/17911-add-ash-convenience-functio |description=The following function call will return <code>true</code>:
    945 bytes (111 words) - 12:42, 11 January 2021
  • |description=<p>This function behaves like {{f|cli_execute}}, except that it captures the text printed to
    1 KB (156 words) - 14:52, 23 December 2020
  • <p>This function was added in [https://kolmafia.us/threads/20796-add-runtime-library-functio
    552 bytes (72 words) - 14:33, 13 July 2021
  • ! ASH Accessor Function / Notes
    1 KB (172 words) - 17:47, 2 October 2022
  • function1={{Function| function2={{Function|
    1 KB (162 words) - 18:12, 2 October 2022
  • function1={{Function| function2={{Function|
    3 KB (448 words) - 04:07, 25 April 2023
  • function1={{Function|
    622 bytes (83 words) - 00:06, 9 January 2023
  • function1={{Function|
    492 bytes (65 words) - 00:06, 9 January 2023
  • function1={{Function|
    527 bytes (68 words) - 00:07, 9 January 2023
  • function1={{Function|
    787 bytes (104 words) - 05:49, 31 January 2023
  • |description=This function was added in [https://sourceforge.net/p/kolmafia/code/19543 r19543] and exp
    3 KB (280 words) - 10:08, 23 April 2023
  • * Create a file called "AshRef Function List.txt" in the KoLmafia folder. * Copy paste all the functions found between the two debugs into the "AshRef Function List.txt" text file.
    10 KB (1,356 words) - 04:44, 29 April 2023