From Dark and Darker Wiki

Revision as of 00:25, 8 April 2026 by Raw Salad (talk | contribs) (Created page with "=Overview= Functions for making Crafting table. Data comes from Data:Merchant.json. =Functions= ==draw_table== Creates a table of craftables ===Parameters=== * ''merchant'' - Merchant of interest * ''item'' - Singular item for which to create a table * ''ingredient'' - Ingredient name, used to filter the provided merchant's crafts for those which use the ingredient ==draw_table examples== ===Void Blade, Weaponsmith=== ---- <pre>{{#invoke:Craft|draw_table|item=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Craft

Overview

Functions for making Crafting table. Data comes from Data:Merchant.json.

Functions

draw_table

Creates a table of craftables

Parameters

  • merchant - Merchant of interest
  • item - Singular item for which to create a table
  • ingredient - Ingredient name, used to filter the provided merchant's crafts for those which use the ingredient

draw_table examples

Void Blade, Weaponsmith


{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}}


NameIngredientsMerchant
1
1
3
50

Weaponsmith, Iron Ingot


{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}}


NameIngredientsMerchant
2
1

Weaponsmith


{{#invoke:Craft|draw_table|merchant=Weaponsmith}}


NameIngredientsMerchant
2
1
1
1
1
1
1
1
1
1
3
50
1
1
1
1
5
50
3
3
1
1
3
50
1
1
1
1
2
3
50
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
1
2
3
50
1
2
1
1
1
1
1
1
1
1
3
3
1
2
1
1
1
2
1
1
2
2
50
1
1
1
2
50
3
1
1
3
3
50
1
1
1
2
50
1
2
1
1
3
1
1
1
1
1
1
1
1
2
1
1
3
6
50
1
1
1
2
3
1
1
60
1
1
3
3
50
1
2
5
3
50
1
1
3
3
50
1
1
3
50
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
3
1
1
1
50
1
1
5
2
50
1
1
3
50