From Dark and Darker Wiki
(Changing Template to use calls that work with Merchant Data.) |
(Added merchant parameter to GenCraftingRow call.) |
||
| Line 8: | Line 8: | ||
OR the ingredient is empty, generate the crafting row. | OR the ingredient is empty, generate the crafting row. | ||
-->{{#if:{{#pos:{{Merchant Data|{{{1}}}|Crafts|{{#var:craft}}|ingredients}}|{{{ingredient|}}}}}{{#if:{{{ingredient|}}}||continue}}<!-- | -->{{#if:{{#pos:{{Merchant Data|{{{1}}}|Crafts|{{#var:craft}}|ingredients}}|{{{ingredient|}}}}}{{#if:{{{ingredient|}}}||continue}}<!-- | ||
-->|{{GenerateCraftingRow|{{#var:craft}} }} }} | -->|{{GenerateCraftingRow|{{{1}}}|{{#var:craft}} }} }} | ||
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Revision as of 05:15, 25 March 2024
Auto creates crafting row
Example
{{CraftingTable|
{{GenerateCraftingRows|Alchemist}}
}}
Example
{{CraftingTable|
{{GenerateCraftingRows|Alchemist|ingredient=Gold}}
}}
Example
{{CraftingTable|
{{GenerateCraftingRows|Weaponsmith|ingredient=Gold}}
}}
Example
{{CraftingTable|
{{GenerateCraftingRows|Armourer|ingredient=Gold}}
}}