From Dark and Darker Wiki
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:squireoffers|{{Merchant Data|{{{1}}}|squireoffers|{{{ | <includeonly>{{#arraydefine:squireoffers|{{Merchant Data|{{{1}}}|squireoffers|{{{3}}}}} }} | ||
<tr> | <tr> | ||
<td>{{Iconbox|<!-- | <td>{{Iconbox|<!-- | ||
-->{{#if:{{#pos:{{{2}}}|Potion}}<!-- | |||
-->|{{#explode:{{{2}}}| |1|2}}<!-- | -->|{{#explode:{{{2}}}| |1|2}}<!-- | ||
-->|{{{2}}}}}<!-- | -->|{{{2}}}}}<!-- | ||
-->|size=x100px<!-- | -->|size=x100px<!-- | ||
-->|rarity={{Merchant Data|{{{1}}}|squireoffers|{{{ | -->|rarity={{Merchant Data|{{{1}}}|squireoffers|{{{3}}}}} }}</td> | ||
<td>{{ | <td>{{ | ||
Line 12: | Line 12: | ||
|0 | |0 | ||
|{{#arraysize:squireoffers}} | |{{#arraysize:squireoffers}} | ||
|<nowiki/>{{#vardefine:squireoffers|{{#arrayindex:squireoffers|{{#var:i}} }} }} | |<nowiki/>{{#vardefine:squireoffers|{{#arrayindex:squireoffers|{{#var:i}} }} }} | ||
| affinity = {{Merchant Data|{{1}}|squireoffers|{{{3}}}| }} | |||
</td> | |||
<td>[[{{{1}}}]]</td> | <td>[[{{{1}}}]]</td> | ||
</tr> | </tr> |
Revision as of 00:36, 4 April 2024
Auto creates Squire row
Example
{{SquireTable| {{GenerateSquireRow|Weaponsmith|Dark Cuirass}} {{GenerateSquireRow|Weaponsmith|Arming Sword}} {{GenerateSquireRow|Alchemist|Potion of Healing}} {{GenerateSquireRow|Armourer|Bandage}} }}
Affinity | Items Offered by the Squire | |
---|---|---|
{{
#loop: i |0 |0 | | affinity = |
Weaponsmith | |
{{
#loop: i |0 |0 | | affinity = |
Weaponsmith | |
{{
#loop: i |0 |0 | | affinity = |
Alchemist | |
{{
#loop: i |0 |0 | | affinity = |
Armourer |