From Dark and Darker Wiki

m (generatelootdrops example)
m (Cleaned up whitespace. Formatted the code to indicate scope level.)
Line 3: Line 3:


Type:
Type:
 
{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}|drops|all}}<!--
{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}|drops|all}}| {{TabToggle|Common|'''Common'''|active=yes|tabid=loottable}}}}<!--
    -->| {{TabToggle|Common|'''Common'''|active=yes|tabid=loottable}}}}<!--
-->{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}#elite|drops|all}}|{{TabToggle|Elite|'''Elite'''|tabid=loottable}}}}<!--
-->{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}#elite|drops|all}}<!--
-->{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}#nightmare|drops|all}}|{{TabToggle|Nightmare|'''Nightmare'''|tabid=loottable}}}}
    -->|{{TabToggle|Elite|'''Elite'''|tabid=loottable}}}}<!--
-->{{#if:{{Monster Data|{{{1|{{PAGENAME}}}}}#nightmare|drops|all}}<!--
    -->|{{TabToggle|Nightmare|'''Nightmare'''|tabid=loottable}}}}


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

Revision as of 02:15, 4 March 2024

Example

{{GenerateLootDrops|zombie}}

Loot Tables

Last Revision=Work in Progress$grey

Type:

Common
Elite
Nightmare

Loot Table:

Frost Walker
Zombie

Rolls Frost Walker,Zombie times
LootTable:Frost Walker