From Dark and Darker Wiki

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