Item Filtering:修订间差异

跳转到导航 跳转到搜索
添加2,543字节 、​ 2023年1月26日 (星期四)
无编辑摘要
无编辑摘要
第210行: 第210行:
These keywords change the color for subsequent text. If absent, the item's default color will be used instead.
These keywords change the color for subsequent text. If absent, the item's default color will be used instead.
{| class="wikitable"
{| class="wikitable"
! Code !! Color !! Default Use !! Hex
! Code !! Color !! Default Use
|-
|-
| %WHITE% || <span class="d2-white">White</span> || regular items || 20
| %WHITE% || <span class="d2-white">White</span> || regular items
|-
|-
| %GRAY% || <span class="d2-gray">Gray</span> || regular items (ethereal or socketed) || 1D
| %GRAY% || <span class="d2-gray">Gray</span> || regular items (ethereal or socketed)
|-
|-
| %BLUE% || <span class="d2-blue">Blue</span> || magic items, item descriptions || 97
| %BLUE% || <span class="d2-blue">Blue</span> || magic items, item descriptions
|-
|-
| %YELLOW% || <span class="d2-yellow">Yellow</span> || rare items || 6D
| %YELLOW% || <span class="d2-yellow">Yellow</span> || rare items
|-
|-
| %GOLD% || <span class="d2-gold">Gold</span> || unique items, runeword names || 53
| %GOLD% || <span class="d2-gold">Gold</span> || unique items, runeword names
|-
|-
| %GREEN% || <span class="d2-green">Green</span> || set items || 84
| %GREEN% || <span class="d2-green">Green</span> || set items
|-
|-
| %DARK_GREEN% || <span class="d2-dark-green">Dark Green</span> || || 77
| %DARK_GREEN% || <span class="d2-dark-green">Dark Green</span> ||  
|-
|-
| %TAN% || <span class="d2-tan">Tan</span> || || 5A
| %TAN% || <span class="d2-tan">Tan</span> ||  
|-
|-
| %BLACK% || <span class="d2-black">Black</span> || || 00
| %BLACK% || <span class="d2-black">Black</span> ||  
|-
|-
| %PURPLE% || <span class="d2-purple">Purple</span> || || 9B
| %PURPLE% || <span class="d2-purple">Purple</span> ||  
|-
|-
| %RED% || <span class="d2-red">Red</span> || broken/unusable items || 62
| %RED% || <span class="d2-red">Red</span> || broken/unusable items
|-
|-
| %ORANGE% || <span class="d2-orange">Orange</span> || crafted items, endgame quest items, runes || 60
| %ORANGE% || <span class="d2-orange">Orange</span> || crafted items, endgame quest items, runes
|-
|-
| %CORAL% || Coral || ''only works with Glide'' || ?
| %CORAL% || Coral || ''only works with Glide''
|-
|-
| %SAGE% || Sage || ''only works with Glide'' || ?
| %SAGE% || Sage || ''only works with Glide''
|-
|-
| %TEAL% || Teal || ''only works with Glide'' || ?
| %TEAL% || Teal || ''only works with Glide''
|-
|-
| %LIGHT_GRAY% || Light Gray || ''only works with Glide'' || ?
| %LIGHT_GRAY% || Light Gray || ''only works with Glide''
|}
|}


第292行: 第292行:
These keywords add the item to the notification list and create a minimap icon for it.
These keywords add the item to the notification list and create a minimap icon for it.


The color of the minimap icon corresponds to the keyword's hexadecimal 2-digit color code. The icon may be black (00), green (84), red (62), or any of the other colors shown in the chart image. Note that '''%MAP%''' may be used without a 2-digit color code, in which case the icon will use the current text color (or white if no color has been set). The hexadecimal codes which correspond to the [[Item_Filtering#Colors|text colors]] are listed above.
The color of the minimap icon corresponds to the keyword's hexadecimal 2-digit color code. The icon may be black (00), green (84), red (62), or any of the other colors shown in the chart image. Note that '''%MAP%''' may be used without a 2-digit color code, in which case the icon will use the current text color (or white if no color has been set).


Multiple keywords can be used together to create multi-colored minimap icons.
Multiple keywords can be used together to create multi-colored minimap icons.
第306行: 第306行:
|-
|-
| %PX-00% || notification & minimap icon (tiny)
| %PX-00% || notification & minimap icon (tiny)
|}
The 2-digit hexadecimal codes which correspond to the [[Item_Filtering#Colors|text colors]] are listed below. Text colors have a solid inner color and their edges are blended to improve readability, so their average colors appear slightly different in some cases.
{| class="wikitable"
! Text Color !! Hex (Inner) !! Hex (Average)
|-
| <span class="d2-white">White</span> || 1F || 20
|-
| <span class="d2-gray">Gray</span> || C6 || 1D
|-
| <span class="d2-blue">Blue</span> || 94 || 97
|-
| <span class="d2-yellow">Yellow</span> || 6A || 6D
|-
| <span class="d2-gold">Gold</span> || D3 || 53
|-
| <span class="d2-green">Green</span> || 7D || 84
|-
| <span class="d2-dark-green">Dark Green</span> || 76 || 77
|-
| <span class="d2-tan">Tan</span> || 0E || 5A
|-
| <span class="d2-black">Black</span> || 00 || 00
|-
| <span class="d2-purple">Purple</span> || 9B || 9B
|-
| <span class="d2-red">Red</span> || 55 || 62
|-
| <span class="d2-orange">Orange</span> || 0B || 60
|-
| Coral || ? || ?
|-
| Sage || ? || ?
|-
| Teal || ? || ?
|-
| Light Gray || ? || ?
|}
|}


第514行: 第551行:
| GOLD || Gold || can be hidden, but not modified (always displays as "N Gold")
| GOLD || Gold || can be hidden, but not modified (always displays as "N Gold")
|-
|-
| GEMLEVEL || gem quality level || 1 - 5 (Chipped-Perfect)<br>doesn't apply to ''unstacked'' Flawless/Perfect gems
| <s>GEMLEVEL</s><br>GEM || gem quality level || 1 - 5 (Chipped-Perfect)<br>doesn't apply to ''unstacked'' Flawless/Perfect [[Item_Filtering#Gems|gems]]
|-
|-
| GEMTYPE || gem type || 1 - 7 (Amethyst-Skull)
| GEMTYPE || gem type || 1 - 7 (Amethyst, Diamond, Emerald, Ruby, Sapphire, Topaz, Skull)
|-
|-
| RUNE || rune number || 1 - 33 (El-Zod)
| RUNE || rune number || 1 - 33 (El-Zod)
第538行: 第575行:
| CLVL || character level ||  
| CLVL || character level ||  
|-
|-
| DIFF || difficulty || 0 - 2 (Normal-Hell)
| DIFF || difficulty || 0 - 2 (Normal, Nightmare, Hell)
|-
|-
| MAPID || item's initial location || 1 - 175 (see [[Item_Filtering#MAPID_IDs|details]])
| MAPID || item's initial location || 1 - 175 (see [[Item_Filtering#MAPID_IDs|details]])
|-
|-
| SUFFIX || item suffix || 1 - 849 (see [[Item_Filtering#SUFFIX_and_PREFIX_IDs|details]])
| MAPTIER || map tier || 0 - 4 (PvP, T1, T2, T3, Dungeon)
|-
|-
| PREFIX || item prefix || 850 - 1644 (see [[Item_Filtering#SUFFIX_and_PREFIX_IDs|details]])
| SUFFIX || item suffix || 1 - 849 (see [[Item_Filtering#SUFFIX,_PREFIX,_and_AUTOMOD_IDs|details]])
|-
|-
| FILTLVL || filter strictness level || 1 - 9
| PREFIX || item prefix || 850 - 1644 (see [[Item_Filtering#SUFFIX,_PREFIX,_and_AUTOMOD_IDs|details]])
|-
| AUTOMOD || item automod || 1645 - 1688 (see [[Item_Filtering#SUFFIX,_PREFIX,_and_AUTOMOD_IDs|details]])
|-
| FILTLVL || filter strictness level || 0 - 9 (Show All Items, up to 9 custom levels)
|}
|}


第1,759行: 第1,800行:


=== Value Condition IDs ===
=== 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.
Certain value conditions (MAPID, PREFIX, SUFFIX, AUTOMOD, 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 ====
==== 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.
MAPID refers to the [[Zones|zone]] (or [[Maps|map]]) the character is currently in. When using a portal, nearby items are [[Bugs|updated before the zone ID]] 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.


<code>ItemDisplay[(MAPID=1 OR MAPID=40 OR MAPID=75 OR MAPID=103 OR MAPID=109)]: %NAME%{%NAME%}</code> <span style="color:gray;">''shows all items from towns, including shopped items and any items in character inventories/stashes when the game began''</span>
<code>ItemDisplay[(MAPID=1 OR MAPID=40 OR MAPID=75 OR MAPID=103 OR MAPID=109)]: %NAME%{%NAME%}</code> <span style="color:gray;">''shows all items in town''</span>


<code>ItemDisplay[yps CLVL>89 !(MAPID>160 MAPID<164)]:</code> <span style="color:gray;">''hides antidotes at level 90+ unless they're found in Rathma zones''</span>
<code>ItemDisplay[yps CLVL>89 !(MAPID>160 MAPID<164)]:</code> <span style="color:gray;">''hides antidotes at level 90+ unless they're found in Rathma zones''</span>


<code>ItemDisplay[key !MAPID=39]:</code> <span style="color:gray;">''hides keys unless they were found within the cow level''</span>
<code>ItemDisplay[key !MAPID=39]:</code> <span style="color:gray;">''hides keys outside of the cow level''</span>


<code>ItemDisplay[ear (MAPID=157 OR MAPID=159)]:</code> <span style="color:gray;">''hides player ears found within the PvP duel arenas''</span>
<code>ItemDisplay[ear (MAPID=157 OR MAPID=159)]:</code> <span style="color:gray;">''hides player ears within the PvP duel arenas''</span>


<div><ul style="margin-left:0px;">
<div><ul style="margin-left:0px;">
第2,150行: 第2,191行:
| 174 || Ruined Cistern
| 174 || Ruined Cistern
|-
|-
| 175 || Ashen Plain
| 175 || Ashen Plains
|}
|}
</li>
</li>
<ul></div>
<ul></div>


==== SUFFIX and PREFIX IDs ====
==== SUFFIX, PREFIX, and AUTOMOD 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.
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.


Unlike other value conditions, IDs for SUFFIX and PREFIX are not all mutually exclusive with eachother. Rules can have multiple SUFFIX or PREFIX conditions and still match with valid items.
Unlike other value conditions, IDs for SUFFIX and PREFIX are not all mutually exclusive with eachother. Rules can have multiple SUFFIX or PREFIX conditions and still match with valid items.


<code>ItemDisplay[RARE SUFFIX=662 SUFFIX=158]:</code> <span style="color:gray;">''appends a red '''!''' to rare items that have a chance to cast Amplify Damage on hit and also have Ignore Target's Defense''</span>
<code>ItemDisplay[RARE SUFFIX=662 SUFFIX=158]: %NAME% %RED%!</code> <span style="color:gray;">''appends a red '''!''' to rare items that have a chance to cast Amplify Damage on hit and also have Ignore Target's Defense''</span>
 
AUTOMOD functions much the same as SUFFIX and PREFIX.
 
Two of the three basic comparison operators ('''<''' and '''>''') cannot be used with SUFFIX or PREFIX. However, a special comparison operator ('''~''') can be used with them to refer to ID ranges, sometimes referred to as the "BETWEEN" operator. Since multiple PREFIX or SUFFIX conditions are not mutually exclusive with themselves, ID ranges would not be able to be referred to accurately with only '''<''' and '''>'''. This special operator condenses the ranges to a single condition so that it can be evaluated as either true or fase, and is much more convenient than creating large groups of conditions using only '''=''' as comparison operators.
 
<code>ItemDisplay[cm3 PREFIX>1278 PREFIX<1354]: %NAME% +1</code> <span style="color:gray;">''no effect'''''</span>
 
<code>ItemDisplay[cm3 (PREFIX=1279 OR PREFIX=1280 OR PREFIX=1281 OR PREFIX=1291 OR PREFIX=1292 OR PREFIX=1293 OR PREFIX=1303 OR PREFIX=1304 OR PREFIX=1305 OR PREFIX=1315 OR PREFIX=1316 OR PREFIX=1317 OR PREFIX=1327 OR PREFIX=1328 OR PREFIX=1329 OR PREFIX=1339 OR PREFIX=1340 OR PREFIX=1341 OR PREFIX=1351 OR PREFIX=1352 OR PREFIX=1353)]: %NAME% +1</code> <span style="color:gray;">''appends '''+1''' to any grand charm with a skill''</span>
 
<code>ItemDisplay[cm3 PREFIX~1279-1353]: %NAME% +1</code> <span style="color:gray;">''appends '''+1''' to any grand charm with a skill''</span>


External Chart of IDs: [https://docs.google.com/spreadsheets/d/1J5_V3bIloualyzb5_lDFueSSCcQyyPEkKYvoQR9Ve9Y/ Affix IDs]


[https://docs.google.com/spreadsheets/d/1J5_V3bIloualyzb5_lDFueSSCcQyyPEkKYvoQR9Ve9Y/ Affix IDs]


==== STAT360 IDs ====
==== STAT360 IDs ====
[[Item_Filtering#General|STAT360]] refers to which corruption items have.
[[Item_Filtering#General|STAT360]] refers to which corruption items have.


<code>ItemDisplay[STAT360>0]: %RED%%NAME%</code> <span style="color:gray;">''changes corrupted items to be red''</span>
<code>ItemDisplay[STAT360>0]: %NAME% %RED%*</code> <span style="color:gray;">''appends a red '''*''' to corrupted items''</span>


<div><ul style="margin-left:0px;">
<div><ul style="margin-left:0px;">
第2,353行: 第2,404行:
Zone IDs can be determined from PD2's [https://github.com/BetweenWalls/PD2-Singleplayer/blob/main/Diablo%20II/ProjectD2/data/global/excel/modpacks/official/Levels.txt Levels.txt] file.
Zone IDs can be determined from PD2's [https://github.com/BetweenWalls/PD2-Singleplayer/blob/main/Diablo%20II/ProjectD2/data/global/excel/modpacks/official/Levels.txt Levels.txt] file.


If the files in these locations are not updated by others, you can extract them yourself from ''patch_d2.mpq'' (found in ''Diablo II/ProjectD2'') using an [http://www.zezula.net/en/mpq/download.html MPQ editor and D2 listfile] - the text files will be in ''/data/global/excel''.
If the files in these locations are not updated by others, you can extract them yourself from ''pd2data.mpq'' (found in ''Diablo II/ProjectD2'') using an [http://www.zezula.net/en/mpq/download.html MPQ editor and D2 listfile] - the text files will be in ''/data/global/excel''.

导航菜单