- 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.
From Dark and Darker Wiki
(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=...") |
m (→page: typo) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
Creates a table of craftables | Creates a table of craftables | ||
<tabber> | |||
* ''merchant'' - Merchant of interest | |-| Parameters= | ||
* ''item'' - Singular item for which to create a table | * ''merchant'' - Merchant of interest. | ||
* ''ingredient'' - Ingredient name | * ''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. | |||
= | |-| Examples= | ||
<pre>{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}}</pre> | <pre>{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}}</pre> | ||
{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}} | |||
---- | ---- | ||
<pre>{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}}</pre> | <pre>{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}}</pre> | ||
{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}} | |||
---- | ---- | ||
<pre>{{#invoke:Craft|draw_table|merchant=Weaponsmith}}</pre> | <pre>{{#invoke:Craft|draw_table|merchant=Weaponsmith}}</pre> | ||
{{#invoke:Craft|draw_table|merchant=Weaponsmith}} | |||
</tabber> | |||
==page== | |||
Creates, if possible, two tables. The first presents recipes for if the given item is craftable. The second presents recipes that use the item to create other items. | |||
<tabber> | |||
|-| Parameters= | |||
* ''item'' - Singular item for which to create a table. | |||
* ''category'' - Item's item category. Used to lookup merchant crafting presence. | |||
{{#invoke:Craft| | |-| Examples= | ||
<pre>{{#invoke:Craft|page|item=Void Blade|category=Weapon}}</pre> | |||
{{#invoke:Craft|page|item=Void Blade|category=Weapon}} | |||
---- | |||
<pre>{{#invoke:Craft|page|category=Misc|item=Iron Ingot}}</pre> | |||
{{#invoke:Craft|page|category=Misc|item=Iron Ingot}} | |||
---- | |||
<pre>{{#invoke:Craft|page|category=Misc|item=Iron Ore}}</pre> | |||
{{#invoke:Craft|page|category=Misc|item=Iron Ore}} | |||
</tabber> | |||
Latest revision as of 00:24, 9 April 2026
Overview
Functions for making Crafting table. Data comes from Data:Merchant.json.
Functions
draw_table
Creates a table of craftables
{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}}
| Name | Ingredients | Merchant |
|---|---|---|
{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}}
| Name | Ingredients | Merchant |
|---|---|---|
{{#invoke:Craft|draw_table|merchant=Weaponsmith}}
| Name | Ingredients | Merchant |
|---|---|---|
page
Creates, if possible, two tables. The first presents recipes for if the given item is craftable. The second presents recipes that use the item to create other items.
- item - Singular item for which to create a table.
- category - Item's item category. Used to lookup merchant crafting presence.
{{#invoke:Craft|page|item=Void Blade|category=Weapon}}
Craftable
Void Blade is craftable with the following crafting recipes.| Name | Ingredients | Merchant |
|---|---|---|
{{#invoke:Craft|page|category=Misc|item=Iron Ingot}}
Craftable
Iron Ingot is craftable with the following crafting recipes.| Name | Ingredients | Merchant |
|---|---|---|
Ingredient
Iron Ingot is used in the following crafting recipes.| Name | Ingredients | Merchant |
|---|---|---|
{{#invoke:Craft|page|category=Misc|item=Iron Ore}}
Ingredient
Iron Ore is used in the following crafting recipes.| Name | Ingredients | Merchant |
|---|---|---|