From Dark and Darker Wiki

(made {{PAGENAME}} default value)
m (cleaning up)
Line 17: Line 17:
-->{{#if:{{#var:Unique}}|{{TabToggle|Unique|Unique|active={{#ifeq:Unique|{{#var:active}}|yes|no}}}}|}}  
-->{{#if:{{#var:Unique}}|{{TabToggle|Unique|Unique|active={{#ifeq:Unique|{{#var:active}}|yes|no}}}}|}}  


{{#if:{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}||}}


{{#if:{{#var:Poor}}|
{{#if:{{#var:Poor}}|
Line 40: Line 39:
-->{{#if:{{#var:Unique}}|<div class="Unique-data" {{#ifeq:Unique|{{#var:active}}||style="display:none"}}>
-->{{#if:{{#var:Unique}}|<div class="Unique-data" {{#ifeq:Unique|{{#var:active}}||style="display:none"}}>
{{:DropTable:{{#if:{{Weapon_Data|{{{1|{{PAGENAME}}}}}|unique}}|{{Weapon_Data|{{{1|{{PAGENAME}}}}}|unique}}|{{{1|{{PAGENAME}}}}}}} 7}}
{{:DropTable:{{#if:{{Weapon_Data|{{{1|{{PAGENAME}}}}}|unique}}|{{Weapon_Data|{{{1|{{PAGENAME}}}}}|unique}}|{{{1|{{PAGENAME}}}}}}} 7}}
</div>|}}
</div>|}}<br>
|}}</includeonly><noinclude>
|}}</includeonly><noinclude>
=Generate Drop Tables=
=Generate Drop Tables=
Line 53: Line 52:
{{GenerateDropTables|Arming Sword}}
{{GenerateDropTables|Arming Sword}}


==Example 2==
<pre>{{GenerateDropTables|Armet}}</pre>


==Example 2==
{{GenerateDropTables|Armet}}
 
 
==Example 3==
Only displays the rarity it can drop
Only displays the rarity it can drop
<pre>{{GenerateDropTables|Bone}}</pre>
<pre>{{GenerateDropTables|Bone}}</pre>
Line 60: Line 64:
{{GenerateDropTables|Bone}}
{{GenerateDropTables|Bone}}


==Example 2==
==Example 4==
Doesn't display anything if there are no drops
Doesn't display anything if there are no drops
<pre>{{GenerateDropTables|Potion of Luck}}</pre>
<pre>{{GenerateDropTables|Potion of Luck}}</pre>

Revision as of 09:08, 12 December 2023

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|Arming Sword}}

Dropped By

Common
Uncommon
Rare
Epic
Legendary


Drop Source Table at 0 Luck
NameSorted by Total Expected Value (TEV) in Descending Order
TEV = Sum of all (Count * Probability)
TypeCountProbability
Loose Loot12.2222%
Monster11.575%
Monster11.575%
Monster11.3696%
Monster11.25%
Monster10.7683%
Monster10.7683%
Monster10.7683%
Monster10.7683%
Monster10.725%
Monster10.6304%
Loose Loot10.6178%
Loose Loot10.6178%
Monster10.5875%
Containers10.5059%
Containers10.5059%
Monster10.3537%
Monster10.3537%
Containers10.3398%
Containers10.3398%
Monster10.2866%
Containers10.2689%
Containers10.2689%
Monster10.2625%
Containers10.2534%
Containers10.2534%
Containers10.2534%
Containers10.2534%
Containers10.2534%
Containers10.2534%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.2189%
Containers10.2189%
Containers10.2189%
Monster10.1208%
Containers10.1079%
Containers10.1079%
Containers10.0865%
Containers10.0865%


Example 2

{{GenerateDropTables|Armet}}

Dropped By

Poor
Common
Uncommon
Rare
Epic
Legendary
Unique


Drop Source Table at 0 Luck
NameSorted by Total Expected Value (TEV) in Descending Order
TEV = Sum of all (Count * Probability)
TypeCountProbability
Containers10.3205%



Example 3

Only displays the rarity it can drop

{{GenerateDropTables|Bone}}

Dropped By

Common


Drop Source Table at 0 Luck
NameSorted by Total Expected Value (TEV) in Descending Order
TEV = Sum of all (Count * Probability)
TypeCountProbability
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}}