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>

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
Cockatrice's Lucky Feather1
Wolf Fang2
Wolf Claw3
Gold Coin300
Alchemist
Gold Ingot1
Golden Teeth5
Gold Coin300
Alchemist
Frozen Heart1
Cobalt Ingot2
Gold Coin300
Alchemist

Example

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

Example

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

Example

{{GenerateCraftingTable|Weaponsmith|Sterling Blade}}
NameIngredientsMerchant
Longsword1
Silver Powder1
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
Cockatrice's Lucky Feather1
Wolf Fang2
Wolf Claw3
Gold Coin300
Alchemist
Gold Ingot1
Golden Teeth5
Gold Coin300
Alchemist
Frozen Heart1
Cobalt Ingot2
Gold Coin300
Alchemist
Lifeleaf1
Alchemist
Lifeleaf1
Alchemist
Lifeleaf1
Alchemist
Lifeleaf5
Alchemist
Phantom Flower1
Alchemist
Phantom Flower1
Alchemist
Phantom Flower1
Alchemist
Phantom Flower5
Alchemist
Wardweed1
Alchemist
Wardweed1
Alchemist
Wardweed1
Alchemist
Wardweed5
Alchemist
Lifeleaf1
Wardweed1
Alchemist
Lifeleaf1
Wardweed1
Alchemist
Lifeleaf1
Wardweed1
Alchemist
Phantom Flower1
Blue Eyeballs1
Alchemist
Lifeleaf1
Rotten Fluids1
Alchemist
Frozen Heart1
Glowing Blue Ice Eyes1
Alchemist
Demon Blood1
Armor Scrap2
Alchemist
Volcanic Ash1
Intact Skull6
Bone6
Alchemist
Token of Honor1
Rusty Broken Sword6
Bone6
Alchemist

Example

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