From Dark and Darker Wiki

m (Typo)
(Added examples. Added table types.)
Line 9: Line 9:
<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:isMonsterBarrel}}{{#vardefine:isShrine}}{{#vardefine:isCollectable}}{{#vardefine:isDoor}}
<th style="width:200px;">Name</th>
{{#switch:{{lc:{{{1|}}}}}
{{#vardefine:isLight}}{{#vardefine:isSkeletonBarrel}}{{#vardefine:isShrine}}{{#vardefine:isCollectable}}{{#vardefine:isDoor}}
|ore
{{#switch:{{lc:{{{1|}}}}}
|herb=
|destructible=
{{#vardefine:isCollectable|1}}
{{#vardefine:isDestructible|1}}
<th style="width:200px;">Name</th>
<th style="width:200px;">Impact Endurance & Resistance</th>
<th style="width:200px;">Interaction</th>
|environmental trap=
<th style="width:200px;">Interaction Count</th>
{{#vardefine:isEnvironmentalTrap|1}}
<th style="width:200px;">AP/XP</th></tr>
<th style="width:200px;">Interaction</th>
|special door
<th style="width:200px;">Effect</th>
|regular door=
|portal=
{{#vardefine:isDoor|1}}
{{#vardefine:isPortal|1}}
<th style="width:200px;">Name</th>
<th style="width:200px;">Interaction</th>
<th style="width:200px;">Unlock</th>
|ore
<th style="width:200px;">Open</th>
|herb=
<th style="width:200px;">Close</th>
{{#vardefine:isCollectable|1}}
<th style="width:200px;">AP/XP</th>
<th style="width:200px;">Interaction</th>
|torch
<th style="width:200px;">Interaction Count</th>
|lever
|special door
|roaster=
|regular door=
{{#vardefine:isLight|1}}
{{#vardefine:isDoor|1}}
<th style="width:200px;">Name</th>
<th style="width:200px;">Unlock</th>
<th style="width:200px;">Activate</th>
<th style="width:200px;">Open</th>
<th style="width:200px;">Deactivate</th>
<th style="width:200px;">Close</th>
<th style="width:200px;">AP/XP</th></tr>
|torch
|monster barrel=
|lever
{{#vardefine:isMonsterBarrel|1}}
|roaster=
<th style="width:200px;">Name</th>
{{#vardefine:isLight|1}}
<th style="width:200px;">Impact Endurance & Resistance</th>
<th style="width:200px;">Activate</th>
<th style="width:200px;">Effect</th>
<th style="width:200px;">Deactivate</th>
<th style="width:200px;">AP/XP</th></tr>
|skeleton barrel=
|shrine=
{{#vardefine:isSkeletonBarrel|1}}
{{#vardefine:isShrine|1}}
<th style="width:200px;">Impact Endurance & Resistance</th>
<th style="width:200px;">Name</th>
<th style="width:200px;">Effect</th>
<th style="width:200px;">Use Shrine</th>
|shrine=
<th style="width:200px;">Effect</th>
{{#vardefine:isShrine|1}}
<th style="width:200px;">AP/XP</th></tr></tr>}}<!--
<th style="width:200px;">Use Shrine</th>
<th style="width:200px;">Effect</th>}}
<th style="width:200px;">AP/XP</th></tr><!--


Loop over each prop
Loop over each prop
Line 60: Line 62:
-->{{#vardefine:open_duration<!--
-->{{#vardefine:open_duration<!--
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Open|Duration}}<!--
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Open|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Open Portal|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Disarm Trap|Duration}}<!--
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Use Shrine|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|Mining|Duration}}<!--
Line 89: Line 93:
-->|<span class="colorrarity2">"{{#var:localized_string}}"</span>}} }}</td><!--
-->|<span class="colorrarity2">"{{#var:localized_string}}"</span>}} }}</td><!--


Unlock / Pick Lock
Unlock Duration
--><td {{#if:{{#var:isDoor}}||style="display:none"}}><!--
--><td {{#if:{{#var:isDoor}}||style="display:none"}}><!--
-->{{#if:{{#var:unlock_duration}}|{{#var:unlock_duration}}&nbsp;s}}</td><!--
-->{{#if:{{#var:unlock_duration}}|{{#var:unlock_duration}}&nbsp;s}}</td><!--


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


Close / Turn Off / Deactivate
Close Duration
--><td {{#if:{{#var:isDoor}}{{#var:isLight}}||style="display:none"}}><!--
--><td {{#if:{{#var:isDoor}}{{#var:isLight}}||style="display:none"}}><!--
-->{{#if:{{#var:close_duration}}|{{#var:close_duration}}&nbsp;s}}</td><!--
-->{{#if:{{#var:close_duration}}|{{#var:close_duration}}&nbsp;s}}</td><!--
Line 107: Line 111:


Impact Endurance & Resistance
Impact Endurance & Resistance
--><td {{#if:{{#var:isMonsterBarrel}}||style="display:none"}}><!--
--><td {{#if:{{#var:isSkeletonBarrel}}{{#var:isDestructible}}||style="display:none"}}><!--
-->{{#if:{{#var:IE}}|<span style="color:#EEE8;">IE:</span> {{#var:IE}} }}<!--
-->{{#if:{{#var:IE}}|<span style="color:#EEE8;">IE:</span> {{#var:IE}} }}<!--
-->{{#if:{{#var:IR}}|<span style="color:#EEE8;">IR:</span> {{#var:IR}} }}</td><!--
-->{{#if:{{#var:IR}}|<span style="color:#EEE8;">IR:</span> {{#var:IR}} }}</td><!--


Effect
Effect
--><td {{#if:{{#var:isMonsterBarrel}}{{#var:isShrine}}||style="display:none"}}><!--
--><td {{#if:{{#var:isSkeletonBarrel}}{{#var:isShrine}}{{#var:isEnvironmentalTrap}}||style="display:none"}}><!--
-->{{#if:{{#var:isMonsterBarrel}}<!--
-->{{#if:{{#var:isSkeletonBarrel}}<!--
-->|{{Effects|{{#explode:{{#var:current_prop}}|,|0|2}}|{{#explode:{{#var:current_prop}}|,|1|2}} }} }}<!--
-->|{{Effects|{{#explode:{{#var:current_prop}}|,|0|2}}|{{#explode:{{#var:current_prop}}|,|1|2}} }} }}<!--
-->{{#if:{{#var:isShrine}}<!--
-->{{#if:{{#var:isShrine}}<!--
Line 126: Line 130:
--></includeonly><noinclude>
--></includeonly><noinclude>
List Props and generate rows with them
List Props and generate rows with them
==Example 1==
==Example: Shrine==
<pre>{{GeneratePropTable|Special Door}}</pre>
<pre>{{GeneratePropTable|Shrine}}</pre>
{{GeneratePropTable|Special Door}}
{{GeneratePropTable|Shrine}}
==Example 2==
==Example: Portal==
<pre>{{GeneratePropTable|Portal}}</pre>
{{GeneratePropTable|Portal}}
==Example: Special Door: Custom List 1==
<pre>{{GeneratePropTable|Special Door|list=Skull Stone Door}}</pre>
<pre>{{GeneratePropTable|Special Door|list=Skull Stone Door}}</pre>
{{GeneratePropTable|Special Door|list=Skull Stone Door}}
{{GeneratePropTable|Special Door|list=Skull Stone Door}}
==Example 3==
==Example: Special Door: Custom List 2==
<pre>{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}</pre>
<pre>{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}</pre>
{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}
{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}
</noinclude>
</noinclude>

Revision as of 03:02, 14 August 2024

List Props and generate rows with them

Example: Shrine

{{GeneratePropTable|Shrine}}
Name Use Shrine Effect AP/XP
20 s
Magical
Hold a fallen ally's soul heart to interact with this shrine. When the interaction completes, the shrine resurrects the ally.AP: 20
XP: 3
5 s
Magical
10 Move Speed Add for 60sAP: 5
XP: 3
5 s
Magical
100 Magical Base HealingAP: 5
XP: 3
5 s
Magical
15 Physical Power for 60sAP: 5
XP: 3
5 s
Magical
5% Physical Damage Reduction and 5% Magical Damage Reduction for 60sAP: 5
XP: 3

Example: Portal

{{GeneratePropTable|Portal}}
Name Interaction AP/XP
5 s
Magical
AP: 15
XP: 5
5 s
Magical
AP: 15
XP: 5
5 s
Magical
AP: 15
XP: 5
5 s
Magical
AP: 15
XP: 5

Magical
AP: 15
XP: 5

Example: Special Door: Custom List 1

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

Example: Special Door: Custom List 2

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