Difference between pages "Template:Testwiki" and "Counters"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>StDoodle
m
 
imported>Bale
(CLI command)
 
Line 1: Line 1:
<includeonly><span class="plainlinks">[http://kol.coldfront.net/thekolwiki/index.php/{{fullurl:{{{1}}}}} {{{2|{{{1}}}}}}]</span></includeonly><noinclude>Testing...</noinclude>
+
{{DISPLAYTITLE:counters (CLI)}}
 +
 
 +
This is a CLI command for displaying or modifying KoLmafia's counters. Without any parameters it will display all current counters.
 +
 
 +
The possible parameters are:
 +
* '''clear''': This will remove all current counters.
 +
* '''add''' condition: This will add a counter. If the condition is an item, it will set the necessary quantity to this many more than you currently have. This also has the additional parameters: number [title img]
 +
** '''number''' the is the number of turns until the counter expires
 +
** '''title''' is an optional parameter to name the counter. If no name is given, then the counter will be named "manual"
 +
** '''img''' is an optional image for the counter. You can use any of the images in KoL's \itemimages directory. If no image is chosen, then mafia will use watch.gif for the counter.  
 +
 
 +
Example: to add a fortune cookie counter to expire in 88 turns, use this command:
 +
:<code> counters add 88 cookie fortune.gif</code>
 +
 
 +
 
 +
[[Category:CLI Commands]]

Revision as of 07:23, 22 September 2010


This is a CLI command for displaying or modifying KoLmafia's counters. Without any parameters it will display all current counters.

The possible parameters are:

  • clear: This will remove all current counters.
  • add condition: This will add a counter. If the condition is an item, it will set the necessary quantity to this many more than you currently have. This also has the additional parameters: number [title img]
    • number the is the number of turns until the counter expires
    • title is an optional parameter to name the counter. If no name is given, then the counter will be named "manual"
    • img is an optional image for the counter. You can use any of the images in KoL's \itemimages directory. If no image is chosen, then mafia will use watch.gif for the counter.

Example: to add a fortune cookie counter to expire in 88 turns, use this command:

counters add 88 cookie fortune.gif