Talk:Loot Filtration: Difference between revisions

From Path of Diablo Wiki
Line 205: Line 205:


== Skill & Item Lists ==
== Skill & Item Lists ==
Skill and item lists are a reusable way to define commonly used item codes, item names or skill codes. They are used in conjunction with filtering functions described in Filtering Variables.
To defining a list can be done anywhere in the file, with both following the same format:
SkillList[name]: <list of space separated skill names or id’s>
ItemList[name]: <list of space separated item codes or item names>
"name" can be any string, 32 characters or less, consisting of lower and upper case ASCII characters or underscores. An example of a list would be the following:
<pre>
ItemList[supercoolitems]:ob4 ob9 obe ob5 oba obf
SkillList[supercoolskills]: "Immolate" "Telekinesis"
</pre>
To call these lists, an example would be:
<pre>
ItemDisplay[ITEMS("supercoolitems"]: %NAME% super cool items!
ItemDisplay[SKILLS("supercoolskills")]: %NAME% super cool skills skills!
</pre>


== Sounds ==
== Sounds ==