From Dark and Darker Wiki
(Whitespace) |
(Item property name was changed in script. Edited to account for this.) |
||
Line 11: | Line 11: | ||
-->{{#if:{{{ingredient|}}}<!-- | -->{{#if:{{{ingredient|}}}<!-- | ||
AND @arg:ingredient is NOT used in a crafting recipe(s) | AND @arg:ingredient is NOT used in a crafting recipe(s) | ||
-->|{{#if:{{{{{ingredientcategory|Misc}}} Data|{{{ingredient}}}| | -->|{{#if:{{{{{ingredientcategory|Misc}}} Data|{{{ingredient}}}|incraftingrecipefor}}<!-- | ||
Set the craftables array to empty | Set the craftables array to empty | ||
-->||{{#arraydefine:craftables|}}}}}}<!-- | -->||{{#arraydefine:craftables|}}}}}}<!-- | ||
Line 62: | Line 62: | ||
**item category of ingredient <code>{Weapon, Armor, Accessory, Utility, Misc}</code> | **item category of ingredient <code>{Weapon, Armor, Accessory, Utility, Misc}</code> | ||
**default: <code>Misc</code> | **default: <code>Misc</code> | ||
==Example== | |||
<pre>{{GenerateCraftingTable|Alchemist|ingredient=Gold Coin}}</pre> | |||
{{GenerateCraftingTable|Alchemist|ingredient=Gold Coin}} | |||
==Example== | ==Example== | ||
<pre>{{GenerateCraftingTable|Weaponsmith|ingredient=Longsword|ingredientcategory=Weapon}}</pre> | <pre>{{GenerateCraftingTable|Weaponsmith|ingredient=Longsword|ingredientcategory=Weapon}}</pre> |
Latest revision as of 06:53, 23 June 2024
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 |
---|---|---|
Alchemist | ||
Alchemist | ||
Example
{{GenerateCraftingTable|Weaponsmith|ingredient=Longsword|ingredientcategory=Weapon}}
Name | Ingredients | Merchant |
---|---|---|
Weaponsmith | ||
Weaponsmith | ||
Weaponsmith | ||
Weaponsmith | ||
Example
{{GenerateCraftingTable|Alchemist|ingredient=Golden Teeth}}
Name | Ingredients | Merchant |
---|---|---|
Alchemist | ||
Example
{{GenerateCraftingTable|Weaponsmith|Sterling Blade}}
Name | Ingredients | Merchant |
---|---|---|
Weaponsmith |
Example
{{GenerateCraftingTable|Alchemist}}
Example
{{GenerateCraftingTable|Alchemist|ingredient=Silver Ore}}