From Dark and Darker Wiki
(Filters a list of gear for a class. Optional inclusion or exclusion or Artifacts.) |
m (Added Handtype filter variable.) |
||
Line 9: | Line 9: | ||
-->{{#if:{{{{{2}}}|{{#var:current_gear}}|classes}}||no_classes}}<!-- OR Gear is for all classes | -->{{#if:{{{{{2}}}|{{#var:current_gear}}|classes}}||no_classes}}<!-- OR Gear is for all classes | ||
-->{{#if:{{{class|}}}||continue}}<!-- OR we are not filtering by class | -->{{#if:{{{class|}}}||continue}}<!-- OR we are not filtering by class | ||
Filter gear for non-artifacts | Filter gear for the handtype we are interested in | ||
-->|{{#if: {{#pos:{{{{{2}}}|{{#var:current_gear}}|handtype}}|{{{handtype}}}}}<!-- Gear is for the class we are interested in | |||
-->{{#if:{{{handtype|}}}||continue}}<!-- OR we are not filtering by class | |||
Filter gear for non-artifacts | |||
-->|{{#if:{{{{{2}}}|{{#var:current_gear}}|artifactpower}}<!-- Gear is an Artifact | |||
-->|{{#if:{{{not_artifact|}}}<!-- AND we are filtering out Artifacts | |||
-->||{{#if:{{#var:first_element}}|{{#vardefine:first_element|}}|,}}<!-- | |||
-->{{#var:current_gear}}}}<!-- | |||
-->|{{#if:{{#var:first_element}}|{{#vardefine:first_element|}}|,}}<!-- | |||
-->{{#var:current_gear}}}}}}}} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
List gear for specific class, variables: | List gear for specific class, variables: | ||
Line 21: | Line 24: | ||
*2=Weapon Data/Armor Data | *2=Weapon Data/Armor Data | ||
*class=Fighter/Barbarian/Rogue/Ranger/Wizard/Cleric/Bard/Warlock | *class=Fighter/Barbarian/Rogue/Ranger/Wizard/Cleric/Bard/Warlock | ||
*handtype=Two Handed/One Handed | |||
*artifact=1 to exclude artifacts | *artifact=1 to exclude artifacts | ||
Line 42: | Line 46: | ||
|Weapon Data | |Weapon Data | ||
|class =Bard | |class =Bard | ||
|handtype=Two Handed | |||
|not_artifact =1 | |not_artifact =1 | ||
}} | }} |
Revision as of 02:12, 23 March 2024
List gear for specific class, variables:
- 1=List
- 2=Weapon Data/Armor Data
- class=Fighter/Barbarian/Rogue/Ranger/Wizard/Cleric/Bard/Warlock
- handtype=Two Handed/One Handed
- artifact=1 to exclude artifacts
Example
Code | Preview |
---|---|
{{FilterListForClass |{{Weapon Data|All}} |Weapon Data |class =Bard |not_artifact =1 }} |
Bare Hand Two Handed,Crossbow,Francisca Axe,Lute,Survival Bow,Throwing Knife,Torch |