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.) |
m (endurance and resistance hyperlinked to mechanic page) |
||
(18 intermediate revisions by one other user not shown) | |||
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> | ||
<th style="width:200px;">Name</th> | |||
{{#vardefine:isDestructible}}{{#vardefine:isEnvironmentalTrap}}{{#vardefine:isPortal}}{{#vardefine:isLight}}{{#vardefine:isSkeletonBarrel}}{{#vardefine:isShrine}}{{#vardefine:isCollectable}}{{#vardefine:isDoor}} | |||
{{#switch:{{lc:{{{1|}}}}} | |||
|destructible= | |||
{{#vardefine:isDestructible|1}} | |||
{{#vardefine: | <th style="width:200px">[[Impact_Power#Impact_Endurance|Impact Endurance]] & [[Impact_Power#Impact_Resistance|Resistance]]</th> | ||
|environmental trap= | |||
{{#vardefine:isEnvironmentalTrap|1}} | |||
<th style="width:200px" class="tooltip">*Disarming Trap<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Stats#Regular Interaction Speed|Regular Interaction Speed]]</span></th> | |||
<th style="width:200px;"> | <th style="width:200px">Requirements</th> | ||
<th style="width:200px">Trap Effect</th> | |||
|portal= | |||
{{#vardefine:isPortal|1}} | |||
<th style="width:200px" class="tooltip">*Opening Portal<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Stats#Magical Interaction Speed|Magical Interaction Speed]]</span></th> | |||
<th style="width:200px;"> | |special door | ||
|regular door= | |||
<th style="width:200px | {{#vardefine:isDoor|1}} | ||
<th style="width:200px;">AP/XP</th></tr> | <th style="width:200px" class="tooltip">*Unlock<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Stats#Regular Interaction Speed|Regular Interaction Speed]]</span></th> | ||
<th style="width:200px">Requirements</th> | |||
<th style="width:200px" class="tooltip">*Open<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Stats#Regular Interaction Speed|Regular Interaction Speed]]</span></th> | |||
<th style="width:200px" class="tooltip">*Close<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Stats#Regular Interaction Speed|Regular Interaction Speed]]</span></th> | |||
|torch | |||
|lever | |||
|roaster= | |||
{{#vardefine:isLight|1}} | |||
<th style="width:200px" class="tooltip">*Turn On<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Stats#Regular Interaction Speed|Regular Interaction Speed]]</span></th> | |||
<th style="width:200px" class="tooltip">*Turn Off<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Stats#Regular Interaction Speed|Regular Interaction Speed]]</span></th> | |||
|skeleton barrel= | |||
{{#vardefine:isSkeletonBarrel|1}} | |||
<th style="width:200px">[[Impact_Power#Impact_Endurance|Impact Endurance]] & [[Impact_Power#Impact_Resistance|Resistance]]</th> | |||
<th style="width:200px">Effect Upon Breaking</th> | |||
|shrine= | |||
{{#vardefine:isShrine|1}} | |||
<th style="width:200px" class="tooltip">*Use Shrine<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Stats#Magical Interaction Speed|Magical Interaction Speed]]</span></th> | |||
<th style="width:200px">Shrine Effect</th>}} | |||
<th style="width:200px" class="tooltip">*AP/XP<span class="tooltiptext-left" style="left:50%; transform:translate(-50%); bottom:66%; width:100%">[[Adventure Rank|Adventure Points Page]]<br>[[Experience|Experience Points Page]]</span></th></tr><!-- | |||
Loop over each prop | Loop over each prop | ||
Line 30: | Line 50: | ||
-->|{{#vardefine:current_prop|{{#arrayindex:Props|{{#var:i}} }} }}<!-- | -->|{{#vardefine:current_prop|{{#arrayindex:Props|{{#var:i}} }} }}<!-- | ||
-->{{#vardefine:grade_type|{{Prop Data|{{#var:current_prop}}|Global|GradeType}} }}<!-- | -->{{#vardefine:grade_type|{{Prop Data|{{#var:current_prop}}|Global|GradeType}} }}<!-- | ||
-->{{#vardefine:localized_string|{{Prop Data|{{#var:current_prop}}|Global|LocalizedString}} }}<!-- | -->{{#vardefine:localized_string|{{Prop Data|{{#var:current_prop}}|Global|LocalizedString}} }}{{#if:{{#var:localized_string}}||{{#vardefine:localized_string|{{#var:current_prop}} }} }}<!-- | ||
-->{{#vardefine:AP|{{Prop Data|{{#var:current_prop}}|Global|AP}} }}<!-- | -->{{#vardefine:AP|{{Prop Data|{{#var:current_prop}}|Global|AP}}{{Prop Data|{{#var:current_prop}}|Common|AP}} }}<!-- | ||
-->{{#vardefine:XP|{{Prop Data|{{#var:current_prop}}|Global|XP}} }}<!-- | -->{{#vardefine:XP|{{Prop Data|{{#var:current_prop}}|Global|XP}}{{Prop Data|{{#var:current_prop}}|Common|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|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|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:requirements<!-- | |||
-->|{{Prop Data|{{#var:current_prop}}|Global|Interactions|Open|Requirement}}<!-- | |||
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Unlock|Requirement}}<!-- | |||
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Pick Lock|Requirement}}<!-- | |||
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Disarm Trap|Requirement}}<!-- | |||
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Mining|Requirement}}<!-- | |||
-->{{Prop Data|{{#var:current_prop}}|Global|Interactions|Activate Lever|Requirement}} }}<!-- | |||
-->{{#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}}{{Prop Data|{{#var:current_prop}}|Common|ImpactEndurance}} }}<!-- | |||
-->{{#vardefine:IR|{{Prop Data|{{#var:current_prop}}|Global|ImpactResistance}}{{Prop Data|{{#var:current_prop}}|Common|ImpactResistance}} }}<!-- | |||
Line 41: | Line 88: | ||
Use image link | Use image link | ||
-->|{{#var:current_prop}}<!-- | -->|{{#var:current_prop}}<!-- | ||
-->| | -->|size=x125px<!-- | ||
-->|caption=<!-- | -->|caption=<!-- | ||
-->{{#ifeq:HighEnd|{{#var:grade_type}}<!-- | -->{{#ifeq:HighEnd|{{#var:grade_type}}<!-- | ||
-->|<span class="colorrarity7"> | -->|<span class="colorrarity7">{{#var:localized_string}}</span><!-- | ||
-->|<span class="colorrarity2"> | -->|<span class="colorrarity2">{{#var:localized_string}}</span>}} }}</td><!-- | ||
Unlock | Unlock Duration | ||
-->{{#if:{{#var:isDoor}} | --><td {{#if:{{#var:isDoor}}||style="display:none"}}><!-- | ||
-->{{#if:{{#var:unlock_duration}}|{{#var:unlock_duration}} s}}</td><!-- | |||
Requirements | |||
--><td><!-- | --><td {{#if:{{#var:isDoor}}||style="display:none"}}><!-- | ||
-->{{# | -->{{#if:{{#var:isDoor}}<!-- | ||
-->|{{ | -->|{{#replace:{{#var:requirements}}|,|<br>}} }}<!-- | ||
--></td><!-- | |||
Open Duration | |||
--><td {{#if:{{#var:isCollectable}}{{#var:isDoor}}{{#var:isLight}}{{#var:isShrine}}{{#var:isEnvironmentalTrap}}{{#var:isPortal}}||style="display:none"}}><!-- | |||
-->{{#if:{{#var:open_duration}}|{{#var:open_duration}} s}}<!-- | |||
-->{{#if:{{#var: | -->{{#if:{{#var:isShrine}}{{#var:isPortal}}|{{#if:{{#var:open_duration}}|<br>[[Stats#Magical Interaction Speed|Magical Interaction Speed]]}} }}</td><!-- | ||
--><td><!-- | Requirements | ||
-->{{# | --><td {{#if:{{#var:isEnvironmentalTrap}}||style="display:none"}}><!-- | ||
-->|{{ | -->{{#if:{{#var:isEnvironmentalTrap}}<!-- | ||
-->|{{#replace:{{#var:requirements}}|,|<br>}} }}<!-- | |||
--></td><!-- | |||
Close Duration | |||
--><td {{#if:{{#var:isDoor}}{{#var:isLight}}||style="display:none"}}><!-- | |||
-->{{#if:{{#var:close_duration}}|{{#var:close_duration}} s}}</td><!-- | -->{{#if:{{#var:close_duration}}|{{#var:close_duration}} 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:isSkeletonBarrel}}{{#var:isDestructible}}||style="display:none"}}><!-- | |||
-->{{#if:{{#var:IE}}|<span style="color:#EEE8;">IE:</span> {{#var:IE}} }}<br><!-- | |||
-->{{#if:{{#var:IR}}|<span style="color:#EEE8;">IR:</span> {{#var:IR}} }}</td><!-- | |||
Effect | |||
--><td {{#if:{{#var:isSkeletonBarrel}}{{#var:isShrine}}{{#var:isEnvironmentalTrap}}||style="display:none"}}><!-- | |||
-->{{#if:{{#var:isSkeletonBarrel}}{{#var:isEnvironmentalTrap}}<!-- | |||
-->|{{Effects|{{#var:current_prop}} }} }}<!-- | |||
-->{{#if:{{#var:isShrine}}<!-- | |||
-->|{{Effects|{{#explode:{{Prop Data|{{#var:current_prop}}|Global|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><!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
List Props and generate rows with them | List Props and generate rows with them | ||
==Example | ==Example: Shrine== | ||
<pre>{{GeneratePropTable| | <pre>{{GeneratePropTable|Shrine}}</pre> | ||
{{GeneratePropTable| | {{GeneratePropTable|Shrine}} | ||
==Example | ==Example: Portal== | ||
<pre>{{GeneratePropTable| | <pre>{{GeneratePropTable|Portal}}</pre> | ||
{{GeneratePropTable| | {{GeneratePropTable|Portal}} | ||
==Example | ==Example: Special Door: Custom List 1== | ||
{{GeneratePropTable| | <pre>{{GeneratePropTable|Special Door|list=Skull Stone Door}}</pre> | ||
<pre>{{GeneratePropTable| | {{GeneratePropTable|Special Door|list=Skull Stone Door}} | ||
==Example: Special Door: Custom List 2== | |||
<pre>{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}</pre> | |||
{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}} | |||
</noinclude> | </noinclude> |
Latest revision as of 05:05, 6 September 2024
List Props and generate rows with them
Example: Shrine
{{GeneratePropTable|Shrine}}
Name | *Use ShrineMagical Interaction Speed | Shrine Effect | *AP/XPAdventure Points Page Experience Points Page |
---|---|---|---|
20 s Magical Interaction Speed | 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 Interaction Speed | 10 Move Speed Add for 60s | AP: 5 XP: 3 | |
5 s Magical Interaction Speed | 100 Magical Base Healing | AP: 5 XP: 3 | |
5 s Magical Interaction Speed | 15 Physical Power for 60s | AP: 5 XP: 3 | |
5 s Magical Interaction Speed | 5% Physical Damage Reduction and 5% Magical Damage Reduction for 60s | AP: 5 XP: 3 |
Example: Portal
{{GeneratePropTable|Portal}}
Name | *Opening PortalMagical Interaction Speed | *AP/XPAdventure Points Page Experience Points Page |
---|---|---|
5 s Magical Interaction Speed | AP: 15 XP: 5 | |
5 s Magical Interaction Speed | AP: 15 XP: 5 | |
5 s Magical Interaction Speed | AP: 15 XP: 5 | |
5 s Magical Interaction Speed | AP: 15 XP: 5 | |
AP: 15 XP: 5 |
Example: Special Door: Custom List 1
{{GeneratePropTable|Special Door|list=Skull Stone Door}}
Name | *UnlockRegular Interaction Speed | Requirements | *OpenRegular Interaction Speed | *CloseRegular Interaction Speed | *AP/XPAdventure Points Page Experience Points Page |
---|---|---|---|---|---|
3 s | Player has Skull Key | AP: 25 |
Example: Special Door: Custom List 2
{{GeneratePropTable|Special Door|list=Skull Stone Door,Golden Door}}
Name | *UnlockRegular Interaction Speed | Requirements | *OpenRegular Interaction Speed | *CloseRegular Interaction Speed | *AP/XPAdventure Points Page Experience Points Page |
---|---|---|---|---|---|
3 s | Player has Skull Key | AP: 25 | |||
5 s | Player has Golden Key | 3 s | 0.5 s | AP: 15 |