From Dark and Darker Wiki

mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#arraydefine:squireoffers|{{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}} }}
<includeonly>{{#arraydefine:squireoffers|{{Merchant Data|{{{1}}}|squireoffers|{{{3}}}}} }}
<tr>
<tr>
<td>{{Iconbox|<!--
<td>{{Iconbox|<!--
-->{{#if:{{#pos:{{{2}}}|Potion}}<!--
            -->{{#if:{{#pos:{{{2}}}|Potion}}<!--
-->|{{#explode:{{{2}}}| |1|2}}<!--
-->|{{#explode:{{{2}}}| |1|2}}<!--
-->|{{{2}}}}}<!--
-->|{{{2}}}}}<!--
-->|size=x100px<!--
-->|size=x100px<!--
-->|rarity={{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}} }}</td>
-->|rarity={{Merchant Data|{{{1}}}|squireoffers|{{{3}}}}} }}</td>


<td>{{
<td>{{
Line 12: Line 12:
|0
|0
|{{#arraysize:squireoffers}}
|{{#arraysize:squireoffers}}
|<nowiki/>{{#vardefine:squireoffers|{{#arrayindex:squireoffers|{{#var:i}} }} }}<!--
|<nowiki/>{{#vardefine:squireoffers|{{#arrayindex:squireoffers|{{#var:i}} }} }}
-->{{Iconbox|<!--
        | affinity = {{Merchant Data|{{1}}|squireoffers|{{{3}}}| }}
-->{{#explode:{{#var:squireoffers}}|-|1}}<!--
        </td>
-->|size=x100px<!--
-->|caption=no<!--
-->|amount={{#explode:{{#var:squireoffers}}|-|0}}<!--
-->|rarity=<!--
-->{{#if:{{#explode:{{#var:squireoffers}}|-|2}}<!--
-->|{{#explode:{{#var:squireoffers}}|-|2}}<!--
-->|{{Misc Data|{{#explode:{{#var:squireoffers}}|-|1}}|Rarities}} }} }}
}}</td>
<td>[[{{{1}}}]]</td>
<td>[[{{{1}}}]]</td>
</tr>
</tr>

Revision as of 00:36, 4 April 2024


Auto creates Squire row

Example

{{SquireTable|
	{{GenerateSquireRow|Weaponsmith|Dark Cuirass}}
	{{GenerateSquireRow|Weaponsmith|Arming Sword}}
    {{GenerateSquireRow|Alchemist|Potion of Healing}}
	{{GenerateSquireRow|Armourer|Bandage}}
}}


Affinity Items Offered by the Squire
{{

#loop: i |0 |0 |

       | affinity = 
Weaponsmith
{{

#loop: i |0 |0 |

       | affinity = 
Weaponsmith
{{

#loop: i |0 |0 |

       | affinity = 
Alchemist
{{

#loop: i |0 |0 |

       | affinity = 
Armourer