From Dark and Darker Wiki
(Item property name was changed in script. Edited to account for this.) |
(Changed column order. Changed column widths.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
Set the craftables array to empty | Set the craftables array to empty | ||
-->||{{#arraydefine:craftables|}}}}}}<!-- | -->||{{#arraydefine:craftables|}}}}}}<!-- | ||
Otherwise do nothing | |||
--><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:70%; min-width:500px; text-align:center; vertical-align:middle; {{#ifeq:{{#arraysize:craftables}}|0|display:none;}}"><!-- | --><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:70%; min-width:500px; text-align:center; vertical-align:middle; {{#ifeq:{{#arraysize:craftables}}|0|display:none;}}"><!-- | ||
--><tr><th style="width: | --><tr><th style="width:2%">Name</th><!-- | ||
--><th style="width:5%">Ingredients</th><!-- | |||
--><th style="width:2%">Merchant</th><!-- | |||
--><th class="tooltip" style="width:2%">[[Template:Merchant Affinity|Affinity to Unlock]]<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:75%; width:100%">Affinity values are collected manually by the community. If you spot an error, please kindly follow the link and fix it!</span></th></tr><!-- | |||
-->{{#loop:i|0|{{#arraysize:craftables}}<!-- | -->{{#loop:i|0|{{#arraysize:craftables}}<!-- | ||
-->|<tr><!-- Generate a crafting row for each element in @array:craftables | -->|<tr><!-- Generate a crafting row for each element in @array:craftables | ||
Line 46: | Line 49: | ||
-->|{{#explode:{{#var:ingredient}}|-|2}}<!-- | -->|{{#explode:{{#var:ingredient}}|-|2}}<!-- | ||
-->|{{Misc Data|{{#explode:{{#var:ingredient}}|-|1}}|Rarities}}}}}}}}</td><!-- | -->|{{Misc Data|{{#explode:{{#var:ingredient}}|-|1}}|Rarities}}}}}}}}</td><!-- | ||
--><td>[[{{{1}}}]]</td>}}</tr>}}</table><!-- | --><td>[[{{{1}}}]]</td><!-- | ||
--><td>{{Merchant Affinity|{{{1}}}|craftstoaffinity|{{#var:craft}} }}</td>}}</tr>}}</table><!-- | |||
--></includeonly><noinclude> | --></includeonly><noinclude> |
Latest revision as of 21:29, 12 March 2025
Parameters
- 1:
- Merchant Name
- default: empty string
- 2:
- Item or List of Items separated by commas
- default: empty string
- ingredient:
- ingredient to search for
- default: empty string
- ingredientcategory:
- item category of ingredient
{Weapon, Armor, Accessory, Utility, Misc}
- default:
Misc
- item category of ingredient
Example
{{GenerateCraftingTable|Alchemist|ingredient=Gold Coin}}
Name | Ingredients | Merchant | Affinity to UnlockAffinity values are collected manually by the community. If you spot an error, please kindly follow the link and fix it! |
---|---|---|---|
Alchemist | 100 | ||
Alchemist | 100 | ||
Alchemist | |||
Example
{{GenerateCraftingTable|Weaponsmith|ingredient=Longsword|ingredientcategory=Weapon}}
Name | Ingredients | Merchant | Affinity to UnlockAffinity values are collected manually by the community. If you spot an error, please kindly follow the link and fix it! |
---|---|---|---|
Weaponsmith | 150 | ||
Weaponsmith | 25 | ||
Example
{{GenerateCraftingTable|Alchemist|ingredient=Golden Teeth}}
Name | Ingredients | Merchant | Affinity to UnlockAffinity values are collected manually by the community. If you spot an error, please kindly follow the link and fix it! |
---|---|---|---|
Alchemist | 100 | ||
Example
{{GenerateCraftingTable|Weaponsmith|Sterling Blade}}
Name | Ingredients | Merchant | Affinity to UnlockAffinity values are collected manually by the community. If you spot an error, please kindly follow the link and fix it! |
---|---|---|---|
Weaponsmith | 25 |
Example
{{GenerateCraftingTable|Alchemist}}
Name | Ingredients | Merchant | Affinity to UnlockAffinity values are collected manually by the community. If you spot an error, please kindly follow the link and fix it! |
---|---|---|---|
Alchemist | 0 | ||
Alchemist | 0 | ||
Alchemist | 0 | ||
Alchemist | 0 | ||
Alchemist | 0 | ||
Alchemist | 0 | ||
Alchemist | 0 | ||
Alchemist | 100 | ||
Alchemist | 100 | ||
Alchemist | |||
Alchemist | 0 | ||
Alchemist | 25 | ||
Alchemist | 50 | ||
Alchemist | ? | ||
Alchemist | 0 | ||
Alchemist | 25 | ||
Alchemist | 50 | ||
Alchemist | ? | ||
Alchemist | 0 | ||
Alchemist | 25 | ||
Alchemist | 50 | ||
Alchemist | ? | ||
Alchemist | 25 | ||
Alchemist | 50 | ||
Alchemist | ? | ||
Alchemist | |||
Alchemist | |||
Alchemist | |||
Alchemist | |||
Alchemist | |||
Alchemist |
Example
{{GenerateCraftingTable|Alchemist|ingredient=Silver Ore}}