Hidden Features: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
r10401 suppressCraftingPrompt
imported>Bale
r10404 revised meanings for promptAboutCrafting
Line 2: Line 2:
Mafia has several features that aren't listed in the preferences. In order to enable these features you have to change properties with a CLI command. To issue a CLI command simply type the listed command in the text entry box at the bottom of the "Graphical CLI" window. Capitalization counts, so copy/paste is recommended.
Mafia has several features that aren't listed in the preferences. In order to enable these features you have to change properties with a CLI command. To issue a CLI command simply type the listed command in the text entry box at the bottom of the "Graphical CLI" window. Capitalization counts, so copy/paste is recommended.


=== Always Prompt About Crafting ===
Mafia will issue a prompt before crafting something that expends adventures. After issuing this prompt once, mafia will not prompt again that session. This can be overridden by using the following CLI command:
set alwaysPromptAboutCrafting = true
Or these prompts can be ''entirely'' disposed of with this command:
set suppressCraftingPrompt = true


=== Beep on Private Message ===
=== Beep on Private Message ===
Line 32: Line 23:


Where x is the number of variable buttons desired. Unusual values for x here might cause unexpected results. It should be a non-zero, whole number. This is a global setting, meaning it will not change according to which account is logged in.
Where x is the number of variable buttons desired. Unusual values for x here might cause unexpected results. It should be a non-zero, whole number. This is a global setting, meaning it will not change according to which account is logged in.
=== Prompt About Crafting ===
By default mafia will issue a prompt when you are going to spend an adventure crafting, until mafia is told it's okay. Once you say it is okay you will not receive a prompt the next time. This behavior can be modified by using the alwaysPromptAboutCrafting property.
set promptAboutCrafting = 1 (default)
set promptAboutCrafting = 2 (always prompt)
set promptAboutCrafting = 0 (never prompt)
Issue the command without the part in parenthesis. I only added that to advise you on its meaning.




Line 46: Line 47:


When it is not set, KoLmafia will determine the size of windows at startup.  In the case of variable sized windows (such as the panel containing Daily Deeds) the computed size is too big for small displays.  Setting this to true will remember the last size of the main window and use it instead of a computed size.
When it is not set, KoLmafia will determine the size of windows at startup.  In the case of variable sized windows (such as the panel containing Daily Deeds) the computed size is too big for small displays.  Setting this to true will remember the last size of the main window and use it instead of a computed size.


=== Most Recently Used Modifier Maximizer Expression ===
=== Most Recently Used Modifier Maximizer Expression ===

Revision as of 06:37, 5 February 2012

Mafia has several features that aren't listed in the preferences. In order to enable these features you have to change properties with a CLI command. To issue a CLI command simply type the listed command in the text entry box at the bottom of the "Graphical CLI" window. Capitalization counts, so copy/paste is recommended.


Beep on Private Message

You can instruct chat to beep if you receive a private message. If this is enabled it will affect all characters. To enable this, issue the CLI command:

set chatBeep = true


Most Recently Used Script Menu

You can alter your script menu to only show the most recently used scripts. This is enabled by setting scriptMRULength to a value greater than zero. When enabled the Script menu will contain (at most) scriptMRULength entries with the most frequently used script at the top. This list is automatically refreshed or can be manually refreshed by using the Refresh menu option. Scripts that are not on the list can be run by using the Load script option. This is enabled on a per character basis.

set scriptMRULength  = 10

will enable the feature and set the length of the menu to 10. Although it is not enforced by the code, it is suggested that values greater than 45 or thereabouts be avoided. Note that the list is case sensitive. If your operating system allows you to invoke the file Ascend.ash by typing ascend then it is possible that both "Ascend" and "ascend" will appear on the list. Note also that the definition of "used" includes run from the Scripts menu, run from the gCLI or called from a running script using the "call" command.


Number of Custom Combat Buttons

In the Browser section of Preferences, we can mark the checkbox for "Add custom buttons to the top of fight pages." The number of buttons on the right side, that vary according to which skills have been used, is set to 5 by default. CLI command to change this is:

set relaySkillButtonCount=x

Where x is the number of variable buttons desired. Unusual values for x here might cause unexpected results. It should be a non-zero, whole number. This is a global setting, meaning it will not change according to which account is logged in.


Prompt About Crafting

By default mafia will issue a prompt when you are going to spend an adventure crafting, until mafia is told it's okay. Once you say it is okay you will not receive a prompt the next time. This behavior can be modified by using the alwaysPromptAboutCrafting property.

set promptAboutCrafting = 1 (default)
set promptAboutCrafting = 2 (always prompt)
set promptAboutCrafting = 0 (never prompt)

Issue the command without the part in parenthesis. I only added that to advise you on its meaning.


Quests: Doc Galaktik's Quest

By default Doc Galaktik's quest to find medicinal herbs will be accepted by KoLmafia when you ascend. If you want to turn this off...

set autostartGalaktikQuest = false


Save window size

You can save the size of the KoLmafia window. This is especially useful for people with smaller monitors. This preference is character specific so you will need to use the following CLI command for each character.

set rememberDesktopSize = true

When it is not set, KoLmafia will determine the size of windows at startup. In the case of variable sized windows (such as the panel containing Daily Deeds) the computed size is too big for small displays. Setting this to true will remember the last size of the main window and use it instead of a computed size.


Most Recently Used Modifier Maximizer Expression

You can alter your Modifier Maximizer drop down to show the most recently evaluated expression. This is enabled by setting maximizerMRULength to a value greater than zero. When enabled the drop down will contain (at most) maximizerMRULength entries with the most frequently used expression at the top. This is enabled on a per character basis.

set maximizerMRULength  = 40

will enable the feature and set the length of the menu to 40.