From Dark and Darker Wiki

(Proper merchant this time.)
m (Added some potentially helpful instruction for editing the template.)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
|50=Epic Potion of Healing, Epic Potion of Protection, Epic Magic Protection Potion, Rare Potion of Clarity
|50=Epic Potion of Healing, Epic Potion of Protection, Epic Magic Protection Potion, Rare Potion of Clarity
|75=Legend Potion of Healing, Legend Potion of Protection, Legend Magic Protection Potion, Epic Potion of Clarity
|75=Legend Potion of Healing, Legend Potion of Protection, Legend Magic Protection Potion, Epic Potion of Clarity
|150=Grimsmile Ring, Fangs of Death Necklace
|100=Grimsmile Ring, Fangs of Death Necklace
}}
}}
|craftstoaffinity={{#switch:{{lc:{{{3|}}}}}
|craftstoaffinity={{#switch:{{lc:{{{3|}}}}}
Line 431: Line 431:
}}
}}
|all=Alchemist,Fortune Teller,Armourer,Goblin Merchant,Leathersmith,Surgeon,Tailor,Tavern Master,The Collector,Treasurer,Weaponsmith,Woodsman
|all=Alchemist,Fortune Teller,Armourer,Goblin Merchant,Leathersmith,Surgeon,Tailor,Tavern Master,The Collector,Treasurer,Weaponsmith,Woodsman
}}</includeonly><noinclude>
}}</includeonly><noinclude>__TOC__
 
 
<span style="font-size:24px;">'''This template stores data collected by the community.  It is ''not'' updated automatically.'''</span>
 
==Data Entry==
 
In order to contribute please click the pencil icon in the top right of the screen and select "Edit Source".  From there locate the figure of interest, adjust it, and then click "Save Changes" to finalize the change.


==Usage==
==Usage==

Latest revision as of 21:35, 12 March 2025


This template stores data collected by the community. It is not updated automatically.

Data Entry

In order to contribute please click the pencil icon in the top right of the screen and select "Edit Source". From there locate the figure of interest, adjust it, and then click "Save Changes" to finalize the change.

Usage

{{Merchant_Affinity|<merchant_name>|<variable1>|<variable2>}}

Variables

  • <merchant_name>
    • afinitytocrafts
      • <affinity>
    • craftstoaffinity
      • <item set>
    • newtradeoffers
      • <affinity>
    • tradetotal
      • <affinity>
    • tradediscount
      • <affinity>
    • servicediscount
      • <affinity>

Examples

Note, some variables may not be applicable to all merchants.

Example 1

Alchemist's newly offered crafts at affinity 25.

{{Merchant_Affinity|Alchemist|AffinityToCrafts|25}}

Outputs: Rare Potion of Healing, Rare Potion of Protection, Rare Magic Protection Potion, Uncommon Potion of Clarity

Example 2

Weaponsmith's newly offered crafts at affinity 100.

{{Merchant_Affinity|Weaponsmith|AffinityToCrafts|100}}

Outputs: Divine Staff, Divine Blade, Divine Rod, Divine Short Sword, Divine Axe, Divine Dagger, Divine Bow

Example 3

Weaponsmith's affinity when initially offering Divine Sword craft.

{{Merchant_Affinity|Weaponsmith|CraftsToAffinity|Divine Blade}}

Outputs: 100