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}}}|incraftingrecipe}}<!--
-->|{{#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

Example

{{GenerateCraftingTable|Alchemist|ingredient=Gold Coin}}
NameIngredientsMerchant
Gold Ingot1
Wolf Fang2
Wolf Claw3
Gold Coin300
Alchemist
Gold Ingot1
Golden Teeth1
Gold Coin300
Alchemist

Example

{{GenerateCraftingTable|Weaponsmith|ingredient=Longsword|ingredientcategory=Weapon}}
NameIngredientsMerchant
Longsword1
Dark Matter1
Gold Ingot3
Gold Coin50
Weaponsmith
Longsword1
Silver Powder2
Weaponsmith
Longsword1
Silver Ingot2
Weaponsmith
Longsword1
Silver Ingot3
Weaponsmith

Example

{{GenerateCraftingTable|Alchemist|ingredient=Golden Teeth}}
NameIngredientsMerchant
Gold Ingot1
Golden Teeth1
Gold Coin300
Alchemist

Example

{{GenerateCraftingTable|Weaponsmith|Sterling Blade}}
NameIngredientsMerchant
Longsword1
Silver Powder2
Weaponsmith

Example

{{GenerateCraftingTable|Alchemist}}
NameIngredientsMerchant
Iron Ore2
Alchemist
Copper Ore2
Alchemist
Cobalt Ore2
Alchemist
Rubysilver Ore2
Alchemist
Silver Coin45
Alchemist
Gold Ore2
Alchemist
Froststone Ore2
Alchemist
Gold Ingot1
Wolf Fang2
Wolf Claw3
Gold Coin300
Alchemist
Gold Ingot1
Golden Teeth1
Gold Coin300
Alchemist
Potion of Healing1
Lifeleaf1
Alchemist
Potion of Healing1
Lifeleaf2
Alchemist
Potion of Healing1
Lifeleaf3
Alchemist
Potion of Healing1
Lifeleaf5
Alchemist
Potion of Protection1
Phantom Flower1
Alchemist
Potion of Protection1
Phantom Flower2
Alchemist
Potion of Protection1
Phantom Flower3
Alchemist
Potion of Protection1
Phantom Flower5
Alchemist
Magic Protection Potion1
Wardweed1
Alchemist
Magic Protection Potion1
Wardweed2
Alchemist
Magic Protection Potion1
Wardweed3
Alchemist
Magic Protection Potion1
Wardweed5
Alchemist
Lifeleaf2
Phantom Flower2
Wardweed2
Alchemist
Lifeleaf4
Phantom Flower4
Wardweed4
Alchemist
Lifeleaf6
Phantom Flower6
Wardweed6
Alchemist
Lifeleaf8
Phantom Flower8
Wardweed8
Alchemist

Example

{{GenerateCraftingTable|Alchemist|ingredient=Silver Ore}}