From Dark and Darker Wiki

m (generatelootdrops example)
m (phrasing adjustment)
 
(21 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>==Loot Tables==
<span style="font-size:18px; width:100%; display:inline-block"><h2 style="width:100%">Loot Tables</h2><!--
Last Revision={{:TODO|LootTables}}
--><p style="padding:20px; color:red;">Iron Mace reworked the loot system. The current loot information is out of date and incredibly misleading.  Once things are fixed and loot information is accurate once more, they will be re-enabled.</p></span><!--
--><noinclude><includeonly><!--
--><h2 style="width:100%">Loot Tables</h2><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:5px; font-weight:bold; margin:20px; border-radius:10px;">Loot Tables last updated for {{#explode:{{:TODO|LootTables}}|$|0|2}}</p><!--


Type:
Type:
--><span style="font-size:24px"><!--
-->{{#if:{{#vardefineecho:common|{{Monster Data|{{{1|{{PAGENAME}}}}}|drops|all}} }}<!--
-->|{{TabToggle|Common|'''Common'''|active=yes|tabid=loottable}} }}<!--
-->{{#if:{{#vardefineecho:elite|{{Monster Data|{{{1|{{PAGENAME}}}}}#elite|drops|all}} }}<!--
-->|{{TabToggle|Elite|'''Elite'''|tabid=loottable}} }}<!--
-->{{#if:{{#vardefineecho:nightmare|{{Monster Data|{{{1|{{PAGENAME}}}}}#nightmare|drops|all}} }}<!--
-->|{{TabToggle|Nightmare|'''Nightmare'''|tabid=loottable}} }}</span><!--


{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}|drops|all}}| {{TabToggle|Common|'''Common'''|active=yes|tabid=loottable}}}}<!--
Loot Table:
-->{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}#elite|drops|all}}|{{TabToggle|Elite|'''Elite'''|tabid=loottable}}}}<!--
--><div class="Common-data" {{#if:{{#var:common}}||style="display:none"}}><!--
-->{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}#nightmare|drops|all}}|{{TabToggle|Nightmare|'''Nightmare'''|tabid=loottable}}}}
-->{{#arraydefine:drops|{{#var:common}} }}<!--
-->Loot Table: <!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->{{TabToggle<!--
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{#var:i}}|0|yes|no}}<!--
-->|tabid={{{1|{{PAGENAME}}}}}}} }}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i }}|0|yes|style="display:none"}}><!--
--><br><!--
--><span style="margin-left:30px; font-size:24px"><!--
-->Rolls <b>{{Monster Data|{{{1|{{PAGENAME}}}}}|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}}|C}}</div>}}</div><!--
--><div class="Elite-data" {{#if:{{#var:common}}|style="display:none"|{{#if:{{#var:elite}}||style="display:none"}} }}><!--
-->{{#arraydefine:drops|{{#var:elite}} }}<!--
-->Loot Table: <!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->{{TabToggle<!--
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{#var:i}}|0|yes|no}}<!--
-->|tabid={{{1|{{PAGENAME}}}}}#elite}} }}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i }}|0|yes|style="display:none"}}><!--
--><br><!--
--><span style="margin-left:30px; font-size:24px"><!--
-->Rolls <b class="colorrarityElite">{{Monster Data|{{{1|{{PAGENAME}}}}}#elite|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}}|E}}</div>}}</div><!--
--><div class="Nightmare-data" {{#if:{{#var:common}}|style="display:none"|{{#if:{{#var:elite}}|style="display:none"|{{#if:{{#var:nightmare}}||style="display:none"}} }} }}><!--
-->{{#arraydefine:drops|{{#var:nightmare}} }}<!--
-->Loot Table: <!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->{{TabToggle<!--
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{#var:i}}|0|yes|no}}<!--
-->|tabid={{{1|{{PAGENAME}}}}}#nightmare}} }}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i }}|0|yes|style="display:none"}}><!--
--><br><!--
--><span style="margin-left:30px; font-size:24px"><!--
-->Rolls <b class="colorrarityNightmare">{{Monster Data|{{{1|{{PAGENAME}}}}}#nightmare|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}}|N}}</div>}}</div><!--


Loot Table:
--></includeonly>
{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}|drops|all}}|
==Example==
<div class="Common-data">{{ListLootDrops|monster={{{1|{{PAGENAME}}}}}}}</div>
<pre>{{GenerateLootDrops|zombie}}</pre>
}}<!--
-->{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}#elite|drops|all}}|
<div class="Elite-data" style="display:none">{{ListLootDrops|monster={{{1|{{PAGENAME}}}}}#elite}}</div>
}}<!--
-->{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}#nightmare|drops|all}}|
<div class="Nightmare-data" style="display:none">{{ListLootDrops|monster={{{1|{{PAGENAME}}}}}#nightmare}}</div>
}}</includeonly><noinclude>
Example <pre>{{GenerateLootDrops|zombie}}</pre>
{{GenerateLootDrops|zombie}}
{{GenerateLootDrops|zombie}}
</noinclude>
</noinclude>

Latest revision as of 22:46, 31 May 2025

Loot Tables

Iron Mace reworked the loot system. The current loot information is out of date and incredibly misleading. Once things are fixed and loot information is accurate once more, they will be re-enabled.

Example

{{GenerateLootDrops|zombie}}

Loot Tables

Iron Mace reworked the loot system. The current loot information is out of date and incredibly misleading. Once things are fixed and loot information is accurate once more, they will be re-enabled.