Item Filtering: Difference between revisions

Marked this version for translation
(→‎Mutable Codes: bugs for SHOP/EQUIPPED)
(Marked this version for translation)
Line 6:
For other out-of-game customization options, see '''[[Customization]]'''.
 
== Filters == <!--T:163-->
== Filters ==
Item filters (often called lootfilters) are text files which contain rules for describing how items should be displayed in-game. The default filter only has a few simple rules for adding descriptions to some items (map orbs and stackable gems/runes), and otherwise displays all items the same as they would be in vanilla.
 
Line 26 ⟶ 27:
<!-- End of "Filters" category -->
 
== Filter Syntax == <!--T:22-->
== Filter Syntax ==
Filters contain rules for how items should be displayed in-game. Each rule has '''''Input''''' and '''''Output''''' and follows this basic format:
 
Line 56 ⟶ 58:
<code>ItemDisplay[]: %NAME%</code> <span style="color:gray;">''displays all items with their default appearances''</span>
 
=== Conditions === <!--T:31-->
=== Conditions ===
Conditions describe which item(s) the rule should apply to.
 
Line 108 ⟶ 111:
<code>ItemDisplay[MAG !ID HELM !(BAR OR DRU OR ELT)]:</code> <span style="color:gray;">''hides magic unidentified helms that are not barbarian helms, druid pelts, or elite''</span>
 
=== Output === <!--T:47-->
=== Output ===
A rule's output (text and keywords in the second part of the rule) describe how the matching item(s) should be displayed.
 
Line 244 ⟶ 248:
<!-- End of "Filter Syntax" category -->
 
== Filter Strictness == <!--T:151-->
== Filter Strictness ==
[[File:filter_strictness_default.png|thumb|Default Filter Strictness Levels]]
Filter levels can be selected from the in-game settings menu and will change which rules/notifications are enabled based on the FILTLVL/TIER codes used in the filter. By default, there are two levels: "Standard" and "Show All Items". The "Standard" level is the normal filter behavior that would be seen without any filter level changes, whereas "Show All Items" will just prevent any items from being filtered out (hidden).
Line 280 ⟶ 285:
<!-- End of "Filter Strictness" category -->
 
== Filter Codes == <!--T:81-->
== Filter Codes ==
=== Output Keywords ===
==== Colors ====
Line 330 ⟶ 336:
<code>ItemDisplay[wss]: %RED%Worldstone Shard</code> <span class="d2-red">''Worldstone Shard''</span>
 
==== Value References ==== <!--T:85-->
==== Value References ====
{| class="wikitable"
! Code !! Output !! Details
Line 365 ⟶ 372:
|}
 
==== Notification Keywords ==== <!--T:86-->
==== Notification Keywords ====
[[File:MapNotificationColors.png|thumb|Minimap Icon Colors]]
These keywords add the item to the notification list and create a minimap icon for it.
Line 413 ⟶ 421:
All notification keywords seem to bypass the normal rule-handling procedure. Normally, the rules are processed top-to-bottom and this process halts when a matching rule (without '''%CONTINUE%''') is found. Notification keywords, however, can apply even after the process has halted. This may be [[Bugs|unintended behavior]].
 
==== Special Keywords ==== <!--T:96-->
==== Special Keywords ====
{| class="wikitable"
! Code !! Details
Line 429 ⟶ 438:
<!-- End of "Output Keywords" category -->
 
=== Boolean Conditions === <!--T:98-->
=== Boolean Conditions ===
==== Mutable Codes ====
Contrary to most "immutable" codes which refer to static item properties, these conditions depend on where and how the item is being viewed. Some value conditions such as [[Item_Filtering#Info_Codes|CLVL and DIFF]] are also "mutable" in this way.
Line 455 ⟶ 465:
<code>ItemDisplay[key ASSASSIN]:</code> <span style="color:gray;">''hides keys when playing as an Assassin''</span>
 
<!--T:183-->
Both '''SHOP''' and '''EQUIPPED''' behave as expected in most scenarios, but they each have a [[Bugs|bug]] associated with them. Most notably, '''EQUIPPED''' incorrectly applies to items that begin the game within the multiplayer shared stash.
 
<!--T:184-->
==== Item Group Codes ====
===== General Groups =====
Line 510 ⟶ 522:
</ul></div>
 
===== Armor Groups ===== <!--T:99-->
===== Armor Groups =====
{| class="wikitable"
! Code !! Code !! Group !! Details
Line 531 ⟶ 544:
|}
 
===== Weapon Groups ===== <!--T:100-->
===== Weapon Groups =====
{| class="wikitable"
! Code !! Code !! Group !! Details
Line 572 ⟶ 586:
The '''1H''' code is currently [[Bugs|bugged]] and doesn't include Hand Axe.
 
===== Class-Restricted Item Groups ===== <!--T:101-->
===== Class-Restricted Item Groups =====
{| class="wikitable"
! Code !! Code !! Group
Line 591 ⟶ 606:
|}
 
==== Item Codes ==== <!--T:102-->
==== Item Codes ====
===== Armor =====
{| class="wikitable"
Line 891 ⟶ 907:
|}
 
===== Weapons ===== <!--T:103-->
===== Weapons =====
{| class="wikitable"
! Code !! Item (Normal)
Line 1,320 ⟶ 1,337:
===== Other Items ===== <!--T:104-->
 
====== Potions ====== <!--T:105-->
====== Potions ======
{| class="wikitable"
! Code !! Item
Line 1,360 ⟶ 1,378:
|}
 
====== Gems ====== <!--T:106-->
====== Gems ======
Also see [[Item_Filtering#Info_Codes|GEMLEVEL and GEMTYPE]]
{| class="wikitable"
Line 1,444 ⟶ 1,463:
|}
 
====== Runes ====== <!--T:108-->
====== Runes ======
Also see [[Item_Filtering#Info_Codes|RUNE]]
 
Line 1,509 ⟶ 1,529:
|}
 
====== Quest Items ====== <!--T:111-->
====== Quest Items ======
<div><ul style="margin-left:0px;">
<li style="display:inline-table; margin-left:0px; margin-right:8px;">
Line 1,592 ⟶ 1,613:
* Unique quest items (not essences/tokens or uber keys/organs) cannot be sold so they have no price
 
====== PD2 Items ====== <!--T:112-->
====== PD2 Items ======
<div><ul style="margin-left:0px;">
<li style="display:inline-table; margin-left:0px; margin-right:8px;">
Line 1,742 ⟶ 1,764:
</ul></div>
 
====== Misc ====== <!--T:113-->
====== Misc ======
<div><ul style="margin-left:0px;">
<li style="display:inline-table; margin-left:0px; margin-right:8px;">
Line 1,792 ⟶ 1,815:
<!-- End of "Boolean Conditions" category -->
 
=== Value Conditions === <!--T:115-->
=== Value Conditions ===
==== Info Codes ====
{| class="wikitable"
Line 1,837 ⟶ 1,861:
There is currently a [[Bugs|bug]] with hiding stacked gems/runes - if the lootfilter attempts to hide them, they'll usually be loaded regardless and appear with an empty name.
 
==== Named Attribute Codes ==== <!--T:117-->
==== Named Attribute Codes ====
{| class="wikitable"
! Code !! Description !! Item Appearance !! Details
Line 1,915 ⟶ 1,940:
<code>ItemDisplay[NMAG !ELT FRW>-20]:</code> <span style="color:gray;">''hides regular non-elite medium/heavy armors''</span>
 
==== Numbered Attribute Codes ==== <!--T:123-->
==== Numbered Attribute Codes ====
The relevant number for each code is shown as N. In many cases, if N is absent, it is either 0 or 1. For codes that refer to attributes which are based on character level, N is often a multiple of Y (+Y per Character Level) such as 8Y for STAT214 or 2Y for STAT224.
 
<!--T:124-->
Some numbered attribute codes (shown in <span style="color:gray;">gray</span>) refer to the same attributes as [[Item_Filtering#Named_Attribute_Codes|named attribute codes]] or other named codes, which can be used instead for better readability.
<div><ul style="margin-left:0px;">
<li style="display:inline-table; margin-left:0px; margin-right:8px;">
===== General ===== <!--T:124-->
{| class="wikitable"
! Code !! Item Appearance
Line 2,090 ⟶ 2,117:
<li style="display:inline-table; margin-left:0px; margin-right:8px;">
 
===== Elements ===== <!--T:125-->
===== Elements =====
{| class="wikitable"
! Code !! Item Appearance
Line 2,217 ⟶ 2,245:
<li style="display:inline-table; margin-left:0px; margin-right:0px;">
 
===== Based on Character Level ===== <!--T:126-->
===== Based on Character Level =====
{| class="wikitable"
! Code !! Item Appearance
Line 2,456 ⟶ 2,485:
|}
 
==== Skill Codes ==== <!--T:127-->
==== Skill Codes ====
===== Group Skills =====
Also see [[Item_Filtering#Elements|STAT362-STAT366]] (Cold, Fire, Lightning, Poison, Magic)
Line 2,532 ⟶ 2,562:
<ul></div>
 
===== Individual Skills ===== <!--T:128-->
===== Individual Skills =====
In addition to these "SK" codes, there are equivalent "CHSK" codes for skill charges and "OS" codes for oskills. For example, '''CHSK54''' refers to skill charges for Teleport. "CHSK" codes for curse charges use separate 'proc' versions of those skills: '''CHSK445''' for Life Tap and '''CHSK447''' for Lower Resist.
 
Line 2,539 ⟶ 2,570:
* Skills with gray codes do not appear on items as pointmods/staffmods under normal circumstances.
 
<!--T:130-->
<div><ul style="margin-left:0px;">
<li style="display:inline-table; margin-left:0px; margin-right:8px;">
====== Amazon ====== <!--T:130-->
{| class="wikitable"
|-
Line 2,755 ⟶ 2,787:
<li style="display:inline-table; margin-left:0px; margin-right:8px;">
 
====== Paladin ====== <!--T:131-->
====== Paladin ======
{| class="wikitable"
|-
Line 3,034 ⟶ 3,067:
<li style="display:inline-table; margin-left:0px; margin-right:8px;">
 
====== Other ====== <!--T:132-->
====== Other ======
{| class="wikitable"
|-
Line 3,050 ⟶ 3,084:
<ul></div>
 
=== Value Condition IDs === <!--T:133-->
=== Value Condition IDs ===
Certain value conditions (MAPID, PREFIX, SUFFIX, STAT360) are slightly different than most others, referring to distinct zone/affix/corruption IDs instead of the value for attributes or other item stats with value ranges. Some other value conditions such as [[Item_Filtering#Info_Codes|GEMLEVEL, GEMTYPE, RUNE, or DIFF]] behave in a similar fashion, but their IDs aren't listed in this section due to having relatively few possible values.
 
==== MAPID IDs ==== <!--T:134-->
==== MAPID IDs ====
MAPID refers to the [[Zones|zone]] (or [[Maps|map]]) the character is currently in. When using a portal, the zone ID [[Bugs|won't update immediately]] so any items within a screen length of the portal will be displayed as if the character was still in the previous zone. If the character walks a couple screen lengths away and returns, the ID will be updated and those items will be displayed as expected.
 
Line 3,446 ⟶ 3,482:
<ul></div>
 
==== SUFFIX and PREFIX IDs ==== <!--T:141-->
==== SUFFIX and PREFIX IDs ====
SUFFIX refers to the suffixes items have whereas PREFIX refers to the prefixes they have. They're similar to the [[Item_Filtering#Numbered_Attribute_Codes|numbered attribute codes]], but refer to affixes rather than affix attributes.
 
Line 5,659 ⟶ 5,696:
|}
 
==== STAT360 IDs ==== <!--T:147-->
==== STAT360 IDs ====
[[Item_Filtering#General|STAT360]] refers to which corruption items have.