From Dark and Darker Wiki

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