Talk:Loot Filtration: Difference between revisions

From Path of Diablo Wiki
No edit summary
Line 128: Line 128:




== Intermediate ==
== Text Decoration and sounds ==


Add section covering non-style in-line command to add things like icon border and background colors
You can alter the appearance of item drops by adding filter code to the items display line.
To make a super healing potion look like this:


== Advanced ==
[[File:Wiki-loot-filter-text-decorating1.png]]
===Filter levels===
 
You would format the potions display line as follows:
 
<code>ItemDisplay["Super Healing Potion"]: %RED%%NAME% %MAPICON(4,5)% %BORDER(1,33)% %BGCOLOR(4)% </code>
 
{| class="wikitable"
|-
! Code
! Input
! Description<br />
!
|-
| %MAPICON(x or x,x)%
| One or two numbers. The first number sets the icon,  2nd shifts the color
| Sets an icon that's visible on the minimap
|
|-
| %BORDER(x or x,x)%
| One or two numbers. The first number sets a border color, 2nd number sets border thickness
| Creates a border around the item name display
|
|-
| %BGCOLOR(x)%
| One number
| Adds a background color to the item name display
|
|-
| %NOTIFY(x)%
| A Color, choosing "ITEM" uses the default item color (blue for magic, yellow for rare, etc.)<br />
| Creates a chat notification  when the item drops
|
|-
| %NOTIFYSOUND(x)%
| Number corresponding with an in game sound index
| Forces a special sound when an item drops
|
|}
 
==Filter levels==
Filters can be set to varying degrees of strictness using filterlevels. To only show minor hp pots in the lowest filter level you could use:
Filters can be set to varying degrees of strictness using filterlevels. To only show minor hp pots in the lowest filter level you could use:


Line 147: Line 186:
</pre>
</pre>


== Modern Filtering Techniques ==
Patch [[Patch_Notes#Patch_.2321:_Shungite|#21 Shungite]] Brought us new filtering techniques, including macros, styles, support for if statements, and better ways to manage custom sounds.


===Text Macros===
===Text Macros===
Line 190: Line 232:
[[file:Wiki-loot-filter-style2.png]]
[[file:Wiki-loot-filter-style2.png]]


Style elements border color and background color can also utilize RGB values, for example BackgroundColor = RGB(245/2/19).
Style elements border color and background color can also utilize RGB values, for example <code>BackgroundColor = RGB(245/2/19)</code>.