From Dark and Darker Wiki
(Activating template.) Tag: Reverted |
(Added aggressive notice about missing values for Artifact chances.) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
--><includeonly>{{#vardefine:active}}<!-- | --><includeonly>{{#vardefine:active}}<!-- | ||
Rarity flags for whether or not the item has a drop table for that rarity. | Rarity flags for whether or not the item has a drop table for that rarity. | ||
-->{{#vardefine:Junk|<!-- | |||
-->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 0<!-- | |||
-->|1<!-- Var Junk is set to 1 if the DropTable exists. | |||
-->{{#if:{{#var:active}}<!-- First DropTable that exists is set to active. | |||
-->||{{#vardefine:active|Junk}} }} }} }}<!-- | |||
-->{{#vardefine:Poor|<!-- | -->{{#vardefine:Poor|<!-- | ||
-->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 1<!-- | -->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 1<!-- | ||
-->|1<!-- | -->|1<!-- | ||
-->{{#if:{{#var:active}}<!-- | -->{{#if:{{#var:active}}<!-- | ||
-->||{{#vardefine:active|Poor}} }} }} }}<!-- | -->||{{#vardefine:active|Poor}} }} }} }}<!-- | ||
-->{{#vardefine:Common|<!-- | -->{{#vardefine:Common|<!-- | ||
Line 20: | Line 25: | ||
-->|1<!-- | -->|1<!-- | ||
-->{{#if:{{#var:active}}<!-- | -->{{#if:{{#var:active}}<!-- | ||
-->||{{#vardefine:active|Uncommon}} }} | -->||{{#vardefine:active|Uncommon}} }} }} }}<!-- | ||
-->{{#vardefine:Rare|<!-- | -->{{#vardefine:Rare|<!-- | ||
-->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 4<!-- | -->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 4<!-- | ||
Line 37: | Line 42: | ||
-->||{{#vardefine:active|Legendary}} }} }} }}<!-- | -->||{{#vardefine:active|Legendary}} }} }} }}<!-- | ||
-->{{#vardefine:Unique|<!-- | -->{{#vardefine:Unique|<!-- | ||
-->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 7<!-- | |||
-->|1<!-- | |||
-->{{#if:{{#var:active}}<!-- | |||
-->||{{#vardefine:active|Unique}} }} }} }}<!-- | |||
-->{{#vardefine:Artifact|<!-- | |||
If the item has a unique weapon variant check the DropTable for it. Else check the DropTable for the item itself. | If the item has a unique weapon variant check the DropTable for it. Else check the DropTable for the item itself. | ||
-->{{#ifexist:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}} | -->{{#ifexist:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}} 8|{{{1|{{PAGENAME}}}}} 8}}<!-- | ||
-->|1<!-- | -->|1<!-- | ||
-->{{#if:{{#var:active}}<!-- | -->{{#if:{{#var:active}}<!-- | ||
-->||{{#vardefine:active| | -->||{{#vardefine:active|Artifact}} }} }} }}<!-- | ||
If the item has no drop tables, | If the item has no drop tables, display nothing. | ||
-->{{#if:{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}<!-- | --><span style="width:100%; {{#if:{{#var:Junk}}{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}{{#var:Artifact}}<!-- | ||
-->|display:inline-block"><h2>Dropped By</h2><!-- | |||
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding: | -->|display:none">}}<!-- | ||
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:5px; font-weight:bold; margin:9px; border-radius:10px;">Drop Tables last updated for {{#explode:{{:TODO|DropTables}}|$|0|2}}</p><br><!-- | |||
-->{{#if:{{#var:Junk}}<!-- If the item has a drop table for the rarity, display the tab for it. | |||
-->|{{TabToggle|Junk|Junk|active={{#ifeq:Junk|{{#var:active}}|yes|no}} }} }}<!-- | |||
-->{{#if:{{#var:Poor}}<!-- If the item has a drop table for the rarity, display the tab for it. | -->{{#if:{{#var:Poor}}<!-- If the item has a drop table for the rarity, display the tab for it. | ||
-->|{{TabToggle|Poor|Poor|active={{#ifeq:Poor|{{#var:active}}|yes|no}} }} }}<!-- | -->|{{TabToggle|Poor|Poor|active={{#ifeq:Poor|{{#var:active}}|yes|no}} }} }}<!-- | ||
Line 61: | Line 74: | ||
-->{{#if:{{#var:Unique}}<!-- | -->{{#if:{{#var:Unique}}<!-- | ||
-->|{{TabToggle|Unique|Unique|active={{#ifeq:Unique|{{#var:active}}|yes|no}} }} }}<!-- | -->|{{TabToggle|Unique|Unique|active={{#ifeq:Unique|{{#var:active}}|yes|no}} }} }}<!-- | ||
-->{{#if:{{#var:Artifact}}<!-- | |||
-->|{{TabToggle|Artifact|Artifact|active={{#ifeq:Artifact|{{#var:active}}|yes|no}} }} }}<!-- | |||
-->{{#if:{{#var:Junk}}<!-- | |||
-->|<div class="Junk-data" style="width:75%;{{#ifeq:Junk|{{#var:active}}|| display:none;}}"><!-- | |||
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 0}}</div>}}<!-- | |||
-->{{#if:{{#var:Poor}}<!-- | -->{{#if:{{#var:Poor}}<!-- | ||
-->|<div class="Poor-data" style="width: | -->|<div class="Poor-data" style="width:75%;{{#ifeq:Poor|{{#var:active}}|| display:none;}}"><!-- | ||
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 1}}</div>}}<!-- | -->{{:DropTable:{{{1|{{PAGENAME}}}}} 1}}</div>}}<!-- | ||
-->{{#if:{{#var:Common}}<!-- | -->{{#if:{{#var:Common}}<!-- | ||
-->|<div class="Common-data"style="width: | -->|<div class="Common-data"style="width:75%;{{#ifeq:Common|{{#var:active}}|| display:none;}}"><!-- | ||
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 2}}</div>}}<!-- | -->{{:DropTable:{{{1|{{PAGENAME}}}}} 2}}</div>}}<!-- | ||
-->{{#if:{{#var:Uncommon}}<!-- | -->{{#if:{{#var:Uncommon}}<!-- | ||
-->|<div class="Uncommon-data"style="width: | -->|<div class="Uncommon-data"style="width:75%;{{#ifeq:Uncommon|{{#var:active}}|| display:none;}}"><!-- | ||
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 3}}</div>}}<!-- | -->{{:DropTable:{{{1|{{PAGENAME}}}}} 3}}</div>}}<!-- | ||
-->{{#if:{{#var:Rare}}<!-- | -->{{#if:{{#var:Rare}}<!-- | ||
-->|<div class="Rare-data"style="width: | -->|<div class="Rare-data"style="width:75%;{{#ifeq:Rare|{{#var:active}}|| display:none;}}"><!-- | ||
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 4}}</div>}}<!-- | -->{{:DropTable:{{{1|{{PAGENAME}}}}} 4}}</div>}}<!-- | ||
-->{{#if:{{#var:Epic}}<!-- | -->{{#if:{{#var:Epic}}<!-- | ||
-->|<div class="Epic-data"style="width: | -->|<div class="Epic-data"style="width:75%;{{#ifeq:Epic|{{#var:active}}|| display:none;}}"><!-- | ||
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 5}}</div>}}<!-- | -->{{:DropTable:{{{1|{{PAGENAME}}}}} 5}}</div>}}<!-- | ||
-->{{#if:{{#var:Legendary}}<!-- | -->{{#if:{{#var:Legendary}}<!-- | ||
-->|<div class="Legendary-data"style="width: | -->|<div class="Legendary-data"style="width:75%;{{#ifeq:Legendary|{{#var:active}}|| display:none;}}"><!-- | ||
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 6}}</div>}}<!-- | -->{{:DropTable:{{{1|{{PAGENAME}}}}} 6}}</div>}}<!-- | ||
-->{{#if:{{#var:Unique}}<!-- | -->{{#if:{{#var:Unique}}<!-- | ||
-->|<div class="Unique-data"style="width: | -->|<div class="Unique-data"style="width:75%;{{#ifeq:Unique|{{#var:active}}|| display:none;}}"><!-- | ||
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 7}}</div>}}<!-- | |||
-->{{#if:{{#var:Artifact}}<!-- | |||
-->|<div class="Artifact-data"style="width:75%;{{#ifeq:Artifact|{{#var:active}}|| display:none;}}"><!-- | |||
If the item has a artifact variant display the DropTable for it. Else display the DropTable for the item itself. | If the item has a artifact variant display the DropTable for it. Else display the DropTable for the item itself. | ||
--><b style="font-size:36px">This table is missing values for [[Skull Key]] and [[Mystical Gem]], it is otherwise correct.</b><!-- | |||
-->{{:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}<!-- | -->{{:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}<!-- | ||
-->|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}} 8<!-- | |||
-->|{{{1|{{PAGENAME}}}}} 8}}}}</div>}}</span><!-- | |||
--></includeonly> | --><span style="font-size:18px; width:100%; {{#if:{{#var:Junk}}{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}{{#var:Artifact}}<!-- | ||
-->|display:none"><!-- | |||
-->|display:inline-block"><h2>Dropped By</h2>}}<!-- | |||
--><p style="padding:20px">Nothing. Currently no drop source provides this item.</p></span><!-- | |||
--></includeonly><noinclude> | |||
=Generate Drop Tables= | =Generate Drop Tables= | ||
==Example== | |||
<pre>{{GenerateDropTables}}</pre> | <pre>{{GenerateDropTables|Cinder}}</pre> | ||
{{GenerateDropTables|Cinder}} | |||
==Example | ==Example== | ||
<pre>{{GenerateDropTables| | <pre>{{GenerateDropTables|Halberd}}</pre> | ||
{{GenerateDropTables|Halberd}} | |||
==Example== | |||
==Example | |||
<pre>{{GenerateDropTables|Armet}}</pre> | <pre>{{GenerateDropTables|Armet}}</pre> | ||
{{GenerateDropTables|Armet}} | {{GenerateDropTables|Armet}} | ||
==Example | ==Example== | ||
Only displays the rarity it can drop | Only displays the rarity it can drop | ||
<pre>{{GenerateDropTables|Bone}}</pre> | <pre>{{GenerateDropTables|Bone}}</pre> | ||
{{GenerateDropTables|Bone}} | {{GenerateDropTables|Bone}} | ||
==Example | ==Example== | ||
Displays that no sources drop the item. The intention is to display true negatives and avoid the confusion of users wondering if no dropped by section is a wiki error. | |||
<pre>{{GenerateDropTables|Potion of Luck}}</pre> | <pre>{{GenerateDropTables|Potion of Luck}}</pre> | ||
{{GenerateDropTables|Potion of Luck}} | {{GenerateDropTables|Potion of Luck}} | ||
</noinclude> | </noinclude> |
Latest revision as of 08:10, 15 March 2025
Generate Drop Tables
Example
{{GenerateDropTables|Cinder}}
Dropped By
Drop Tables last updated for Work in Progress
Artifact
This table is missing values for Skull Key and Mystical Gem, it is otherwise correct.
NameSorted by total expected value in descending order TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count) | Type | Item count | Probability of 1+ drops per instance1-(1-probability per roll)(loot table roll count) Some loot tables are rolled multiple times per instance (i.e. monster kill/container interaction/loose loot generation). For further information, please reference the loot tables on the associated source page. |
---|---|---|---|
Monster | 1-3 | 0.4992% | |
Monster | 1-3 | 0.4992% | |
Loose Loot | 1 | 0.0714% | |
Loose Loot | 1 | 0.0038% |
Example
{{GenerateDropTables|Halberd}}
Dropped By
Drop Tables last updated for Work in Progress
Common
Uncommon
Rare
Epic
Legendary
Artifact
NameSorted by total expected value in descending order TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count) | Type | Item count | Probability of 1+ drops per instance1-(1-probability per roll)(loot table roll count) Some loot tables are rolled multiple times per instance (i.e. monster kill/container interaction/loose loot generation). For further information, please reference the loot tables on the associated source page. |
---|---|---|---|
Monster | 1 | 3.9375% | |
Loose Loot | 1 | 2.2222% | |
Monster | 1 | 1.8125% | |
Monster | 1-2 | 1.7777% | |
Containers | 1-3 | 0.8207% | |
Containers | 1-3 | 0.8207% | |
Containers | 1-3 | 0.8193% | |
Containers | 1-3 | 0.8193% | |
Loose Loot | 1 | 0.6178% | |
Loose Loot | 1 | 0.6178% | |
Monster | 1 | 0.5431% | |
Containers | 1-2 | 0.4969% | |
Containers | 1-2 | 0.4969% | |
Containers | 1-2 | 0.4084% | |
Containers | 1-2 | 0.4084% | |
Monster | 1 | 0.25% | |
Containers | 1-3 | 0.2398% | |
Containers | 1-3 | 0.2398% | |
Monster | 1 | 0.1066% |
Example
{{GenerateDropTables|Armet}}
Dropped By
Drop Tables last updated for Work in Progress
Poor
Common
Uncommon
Rare
Epic
Legendary
Unique
NameSorted by total expected value in descending order TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count) | Type | Item count | Probability of 1+ drops per instance1-(1-probability per roll)(loot table roll count) Some loot tables are rolled multiple times per instance (i.e. monster kill/container interaction/loose loot generation). For further information, please reference the loot tables on the associated source page. |
---|---|---|---|
Containers | 1-2 | 0.5874% |
Example
Only displays the rarity it can drop
{{GenerateDropTables|Bone}}
Dropped By
Drop Tables last updated for Work in Progress
Common
NameSorted by total expected value in descending order TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count) | Type | Item count | Probability of 1+ drops per instance1-(1-probability per roll)(loot table roll count) Some loot tables are rolled multiple times per instance (i.e. monster kill/container interaction/loose loot generation). For further information, please reference the loot tables on the associated source page. |
---|---|---|---|
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% | |
Monster | 1 | 6.6667% |
Example
Displays that no sources drop the item. The intention is to display true negatives and avoid the confusion of users wondering if no dropped by section is a wiki error.
{{GenerateDropTables|Potion of Luck}}
Dropped By
Nothing. Currently no drop source provides this item.