From Dark and Darker Wiki

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