Item Filtering: Difference between revisions
→Filter Syntax
BetweenWalls (talk | contribs) (→Paladin: s8 beta) |
BetweenWalls (talk | contribs) |
||
Line 38:
The next simplest rule is one that displays all items with their default appearances. The output keyword '''''%NAME%''''' refers to an item's default appearance, and varies depending on which item is being shown. All items are displayed by default - the game essentially adds this rule to the bottom of the filter before beginning to process the filter's rules.
<code>ItemDisplay[]: %NAME%</code> <span style="color:gray;">''displays all items with their default
<code>ItemDisplay[]: %NAME%{%NAME%}</code> <span style="color:gray;">''displays all items with their default names and descriptions''</span>
=== Conditions ===
Line 128 ⟶ 130:
<code>ItemDisplay[hdm]: Charsi's Favorite Hammer</code> <span style="color:gray;">''Charsi's Favorite Hammer''</span>
Text and keywords can be used together to add extra information, change parts of the name to be different colors, and more. See [[Item_Filtering#Output_Keywords | all keywords]] below.
Line 134 ⟶ 136:
The price of an item (displayed above the name when a merchant is selling it) can be recolored by using a color keyword after the rest of the output.
As with elsewhere, the double slash ('''//''') functions as an in-file way to write comments that will be ignored by the computer.▼
<code>ItemDisplay[SHOP]: %NAME%%WHITE%</code> <span style="color:gray;">''changes the price color for shop items to white</span>
▲As with elsewhere, the double slash ('''//''') functions as an in-file way to write comments that will be ignored by the computer. Everything afterward will be ignored.
<code>ItemDisplay[NMAG (aqv OR cqv)]: // hides regular arrows/bolts</code>
<code>ItemDisplay[tsc]: //%NAME% // Scroll of Town Portal</code> <span style="color:gray;">''this rule hides TP scrolls, but can be changed to display them instead by deleting the first '''//'''''</span>▼
When frequently enabling or disabling parts of a filter, putting '''//''' in front of those parts instead of deleting them can result in faster editing.
<code>//ItemDisplay[MAG cm2]: // hides magic large charms</code> <span style="color:gray;">''this "rule" is ignored, but can be quickly re-enabled by deleting the first '''//'''''</span>▼
▲<code>ItemDisplay[tsc]: //%NAME%
▲<code>//ItemDisplay[MAG
|