From Dark and Darker Wiki

m (sectionalized content)
m (6th example, added info about how |all works)
Line 1,731: Line 1,731:
|all=Alchemist,Armourer,Fortune Teller,Goblin Merchant,Jack O' Lantern,Leathersmith,Nicholas,Squire,Surgeon,Tailor,Tavern Master,The Collector,Treasurer,Valentine,Weaponsmith,Woodsman
|all=Alchemist,Armourer,Fortune Teller,Goblin Merchant,Jack O' Lantern,Leathersmith,Nicholas,Squire,Surgeon,Tailor,Tavern Master,The Collector,Treasurer,Valentine,Weaponsmith,Woodsman
|default=}}</includeonly><noinclude>
|default=}}</includeonly><noinclude>
==Usage==
<pre>{{Merchant_Data|<variable1>|<variable2>|...}}</pre>


==Variables==
==Variables==
*name
*<merchant_name>
**greetingtext
**greetingtext
**servicetypes
**servicetypes
Line 1,760: Line 1,764:




==Usage==
==All==
<pre>{{Merchant_Data|<variable1>|<variable2>|...}}</pre>
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
See example 6 for more information




Line 1,797: Line 1,803:
<pre style="width:fit-content;">{{Merchant_Data|Alchemist|questchapters|More Important Matters|A Father's Legacy|objectives|objectivessummary}}</pre>
<pre style="width:fit-content;">{{Merchant_Data|Alchemist|questchapters|More Important Matters|A Father's Legacy|objectives|objectivessummary}}</pre>
Outputs {{Merchant_Data|Alchemist|questchapters|More Important Matters|A Father's Legacy|objectives|objectivessummary}}
Outputs {{Merchant_Data|Alchemist|questchapters|More Important Matters|A Father's Legacy|objectives|objectivessummary}}
===Example 6===
All unique quests for one of Alchemist's questchapters
<pre style="width:fit-content;">{{Merchant_Data|Alchemist|questchapters|More Important Matters|all}}</pre>
Outputs {{Merchant_Data|Alchemist|questchapters|More Important Matters|all}}
</noinclude>
</noinclude>

Revision as of 02: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