Talk:Loot Filtration: Difference between revisions
From Path of Diablo Wiki
(4 intermediate revisions by the same user not shown) | |||
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 == | ||
Line 585: | Line 607: | ||
=== Functions === | === Functions === | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||
Line 592: | Line 614: | ||
|- | |- | ||
| CHARSTAT() | | CHARSTAT() | ||
| | | Character stat, eg <code>CHARSTAT(7)</code> is max life | ||
|- | |- | ||
| COUNT() [DISABLED] | | COUNT() [DISABLED] | ||
Line 598: | Line 620: | ||
|- | |- | ||
| CSKILLS() | | CSKILLS() | ||
| | | <code>%CSKILLS(AMA, 1)%</code> for the first tab of Amazon skills, <code>%CSKILLS(AMA)%</code> for just Amazon skills (full name Amazon works as well) | ||
|- | |- | ||
| CHARGES() | | CHARGES() | ||
| | | | ||
|- | |- | ||
| CTCSKILL() | | CTCSKILL() | ||
Line 607: | Line 629: | ||
|- | |- | ||
| ITEMLIST() | | ITEMLIST() | ||
| | | Space separated ist of items | ||
|- | |- | ||
| ITYPE() | | ITYPE() | ||
Line 646: | Line 668: | ||
|- | |- | ||
| STORAGE() | | STORAGE() | ||
| | | Where the item lives. Could be in: | ||
INV | |||
EQUIPPED | |||
STASH | |||
CUBE | |||
TRADE | |||
BELT | |||
MERC | |||
SHOP | |||
GAMBLE | |||
GROUND | |||
|- | |- | ||
| SUFFIX() | | SUFFIX() | ||
Line 742: | Line 774: | ||
|- | |- | ||
| | | | ||
%NEWLINE% <br> | |||
%NL% | |||
| Inserts a new line | | Inserts a new line | ||
|- | |- |