From Dark and Darker Wiki
(Halved portrait size.) |
(Squire displays iconbox for every item now.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine: | <includeonly>{{#arraydefine:offers|{{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}} }} | ||
<tr> | <tr> | ||
<td><!-- | |||
-->{{Iconbox|{{{1}}}|size=x75px}}</td> | |||
<td><!-- | |||
-->{{#explode:{{{2}}}|/|0}} affinity<!-- | |||
-->{{#vardefine:rarity|{{#explode:{{{2}}}|/|1}} }}</td> | |||
<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 | ||
==Example== | |||
<pre> | |||
{{SquireTable| | |||
{{GenerateSquireRow|Armourer|0}} | |||
{{GenerateSquireRow|Armourer|25}} | |||
}}</pre> | {{GenerateSquireRow|Armourer|50}} | ||
{{SquireTable| | {{GenerateSquireRow|Armourer|75}} | ||
{{GenerateSquireRow|Armourer|125}} | |||
}}</pre> | |||
{{SquireTable| | |||
{{GenerateSquireRow|Armourer|0/0}} | |||
{{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 |