From Dark and Darker Wiki

m (Fixed missing noinclude tag)
Tag: Manual revert
(Updated status notification to use DropTable status instead of LootTable status.)
Line 46: Line 46:
-->{{#if:{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}<!--
-->{{#if:{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}<!--
-->|<span style="width:100%; display:inline-block;"><h2>Dropped By</h2><br><!--
-->|<span style="width:100%; display:inline-block;"><h2>Dropped By</h2><br><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:9px; border-radius:10px;">Loot/Drop tables last updated for {{:TODO|LootTables}}</p><br><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:9px; border-radius:10px;">Drop Tables last updated for {{:TODO|DropTables}}</p><br><!--
-->{{#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}} }} }}<!--

Revision as of 22:23, 21 April 2024

Generate Drop Tables

Intended usage for individual pages:

{{GenerateDropTables}}

default value for item is -PAGENAME-, therefore the above code is same as

{{GenerateDropTables|{{PAGENAME}} }}

Example 1

{{GenerateDropTables|Longbow}}

Dropped By


Drop Tables last updated for Work in Progress$grey


Common
Uncommon
Rare
Epic
Legendary
Drop source table at 0 luck
NameSorted by total expected value in descending order
TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count)
TypeItem countProbability 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.
Loose Loot12.2222%
Monster1-21.7777%
Monster11.3696%
Monster11.3696%
Monster11.3696%
Monster11.3696%
Monster11.3696%
Monster11.3696%
Containers1-30.8207%
Containers1-30.8207%
Containers1-30.8193%
Containers1-30.8193%
Monster10.6304%
Monster10.6304%
Monster10.6304%
Monster10.6304%
Monster10.6304%
Loose Loot10.6178%
Loose Loot10.6178%
Monster10.5109%
Containers1-20.4969%
Containers1-20.4969%
Containers1-20.4084%
Containers1-20.4084%
Containers1-30.2398%
Containers1-30.2398%
Monster10.1066%

Example 2

{{GenerateDropTables|Armet}}

Dropped By


Drop Tables last updated for Work in Progress$grey


Poor
Common
Uncommon
Rare
Epic
Legendary
Unique
Drop source table at 0 luck
NameSorted by total expected value in descending order
TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count)
TypeItem countProbability 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.
Containers1-20.5874%

Example 3

Only displays the rarity it can drop

{{GenerateDropTables|Bone}}

Dropped By


Drop Tables last updated for Work in Progress$grey


Common
Drop source table at 0 luck
NameSorted by total expected value in descending order
TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count)
TypeItem countProbability 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.
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%

Example 4

Doesn't display anything if there are no drops

{{GenerateDropTables|Potion of Luck}}