From Dark and Darker Wiki

mNo edit summary
mNo edit summary
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#arraydefine:ingredients|{{Merchant Data|{{{1}}}|Crafts|{{{2}}}|ingredients}} }}
<includeonly>{{#arraydefine:offers|{{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}} }}
<tr>
<tr>
<td>{{Iconbox|<!--
<td><!--
-->|size=x100px<!--
-->{{Iconbox|{{{1}}}|size=x125px|caption=<span style="color:#eee8;">{{{1}}}<br>{{#explode:{{{2}}}|/|0}}&nbsp;Affinity</span>}}<br><!--
-->|rarity={{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}} }}</td>
-->{{#vardefine:rarity|{{#explode:{{{2}}}|/|1}} }}<!--
 
-->{{#switch:{{#var:rarity}}
<td>{{
|0=<span class="colorrarity0">Squire offers junk items</span>
#loop: i
|1=<span class="colorrarity1">Squire offers poor items</span>
|0
|2=<span class="colorrarity2">Squire offers common items</span>}}</td>
|{{#arraysize:squireoffers}}
<td><!--
|<nowiki/>{{#vardefine:squireoffers|{{#arrayindex:squireoffers|{{#var:i}} }} }}<!--
-->{{#loop:i|0|{{#arraysize:offers}}<!--
-->{{Iconbox|<!--
-->|{{#vardefine:item|{{#arrayindex:offers|{{#var:i}} }} }}<!--
-->{{#explode:{{#var:squireoffers}}|-|1}}<!--
-->{{Iconbox<!--
-->|size=x100px<!--
-->|{{#var:item}}<!--
-->|caption=no<!--
-->|rarity={{#var:rarity}}<!--
-->|amount={{#explode:{{#var:squireoffers}}|-|0}}<!--
-->|size=x100px<!--
-->|rarity=<!--
-->|caption=<span class="colorrarity{{#var:rarity}}">{{#var:item}}</span>}} }}</td></tr><!--
-->{{#if:{{#explode:{{#var:squireoffers}}|-|2}}<!--
-->|{{#explode:{{#var:squireoffers}}|-|2}}<!--
--></includeonly><noinclude>
-->|{{Misc Data|{{#explode:{{#var:squireoffers}}|-|1}}|Rarities}} }} }}
Auto creates Squire row
}}</td>
==Example==
<td>[[{{{1}}}]]</td>
<pre>
</tr>
{{SquireTable|
</includeonly>
{{GenerateSquireRow|Armourer|0}}
<noinclude>
{{GenerateSquireRow|Armourer|25}}
Auto creates Squire row
{{GenerateSquireRow|Armourer|50}}
==Example==
{{GenerateSquireRow|Armourer|75}}
<pre>
{{GenerateSquireRow|Armourer|125}}
{{SquireTable|
}}</pre>
{{GenerateSquireRow|Weaponsmith|Falchion of Honor}}
{{SquireTable|
{{GenerateSquireRow|Weaponsmith|Sterling Blade}}
{{GenerateSquireRow|Armourer|0/0}}
{{GenerateSquireRow|Armourer|Gold Plate}}
{{GenerateSquireRow|Armourer|25/0}}
}}</pre>
{{GenerateSquireRow|Armourer|50/1}}
{{SquireTable|
{{GenerateSquireRow|Armourer|75/1}}
{{GenerateSquireRow|Weaponsmith|Dark Cuirass}}
{{GenerateSquireRow|Armourer|125/2}}
{{GenerateSquireRow|Weaponsmith|Arming Sword}}
}}
    {{GenerateSquireRow|Alchemist|Potion of Healing}}
</noinclude>
{{GenerateSquireRow|Armourer|Bandage}}
}}
</noinclude>

Latest revision as of 04:46, 12 April 2024

Auto creates Squire row ==Example==

	{{SquireTable|
		{{GenerateSquireRow|Armourer|0}}
		{{GenerateSquireRow|Armourer|25}}
		{{GenerateSquireRow|Armourer|50}}
		{{GenerateSquireRow|Armourer|75}}
		{{GenerateSquireRow|Armourer|125}}
	}}


Affinity Items Offered by the Squire

Squire offers junk items

Squire offers junk items

Squire offers poor items

Squire offers poor items

Squire offers common items