Maximize

From Kolmafia
Revision as of 05:30, 28 January 2011 by imported>Bale (This is now an ash command as of r8954)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

boolean maximize(string expression ,string simulate )

boolean maximize(string expression ,int price1 ,int price2 ,string simulate )

  • expression is the list of modifiers to maximize for.
  • price1 is a mystery.
  • price2 is a mystery.
  • simulate will not equip gear if false.

This command will run the modifier maximizer and return true if successful. If a minimum is applied to a modifier and that minimum could not be accomplished (such as 4 clownosity) then it will return false.

This function will set _spec so that it can be checked with numeric_modifier(). That is the main purpose of using a true value for string simulate  .

CLI Equivalent

The CLI command command "maximize" will automatically change equipment as if the final parameter was false.

More Information

See the page on the Modifier Maximizer for more information on how to use this, especially to create a meaningful expression.


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • What is the meaning of price1 and price2?