From Dark and Darker Wiki

(Basic generate table prop. Complete for the following types: Torches, Roasters, Regular Doors, Special Doors. Needs work for the other types.)
 
(Fleshed our table cells for Monster Barrels, Ores, Herbs, Shrines.)
Line 3: Line 3:
Get the list of props for which to generate rows
Get the list of props for which to generate rows
-->{{#arraydefine:Props|{{Prop Data|AllList|{{{1|}}}}} }}<!--
-->{{#arraydefine:Props|{{Prop Data|AllList|{{{1|}}}}} }}<!--
If a manual list was provided, use that instead
-->{{#if:{{{list|}}}|{{#arraydefine:Props|{{{list}}} }} }}<!--


Create table header row -->
Create table header row -->
<table class="wikitable sortable jquery-tablesorter stripedtable" cellspacing="0" style="text-align:center; vertical-align:middle;">
<table class="wikitable sortable jquery-tablesorter stripedtable" cellspacing="0" style="text-align:center; vertical-align:middle;">
<tr>
<tr>
{{#vardefine:isLight}}
{{#vardefine:isLight}}{{#vardefine:isMonsterBarrel}}{{#vardefine:isShrine}}{{#vardefine:isCollectable}}{{#vardefine:isDoor}}
{{#vardefine:isDoor}}
{{#switch:{{lc:{{{1|}}}}}
{{#switch:{{lc:{{{1|}}}}}
|ore
|herb=
{{#vardefine:isCollectable|1}}
<th style="width:200px;">Name</th>
<th style="width:200px;">Interaction</th>
<th style="width:200px;">Interaction Count</th>
<th style="width:200px;">AP/XP</th></tr>
|special door
|regular door=
{{#vardefine:isDoor|1}}
<th style="width:200px;">Name</th>
<th style="width:200px;">Unlock</th>
<th style="width:200px;">Open</th>
<th style="width:200px;">Close</th>
<th style="width:200px;">AP/XP</th>
|torch
|torch
|lever
|roaster=
|roaster=
{{#vardefine:isLight|1}}
{{#vardefine:isLight|1}}
Line 17: Line 34:
<th style="width:200px;">Deactivate</th>
<th style="width:200px;">Deactivate</th>
<th style="width:200px;">AP/XP</th></tr>
<th style="width:200px;">AP/XP</th></tr>
|special door
|monster barrel=
|regular door=
{{#vardefine:isMonsterBarrel|1}}
{{#vardefine:isDoor|1}}
<th style="width:200px;">Name</th>
<th style="width:200px;">Impact Endurance & Resistance</th>
<th style="width:200px;">Effect</th>
<th style="width:200px;">AP/XP</th></tr>
|shrine=
{{#vardefine:isShrine|1}}
<th style="width:200px;">Name</th>
<th style="width:200px;">Name</th>
<th style="width:200px;">Unlock</th>
<th style="width:200px;">Use Shrine</th>
<th style="width:200px;">Activate</th>
<th style="width:200px;">Effect</th>
<th style="width:200px;">Close</th>
<th style="width:200px;">AP/XP</th></tr></tr>}}<!--
<th style="width:200px;">AP/XP</th></tr>}}<!--


Loop over each prop
Loop over each prop
Line 33: Line 54:
-->{{#vardefine:AP|{{Prop Data|{{#var:current_prop}}|Global|AP}} }}<!--
-->{{#vardefine:AP|{{Prop Data|{{#var:current_prop}}|Global|AP}} }}<!--
-->{{#vardefine:XP|{{Prop Data|{{#var:current_prop}}|Global|XP}} }}<!--
-->{{#vardefine:XP|{{Prop Data|{{#var:current_prop}}|Global|XP}} }}<!--
-->{{#vardefine:unlock_duration<!--
Open Duration, or Mining Duration, or Harvesting Duration, or...
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Unlock|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Pick Lock|Duration}} }}<!--
-->{{#vardefine:open_duration<!--
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Open|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Use Shrine|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Mining|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Harvesting|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Loot|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Activate Lever|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Turn On|Duration}} }}<!--
-->{{#vardefine:close_duration<!--
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Close|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Deactivate Lever|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Turn Off|Duration}} }}<!--
-->{{#vardefine:IE|{{Prop Data|{{#var:current_prop}}|Global|ImpactEndurance}} }}<!--
-->{{#vardefine:IR|{{Prop Data|{{#var:current_prop}}|Global|ImpactResistance}} }}<!--




Line 46: Line 85:
-->|2}}<!--
-->|2}}<!--
-->|caption=<!--
-->|caption=<!--
-->{{#ifeq:HighEnd|{{#var:grade_type}}<!--
-->{{#ifeq:HighEnd|{{#var:grade_type}}<!--
-->|<span class="colorrarity7">"{{#var:localized_string}}"</span><!--
-->|<span class="colorrarity7">"{{#var:localized_string}}"</span><!--
-->|<span class="colorrarity2">"{{#var:localized_string}}"</span>}} }}</td><!--
-->|<span class="colorrarity2">"{{#var:localized_string}}"</span>}} }}</td><!--


Unlock
Unlock / Pick Lock
-->{{#if:{{#var:isDoor}}<!--
--><td {{#if:{{#var:isDoor}}||style="display:none"}}><!--
-->|<td><!--
-->{{#if:{{#var:unlock_duration}}|{{#var:unlock_duration}}&nbsp;s}}</td><!--
-->{{#vardefine:unlock_duration<!--
 
Open Duration, or Mining Duration, or Harvesting Duration, or...
Open / Use Shrine / Mining / Harvesting / ...
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Unlock|Duration}}<!--
--><td {{#if:{{#var:isCollectable}}{{#var:isDoor}}{{#var:isLight}}{{#var:isShrine}}||style="display:none"}}><!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Pick Lock|Duration}} }}<!--
-->{{#if:{{#var:open_duration}}|{{#var:open_duration}}&nbsp;s}}<!--
-->{{#if:{{#var:unlock_duration}}|{{#var:unlock_duration}}&nbsp;s}}</td>}}<!--
-->{{#if:{{#var:isShrine}}|<br>{{Prop Data|{{#var:current_prop}}|Global|Interactions|Use Shrine|Types}} }}</td><!--


Open
Close / Turn Off / Deactivate
--><td><!--
--><td {{#if:{{#var:isDoor}}{{#var:isLight}}||style="display:none"}}><!--
-->{{#vardefine:open_duration<!--
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Open|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Mining|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Harvesting|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Loot|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Activate Lever|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Turn On|Duration}} }}<!--
-->{{#if:{{#var:open_duration}}|{{#var:open_duration}}&nbsp;s}}</td><!--
Close
--><td><!--
-->{{#vardefine:close_duration<!--
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Close|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Deactivate Level|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Turn Off|Duration}} }}<!--
-->{{#if:{{#var:close_duration}}|{{#var:close_duration}}&nbsp;s}}</td><!--
-->{{#if:{{#var:close_duration}}|{{#var:close_duration}}&nbsp;s}}</td><!--
Interaction Count
--><td {{#if:{{#var:isCollectable}}||style="display:none"}}><!--
-->{{Prop Data|{{#var:current_prop}}|Global|InteractionCount}}</td><!--
Impact Endurance & Resistance
--><td {{#if:{{#var:isMonsterBarrel}}||style="display:none"}}><!--
-->{{#if:{{#var:IE}}|<span style="color:#EEE8;">IE:</span> {{#var:IE}} }}<!--
-->{{#if:{{#var:IR}}|<span style="color:#EEE8;">IR:</span> {{#var:IR}} }}</td><!--
Effect
--><td {{#if:{{#var:isMonsterBarrel}}{{#var:isShrine}}||style="display:none"}}><!--
-->{{#if:{{#var:isMonsterBarrel}}<!--
-->|{{Effects|{{#explode:{{#var:current_prop}}|,|0|2}}|{{#explode:{{#var:current_prop}}|,|1|2}} }} }}<!--
-->{{#if:{{#var:isShrine}}<!--
-->|{{Effects|{{#explode:{{Prop Data|{{#var:current_prop}}|Abilities|All}}|,|0|2}} }} }}<!--
--></td><!--


AP/XP
AP/XP
--><td>{{#if:{{#var:AP}}|<span style="color:#EEE8;">AP:</span> {{#var:AP}} }}<br><!--
--><td><!--
-->{{#if:{{#var:AP}}|<span style="color:#EEE8;">AP:</span> {{#var:AP}} }}<br><!--
-->{{#if:{{#var:XP}}|<span style="color:#EEE8;">XP:</span> {{#var:XP}} }}</td></tr>}}</table><!--
-->{{#if:{{#var:XP}}|<span style="color:#EEE8;">XP:</span> {{#var:XP}} }}</td></tr>}}</table><!--


Line 87: Line 130:
{{GeneratePropTable|Special Door}}
{{GeneratePropTable|Special Door}}
==Example 2==
==Example 2==
<pre>{{GeneratePropTable|Torch}}</pre>
<pre>{{GeneratePropTable|Special Door|list=Skull Stone Door}}</pre>
{{GeneratePropTable|Torch}}
{{GeneratePropTable|Special Door|list=Skull Stone Door}}
==Example 3==
==Example 3==
{{GeneratePropTable|Roaster}}
<pre>{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}</pre>
<pre>{{GeneratePropTable|Roaster}}</pre>
{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}
</noinclude>
</noinclude>

Revision as of 02:12, 12 August 2024

List Props and generate rows with them

Example 1

{{GeneratePropTable|Special Door}}
Name Unlock Open Close AP/XP
3 s0.5 s
3 s0.5 s
3 s0.5 s
3 s0.5 s
5 s3 s0.5 sAP: 15
5 s
5 s3 s0.5 sAP: 15
5 s3 s0.5 sAP: 15
3 sAP: 25

Example 2

{{GeneratePropTable|Special Door|list=Skull Stone Door}}
Name Unlock Open Close AP/XP
3 sAP: 25

Example 3

{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}
Name Unlock Open Close AP/XP
3 sAP: 25
5 s3 s0.5 sAP: 15