From Dark and Darker Wiki

m (6th example, added info about how |all works)
m (ingots now correctly included for weaponsmith/armourer)
Line 405: Line 405:
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
}}
|all=Cobalt Heavy Gauntlet,Cobalt Plate Boots,Cobalt Viking Helm,Cobalt Chapel De Fer,Cobalt Plate Pants,Cobalt Templar Armor,Rubysilver Gauntlets,Rubysilver Plate Boots,Rubysilver Barbuta Helm,Rubysilver Plate Pants,Rubysilver Cuirass,Golden Hounskull,Golden Armet,Golden Gjermundbu,Golden Plate,Golden Plate Pants,Golden Gauntlets,Golden Plate Boots,Copperlight Kettle Hat,Copperlight Sanctum Plate Armor,Copperlight Plate Pants,Copperlight Gauntlets,Copperlight Plate Boots
|cobalt ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=4
|quantity=1
|ingredients=3-Cobalt Ore-4
|conversationtext=There is a familiar face! Supply me with some Cobalt ore and I will quickly turn them into pure Cobalt ingots.
|craftcompletetext=Now that’s a wonderful metal! There is nothing quite like shimmering Cobalt.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|copper ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=3
|quantity=1
|ingredients=3-Copper Ore-3
|conversationtext=In need of refined Copper? Provide me with the ore, and I'll smelt and craft it into high-quality copper ingots. Let's get started.
|craftcompletetext=Your copper ingots are ready. Smooth, strong, and shining. Ready for use!
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|gold ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=5
|quantity=1
|ingredients=3-Gold Ore-5
|conversationtext=Supply me with gold ore and with skilled hands, I will smelt you pure gold ingots, traveler.
|craftcompletetext=Now there is a metal of beauty! Gleaming gold ingots, smelted in marvelous quality.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|iron ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=2
|quantity=1
|ingredients=3-Iron Ore-2
|conversationtext=Welcome back! If you have Iron ore, I can work my magic and turn it into top-quality Iron ingots. Just leave it to me.
|craftcompletetext=These Iron ingots turned out perfectly! Strong, reliable, and ready for use. Iron like this is hard to come by.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|rubysilver ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=5
|quantity=1
|ingredients=3-Rubysilver Ore-5
|conversationtext=It always amazes me that you can extract such a magical metal from such ugly stone.
|craftcompletetext=Now that there is an amazing metal! There is nothing quite like pure elegant Rubysilver.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|silver ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=5
|quantity=1
|ingredients=60-Silver Coin-2
|conversationtext=Welcome! Bring me your silver coins or ore and I'll work them into pristine ingots.
|craftcompletetext=Here you go, beautiful right? Silver has a charm all its own.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|all=Cobalt Heavy Gauntlet,Cobalt Plate Boots,Cobalt Viking Helm,Cobalt Chapel De Fer,Cobalt Plate Pants,Cobalt Templar Armor,Rubysilver Gauntlets,Rubysilver Plate Boots,Rubysilver Barbuta Helm,Rubysilver Plate Pants,Rubysilver Cuirass,Golden Hounskull,Golden Armet,Golden Gjermundbu,Golden Plate,Golden Plate Pants,Golden Gauntlets,Golden Plate Boots,Copperlight Kettle Hat,Copperlight Sanctum Plate Armor,Copperlight Plate Pants,Copperlight Gauntlets,Copperlight Plate Boots,Cobalt Ingot,Copper Ingot,Gold Ingot,Iron Ingot,Rubysilver Ingot,Silver Ingot
}}
}}
|questchapters={{#switch:{{lc:{{{3|}}}}}
|questchapters={{#switch:{{lc:{{{3|}}}}}
Line 501: Line 549:
}}
}}
|crafts={{#switch:{{lc:{{{3|}}}}}
|crafts={{#switch:{{lc:{{{3|}}}}}
|gold coin bag={{#switch:{{lc:{{{4|}}}}}
|rarity=7
|quantity=1
|ingredients=1-Troll Pelt-4,4-Wolf Pelt-2
|conversationtext=The scent of leather mingles with creativity. What creation shall emerge today?
|craftcompletetext=The final stitch is in place and my work is done. Now, my old hands rest.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|cobalt leather gloves={{#switch:{{lc:{{{4|}}}}}
|cobalt leather gloves={{#switch:{{lc:{{{4|}}}}}
|rarity=4
|rarity=4
Line 653: Line 709:
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
}}
|all=Cobalt Leather Gloves,Cobalt Lightfoot Boots,Rubysilver Leggings,Rubysilver Rawhide Gloves,Rubysilver Adventurer Boots,Rubysilver Cap,Wolf Hunter Leggings,Gravewolf Gloves,Dread Hood,Tri-Pelt Northern Full Tunic,Demonclad Leggings,Foul Boots,Demon Grip Gloves,Golden Leggings,Golden Chausses,Golden Gloves,Golden Boots,Copperlight Riveted Gloves,Copperlight Lightfoot Boots
|all=Gold Coin Bag,Cobalt Leather Gloves,Cobalt Lightfoot Boots,Rubysilver Leggings,Rubysilver Rawhide Gloves,Rubysilver Adventurer Boots,Rubysilver Cap,Wolf Hunter Leggings,Gravewolf Gloves,Dread Hood,Tri-Pelt Northern Full Tunic,Demonclad Leggings,Foul Boots,Demon Grip Gloves,Golden Leggings,Golden Chausses,Golden Gloves,Golden Boots,Copperlight Riveted Gloves,Copperlight Lightfoot Boots
}}
}}
|questchapters={{#switch:{{lc:{{{3|}}}}}
|questchapters={{#switch:{{lc:{{{3|}}}}}
Line 1,265: Line 1,321:
}}
}}
|crafts={{#switch:{{lc:{{{3|}}}}}
|crafts={{#switch:{{lc:{{{3|}}}}}
|cobalt ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=4
|quantity=1
|ingredients=3-Cobalt Ore-4
|conversationtext=There is a familiar face! Supply me with some Cobalt ore and I will quickly turn them into pure Cobalt ingots.
|craftcompletetext=Now that’s a wonderful metal! There is nothing quite like shimmering Cobalt.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|copper ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=3
|quantity=1
|ingredients=3-Copper Ore-3
|conversationtext=In need of refined Copper? Provide me with the ore, and I'll smelt and craft it into high-quality copper ingots. Let's get started.
|craftcompletetext=Your copper ingots are ready. Smooth, strong, and shining. Ready for use!
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|gold ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=5
|quantity=1
|ingredients=3-Gold Ore-5
|conversationtext=Supply me with gold ore and with skilled hands, I will smelt you pure gold ingots, traveler.
|craftcompletetext=Now there is a metal of beauty! Gleaming gold ingots, smelted in marvelous quality.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|iron ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=2
|quantity=1
|ingredients=3-Iron Ore-2
|conversationtext=Welcome back! If you have Iron ore, I can work my magic and turn it into top-quality Iron ingots. Just leave it to me.
|craftcompletetext=These Iron ingots turned out perfectly! Strong, reliable, and ready for use. Iron like this is hard to come by.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|rubysilver ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=5
|quantity=1
|ingredients=3-Rubysilver Ore-5
|conversationtext=It always amazes me that you can extract such a magical metal from such ugly stone.
|craftcompletetext=Now that there is an amazing metal! There is nothing quite like pure elegant Rubysilver.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|silver ingot={{#switch:{{lc:{{{4|}}}}}
|rarity=5
|quantity=1
|ingredients=60-Silver Coin-2
|conversationtext=Welcome! Bring me your silver coins or ore and I'll work them into pristine ingots.
|craftcompletetext=Here you go, beautiful right? Silver has a charm all its own.
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
|void blade={{#switch:{{lc:{{{4|}}}}}
|void blade={{#switch:{{lc:{{{4|}}}}}
|rarity=5
|rarity=5
Line 1,577: Line 1,681:
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
|all=rarity,quantity,ingredients,conversationtext,craftcompletetext
}}
}}
|all=Void Blade,Troll’s Bane,Spear of Rot,Demon's Glee,Mana Sphere,Falchion of Honor,Light Bringer,Centaur's Madness,Cyclops Vision Crystal,Boneshaper,Hunting Trap,Francisca Axe,Throwing Knife,Pickaxe,Lockpick,Trap Disarming Kit,Sterling Staff,Staff of Righteousness,Divine Staff,Sterling Blade,Blade of Righteousness,Divine Blade,Sterling Rod,Rod of Righteousness,Divine Rod,Sterling Short Sword,Short Sword of Righteousness,Divine Short Sword,Sterling Axe,Axe of Righteousness,Divine Axe,Sterling Dagger,Dagger of Righteousness,Divine Dagger,Sterling Bow,Bow of Righteousness,Divine Bow,Golden Felling Axe,Golden Viking Sword
|all=Cobalt Ingot,Copper Ingot,Gold Ingot,Iron Ingot,Rubysilver Ingot,Silver Ingot,Void Blade,Troll’s Bane,Spear of Rot,Demon's Glee,Mana Sphere,Falchion of Honor,Light Bringer,Centaur's Madness,Cyclops Vision Crystal,Boneshaper,Hunting Trap,Francisca Axe,Throwing Knife,Pickaxe,Lockpick,Trap Disarming Kit,Sterling Staff,Staff of Righteousness,Divine Staff,Sterling Blade,Blade of Righteousness,Divine Blade,Sterling Rod,Rod of Righteousness,Divine Rod,Sterling Short Sword,Short Sword of Righteousness,Divine Short Sword,Sterling Axe,Axe of Righteousness,Divine Axe,Sterling Dagger,Dagger of Righteousness,Divine Dagger,Sterling Bow,Bow of Righteousness,Divine Bow,Golden Felling Axe,Golden Viking Sword
}}
}}
|questchapters={{#switch:{{lc:{{{3|}}}}}
|questchapters={{#switch:{{lc:{{{3|}}}}}
Line 1,766: Line 1,870:
==All==
==All==
All sub-layers can also call |all for a list of all unique attributes
All sub-layers can also call |all for a list of all unique attributes
For example, {{Merchant_Data|all}} will output a list of all items
For example, {{Merchant_Data|all}} will output a list of all items
See example 6 for more information
See example 6 for more information

Revision as of 16:14, 26 March 2024


Usage

{{Merchant_Data|<variable1>|<variable2>|...}}


Variables

  • <merchant_name>
    • greetingtext
    • servicetypes
    • squireoffers
      • <affinity>
    • crafts
      • <item_to_craft>
        • rarity
        • quantity
        • conversationtext
        • craftcompletetext
        • ingredients
    • questchapters
      • <quest_chapter>
        • <quest>
          • greetingtext
          • completetext
          • requiredquest
          • objectives
            • objectivessummary
            • <objective_number>
              • type
              • quantity
              • fetch
              • summary


All

All sub-layers can also call |all for a list of all unique attributes

For example, Alchemist,Armourer,Fortune Teller,Goblin Merchant,Jack O' Lantern,Leathersmith,Nicholas,Squire,Surgeon,Tailor,Tavern Master,The Collector,Treasurer,Valentine,Weaponsmith,Woodsman will output a list of all items See example 6 for more information


Examples

Example 1

Squire offer at 50 affinity

{{Merchant_Data|Alchemist|squireoffers|50}}

Outputs Poor Crystal Sword,Poor Spellbook,Poor Magic Staff


Example 2

Ingredients of Rubysilver Powder

{{Merchant_Data|Alchemist|crafts|Rubysilver Powder|ingredients}}

Outputs 2-Rubysilver Ore-5


Example 3

Objective 1's Summary

{{Merchant_Data|Alchemist|questchapters|More Important Matters|A Father's Legacy|objectives|1|summary}}

Outputs Fetch Potion of Healing (1x)


Example 4

Objective 2's required quest

{{Merchant_Data|Alchemist|questchapters|More Important Matters|Golden Opportunity|requiredquest}}

Outputs A Father's Legacy


Example 5

All objective summaries

{{Merchant_Data|Alchemist|questchapters|More Important Matters|A Father's Legacy|objectives|objectivessummary}}

Outputs Fetch Potion of Healing (1x), Fetch Potion of Protection (1x), Fetch Potion of Invisibility (1x)


Example 6

All unique quests for one of Alchemist's questchapters

{{Merchant_Data|Alchemist|questchapters|More Important Matters|all}}

Outputs A Father's Legacy,Golden Opportunity,Frozen Secrets