From Dark and Darker Wiki

(Halved portrait size.)
(Squire displays iconbox for every item now.)
Line 1: Line 1:
<includeonly>{{#arraydefine:squireoffers|{{Merchant Data|{{{1}}}|squireoffers|all}} }}
<includeonly>{{#arraydefine:offers|{{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}} }}
<tr>
<tr>
<td><!--
<td><!--
-->{{Iconbox|{{{1}}}|size=x75px}}</td>
-->{{Iconbox|{{{1}}}|size=x75px}}</td>
<td><!--
<td><!--
-->{{{2}}}</td>
-->{{#explode:{{{2}}}|/|0}} affinity<!--
<td><!--
-->{{#vardefine:rarity|{{#explode:{{{2}}}|/|1}} }}</td>
-->{{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}}</td></tr><!--
<td><!--
 
-->{{#loop:i|0|{{#arraysize:offers}}<!--
--></includeonly><noinclude>
-->|{{#vardefine:item|{{#arrayindex:offers|{{#var:i}} }} }}<!--
Auto creates Squire row
-->{{Iconbox|{{#var:item}}|rarity={{#var:rarity}}|size=x75px}} }}</td></tr><!--
==Example==
<pre>
--></includeonly><noinclude>
{{SquireTable|
Auto creates Squire row
{{GenerateSquireRow|Armourer|0}}
==Example==
{{GenerateSquireRow|Armourer|25}}
<pre>
{{GenerateSquireRow|Armourer|50}}
{{SquireTable|
{{GenerateSquireRow|Armourer|75}}
{{GenerateSquireRow|Armourer|0}}
{{GenerateSquireRow|Armourer|125}}
{{GenerateSquireRow|Armourer|25}}
}}</pre>
{{GenerateSquireRow|Armourer|50}}
{{SquireTable|
{{GenerateSquireRow|Armourer|75}}
{{GenerateSquireRow|Armourer|0}}
{{GenerateSquireRow|Armourer|125}}
{{GenerateSquireRow|Armourer|25}}
}}</pre>
{{GenerateSquireRow|Armourer|50}}
{{SquireTable|
{{GenerateSquireRow|Armourer|75}}
{{GenerateSquireRow|Armourer|0/0}}
{{GenerateSquireRow|Armourer|125}}
{{GenerateSquireRow|Armourer|25/0}}
}}
{{GenerateSquireRow|Armourer|50/1}}
</noinclude>
{{GenerateSquireRow|Armourer|75/1}}
{{GenerateSquireRow|Armourer|125/2}}
}}
</noinclude>

Revision as of 03:14, 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
0 affinity
25 affinity
50 affinity
75 affinity
125 affinity