Item Filtering: Difference between revisions

Undo revision 17920 by Equanimity (talk)
(→‎Paladin: s8 beta)
(Undo revision 17920 by Equanimity (talk))
Tag: Undo
 
(7 intermediate revisions by 3 users not shown)
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 appearancesnames''</span>
 
<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% // 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 '''//''' in front of %NAME%''</span>
 
<code>//ItemDisplay[MAG cm2(aqv OR cqv)]: // hides magic largequivers charmsif enabled</code> <span style="color:gray;">''this "rule" is ignored, but can be quickly re-enabled by deleting the first '''//''' from in front of ItemDisplay''</span>
 
 
Line 188 ⟶ 198:
 
 
The '''''%NL%''''' keyword adds a new line above the previous line and can only be used withinin item descriptions for any item, or within item names offor the following: identified items whose rarity is magic or higher, runewords, and items within shops.
 
<code>ItemDisplay[]: %NAME%{Affix Level: %ALVL%%NL%Item Level: %ILVL%}</code> <span style="color:gray;">''Shows item/affix levels on separate lines in description (same effect as '''Show Item Level''' setting)''</span>
 
 
The number of displayed characters for an item's name is capped at 56. The internal limit for an item's name includes additional characters for color keywords (3 characters each) and %NL% (2 characters each) and goes up to 125.
 
For example, a name that uses all 56 text characters and also uses 23 color keywords (69 internal characters) would have an internal size of 125 (56+69) and work as expected, but attempting to add another color will break things.
 
The cap for item descriptions is much higher at 500 total characters and, unlike for item names, is the same for both displayed characters and internal characters.
 
<!-- End of "Filter Syntax" category -->
Line 436 ⟶ 453:
| %CONTINUE% || the item is compared against additional rules instead of being displayed by the current rule<br>the current rule's output is stored in %NAME%
|-
| %NL% || specifies a new line (lines are constructed bottom-up)<br>only works within braces (descriptions) or for '''ID !NMAG''', '''RW''', or '''SHOP''' items (identified items which are magic or higher rarity, runewords, or items within shops)
|-
| {} || anything within the braces applies to the item's description rather than the item's name/title
Line 1,282 ⟶ 1,299:
| style="font-size:90%;" | STAT496 || ''map_mon_droparmor''
|-
| style="font-size:90%;" | STAT497 || ''map_mon_dropcharmsmap_mon_dropcrafting''
|-
| style="font-size:90%;" | STAT498 || ''map_glob_extra_boss''
Line 1,293 ⟶ 1,310:
|-
| style="font-size:90%;" | STAT503 || ''map_glob_dropcorrupted''
|-
| style="font-size:90%;" | STAT186 || ''unused186map_glob_boss_dropskillers''
|-
| style="font-size:90%;" | STAT187 || ''unused187map_glob_boss_dropcorruptedunique''
|-
| style="font-size:90%;" | STAT185STAT505 || ''unused185map_glob_boss_dropfacet''
|-
| style="font-size:90%;" | STAT189STAT506 || ''unused189map_mon_dropjewels''
|-
|}
Line 1,427 ⟶ 1,452:
|-
| style="font-size:90%;" | STAT184 || ''missing_hp''
|-
| style="font-size:90%;" | STAT190STAT185 || ''unused190uber_difficulty''
|-
| style="font-size:90%;" | STAT191STAT189 || ''unused191openwounds_stack''
|-
| style="font-size:90%;" | STAT213STAT190 || ''unused212curse_slots''
|-
| style="font-size:90%;" | STAT191 || ''item_skillonequip''
|-
| style="font-size:90%;" | STAT213 || ''item_mindamage_energy''
|-
| style="font-size:90%;" | STAT215 || ''item_armorpercent_perlevel''
Line 1,640 ⟶ 1,675:
|-
| STAT88 || ''item_doubleherbduration''
|-
| style="font-size:90%;" | STAT185 || ''unused185''
|-
| style="font-size:90%;" | STAT186 || ''unused186''
|-
| style="font-size:90%;" | STAT187 || ''unused187''
|-
| style="font-size:90%;" | STAT189 || ''unused189''
|-
| style="font-size:90%;" | STAT190 || ''unused190''
|-
| style="font-size:90%;" | STAT191 || ''unused191''
|-
| style="font-size:90%;" | STAT192 || ''unused192''
Line 1,676 ⟶ 1,699:
|-
| style="font-size:90%;" | STAT212 || ''unused211''
|-
| style="font-size:90%;" | STAT213 || ''unused212''
|-
| style="font-size:90%;" | STAT268 || ''item_armor_bytime''
Line 2,830 ⟶ 2,851:
|-
| 182 || Stronghold of Acheron
|-
| 183 || Fallen Gardens
|-
| 184 || Diamond Gate
|}
</li>
Line 2,925 ⟶ 2,950:
| 26 || Attack Rating, Enhanced Damage
|-
| 27 || All Skills <span class="omod">(Weapons)</span>
|-
| 28 || Fire Mastery, Faster Cast
Line 2,971 ⟶ 2,996:
| 49 || Curse Resistance <span class="omod">(Chest, Helm, Quiver, Shield)</span>
|-
| 50 || All Skills <span class="omod">(Non-weapons)</span>
|}
</li>
97

edits