Difference between pages "Daily Deeds" and "Help:To Do List"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Darzil
 
imported>Bale
 
Line 1: Line 1:
Basic daily deed customization allows you to show/hide elements on the daily deeds panel, and to reorder those elements as desired.  More advanced customization features include adding "custom deeds" that can perform a variety of tasks: everything from performing a CLI command, to using an item or casting a skill, to executing ASH scripts.
+
{{TOCright}}
  
== Customizing Daily Deeds ==
+
== "To Do" List ==
  
Daily Deeds customization essentially involves editing a user preference in order to specify the elements shown on the Daily Deeds panel.  Fortunately, a GUI exists to aid you in performing the most common tasks.  This is reached by going to Preferences > Daily Deeds tab.
+
This is a list of stuff that is missing from the wiki or else needs major work. Please help!
  
To edit which deeds are shown, look at the bottom of this panel.  Each element represents a line on your Daily Deeds panel.  Many of these are individual buttons; "Breakfast", for example, is a button that simply executes breakfast.  Some deeds are more complicated, such as the "Demon Summoning" deed that adds a combobox filled with your currently known summons.  Still others simply represent informational lines of text displayed by default at the bottom.  You can rearrange these at will by dragging and dropping.  Remove unwanted deeds by pressing the delete key; re-add them by dragging and dropping the appropriate element from the "Built-in Deeds" box up above.
 
  
To start creating custom deeds, click the "add custom" button.  A GUI will pop up which will help you build custom command, item, skill, and/or text deeds.  Combo deeds for now (and likely forever) will need to be hand-coded if you want to use them.
+
If you need tips for editing the wiki, find that here: [[Help:Editing]].
  
==== Example ====
+
*CLI Commands are usually only added to the [[CLI Reference]]. Only very complicated commands require their own page.
The following image is created by this declaration
 
  
<pre style="white-space:pre-wrap;">
+
*ASH commands need to be listed on their category page as well as on the [[Ash Functions]] list.
> get dailyDeedsOptions
+
**It is not necessary to always create a code sample, although it is preferred.
 +
**If you don't add a code sample, please remember to add '''needscode=yes|''' to the page.
  
$CUSTOM|Text|Demonstration of customized Daily Deeds,$CUSTOM|Text|//\\//\\//\\ by Roippi //\\//\\//\\,$CUSTOM|Text| ,$CUSTOM|Text|This is a built-in deed:,VIP Pool,$CUSTOM|Text|So is this:,April Shower,$CUSTOM|Text| ,$CUSTOM|Text|This is a custom "Command" button that tracks a preference (hermitHax0red),$CUSTOM|Text|If/when hermitHax0red is true,| this deed is greyed out.,$CUSTOM|Text|When clicked|,| it gets clovers.,$CUSTOM|Command|Is the hermit hax0red?|hermitHax0red|hermit * clover,$CUSTOM|Text| ,$CUSTOM|Text|This is a custom line of text that also tracks some preferences:,$CUSTOM|Text|I've ascended |knownAscensions| times. My last adventure was in zone: |lastAdventure,$CUSTOM|Text| ,$CUSTOM|Text|This is a "Skill" type button. It has a few uses,| but usually tracks a multi-use skill with an arbitrary limit:,$CUSTOM|Skill|get me some BRICKOs|libramSummons|summon brickos|7,$CUSTOM|Text| ,$CUSTOM|Text|Lastly,| here is a multiple Command deed.,$CUSTOM|Text|You define the displayText,| an int preference,| the button command,| and the preference disabling threshold.,$CUSTOM|Text|It is up to you to make the preference track whatever your button is doing.,$CUSTOM|Command|Run my custom ASH script up to 5 times|_farmingLoops|call farm.ash|5,$CUSTOM|Text| ,$CUSTOM|Text|You can define your own preferences and call ash scripts with your button commands.,$CUSTOM|Text|I haven't demonstrated all of the different types and overloaded variants here,| but this should be a good starting place.,$CUSTOM|Text|Have fun.
 
</pre>
 
  
: [[File:Ddprefs3.JPG]]
+
== Missing Stuff ==
 +
9700: Add the "neweffect" CLI command. When provided with an effect description ID, it will add the effect to EffectDatabase, which allows to create an override with the new effect.
  
 +
r9868: New functions.
 +
phylum to_phylum( string )
 +
phylum monster_phylum()
 +
phylum monster_phylum( monster )
  
== Custom Deeds ==
+
9982: Add the following ASH functions to remove items from your mall store
 +
boolean take_shop( item it )
 +
boolean take_shop( item it, boolean takeAll )
 +
where takeAll defaults to true in the one-parameter version. If takeAll is false, only one of the specified item will be removed.
  
All deeds are specified by one comma-delimited preference "dailyDeedsOptions". Order matters. Built-in deeds are simply called by referring to their built-in name; these are viewable by pulling up the Daily Deeds tab and looking in the "Built-in Deeds" list.
+
9982: Add the shop CLI command, to add or remove items from your mall store.
  
Custom deeds provide the user with a way of adding buttons or text to their daily deeds panel that is not natively provided for. All deeds start with the keyword '''$CUSTOM''' followed by a pipe symbol, '''|'''. As you are constructing a custom deed, you separate the different arguments with pipes.
+
== Needs Major Work ==
  
All deed types except for Text and Simple require a preference to track. If you want to add a button that is always enabled, use a dummy preference (you do not have to create one, just specify one that doesn't exist, such as "false").
+
[[Proxy Records]] is only slightly better than a placeholder.
  
There are currently 6 different types of custom deeds. Remember that all of these "acceptable forms" are prefaced by $CUSTOM|.
 
  
==== Simple ====
+
== Needs Code Samples ==
As the name implies, this type of deed is the simplest to use.  Designed for users who do not want to muck around with preferences.
 
  
acceptable forms:
+
There is a list of all pages that require code samples: [[:Category:Needs_Code_Sample|Category:Needs Code Sample]]
  
Simple|displayText
+
Information on how to create a code sample: [[Template:CodeSample]]
 
 
Simple|displayText|command
 
 
 
Simple|displayText|command|maxUses
 
 
 
Simple|displayText|command|maxUses|toolTip|compMessage
 
 
 
*displayText - the text that will be displayed on the button
 
*command - the command to execute. If not specified, will default to displayText.
 
*maxUses - an arbitrary integer. Specifies a threshold to disable the button at. A counter in the form of <clicks>/<maxUses> will be displayed to the right of the button.
 
*toolTip - text that will display when you mouse over the button.
 
*compMessage - message that displays when you have used the button (maxUses times if specified), rather than the button vanishing.
 
 
 
After clicking a simple deed, the button will be immediately disabled unless maxUses>1 is specified.
 
 
 
==== Command ====
 
execute a command with a button press
 
 
 
acceptable forms:
 
 
 
Command|displayText|preference
 
 
 
Command|displayText|preference|command
 
 
 
Command|displayText|preference|command|maxUses
 
 
 
Command|displayText|preference|command|maxUses|toolTip|CompMessage
 
 
 
*preference - the preference to track for enabling/disabling the button.  Default threshold for disabling the button is 1 if maxUses is not specified.
 
 
 
Further information regarding custom preferences and button enabling/disabling can be found [http://kolmafia.us/showthread.php?7347-Daily-Deeds-support&p=58295&viewfull=1#post58295 here].
 
 
 
==== Item ====
 
this button will use fuzzy matching to find the name of the item specified. Will execute "use <itemName>" when clicked. Will only be visible when you possess one or more of the item.
 
 
 
acceptable forms:
 
 
 
Item|displayText|preference
 
 
 
Item|displayText|preference|itemName
 
 
 
Item|displayText|preference|itemName|maxUses
 
 
 
Item|displayText|preference|itemName|maxUses|toolTip|compMessage
 
 
 
*itemName - the name of the item that will be used. If not specified, will default to displayText.
 
 
 
==== Skill ====
 
cast a skill that is tracked by a boolean or int preference. Will execute "cast <skillName>" when clicked.  Will not be visible if you don't know the skill.
 
 
 
acceptable forms:
 
 
 
Skill|displayText|preference
 
 
 
Skill|displayText|preference|skillName
 
 
 
Skill|displayText|preference|skillName|maxCasts
 
 
 
Skill|displayText|preference|skillName|maxCasts|toolTip|compMessage
 
 
 
*skillName- the name of the skill that will be cast. If not specified, will default to displayText. Must be specified if maxCasts are specified.
 
 
 
==== Combo ====
 
 
 
$CUSTOM|Combo|displayText|preference1|<item block>
 
 
 
$CUSTOM|Combo|displayText|preference1|maxUses|<item block>
 
 
 
 
 
where the <item block> consists of an arbitrary number of:
 
 
 
$ITEM|displayText|preferenceN|command|
 
 
 
This is a cleaner way of collapsing a number of related command deeds into one combobox element.  Note that there is no GUI to help you construct this, you must manually add it to your dailyDeedsOptions preference.
 
 
 
*Preference1 - The preference to track for enabling/disabling the '''entire combobox'''.  Default threshold is 1 if maxUses is not specified.
 
*Preference2 - The individual preference to disable each individual item in the combobox.  Note that there is no way to supply maxUses for each individual element; 1 (or true) is always the max.
 
 
 
A common use of this deed is to create a custom Greatest American Pants combobox:
 
 
 
<pre style="white-space:pre-wrap;">
 
$CUSTOM|Combo|GAPants|_gapBuffs|5|$ITEM|free spells|false|equip pants American; gap skill|$ITEM|elem & tough|false|equip pants American; gap structure|$ITEM|+25%ItemD|false|equip pants American; gap vision|$ITEM|+100%Mox|false|equip pants American; gap speed|$ITEM|5xCrit|false|equip pants American; gap accuracy</pre>
 
 
 
[[File:GAPdeed.png]]
 
 
 
==== Text ====
 
 
 
acceptable forms:
 
Text|pretty much anything.
 
 
 
You can supply as many arguments as you want to a Text deed. Any argument that uniquely matches a preference will be replaced by that preference's value. If you want to use a comma in your text, immediately follow the comma with a pipe character so it will not be parsed as the end of the Text deed.
 
 
 
[[Category:Tech Support]]
 

Revision as of 00:58, 8 November 2011

"To Do" List

This is a list of stuff that is missing from the wiki or else needs major work. Please help!


If you need tips for editing the wiki, find that here: Help:Editing.

  • CLI Commands are usually only added to the CLI Reference. Only very complicated commands require their own page.
  • ASH commands need to be listed on their category page as well as on the Ash Functions list.
    • It is not necessary to always create a code sample, although it is preferred.
    • If you don't add a code sample, please remember to add needscode=yes| to the page.


Missing Stuff

9700: Add the "neweffect" CLI command. When provided with an effect description ID, it will add the effect to EffectDatabase, which allows to create an override with the new effect.

r9868: New functions.

phylum to_phylum( string )
phylum monster_phylum()
phylum monster_phylum( monster )

9982: Add the following ASH functions to remove items from your mall store

boolean take_shop( item it )
boolean take_shop( item it, boolean takeAll )
where takeAll defaults to true in the one-parameter version. If takeAll is false, only one of the specified item will be removed.

9982: Add the shop CLI command, to add or remove items from your mall store.

Needs Major Work

Proxy Records is only slightly better than a placeholder.


Needs Code Samples

There is a list of all pages that require code samples: Category:Needs Code Sample

Information on how to create a code sample: Template:CodeSample