From Dark and Darker Wiki

(formatting)
(Auto generate loot tables)
Line 1: Line 1:
{{ #arraydefine: drops | {{Monster Data|{{{monster}}}|drops|all}} }}{{
<includeonly>{{ #arraydefine: drops | {{Monster Data|{{{monster}}}|drops|all}} }}{{
   #loop: i
   #loop: i
   | 0                      <!-- loops start value for {{ #var:i }} -->
   | 0                      <!-- loops start value for {{ #var:i }} -->
   | {{ #arraysize:drops }} <!-- number of loops -->
   | {{ #arraysize:drops }} <!-- number of loops -->
   | <nowiki/>{{#vardefine:currentdrop|{{ #arrayindex:drops |  {{ #var:i }} }}}}
   | <nowiki/>{{#vardefine:currentdrop|{{ #arrayindex:drops |  {{ #var:i }} }}}}
*Rolls "''{{ #var:currentdrop }}''" {{Monster Data|{{{monster}}}|drops|{{ #var:currentdrop }}}} times
  {{TabToggle|{{ #var:currentdrop }}|{{ #var:currentdrop }}|tabid={{{monster}}}}}
  }}
}}{{
  #loop: i
  | 0                      <!-- loops start value for {{ #var:i }} -->
  | {{ #arraysize:drops }} <!-- number of loops -->
  | <nowiki/>{{#vardefine:currentdrop|{{ #arrayindex:drops | {{ #var:i }} }}}}
<div class="{{ #var:currentdrop }}-data" style="display:none"><br>Rolls {{Monster Data|{{{monster}}}|drops|{{ #var:currentdrop }}}} times<br>{{:LootTable:{{ #var:currentdrop }}}}</div>
  }}</includeonly><noinclude>
 
{{ListLootDrops|monster=zombie}}
 
</noinclude>

Revision as of 00:48, 2 December 2023


Zombie_N2_Common
Quest_Undead_Common
Quest_Zombie_Common
Spawn_Eventcurrency_N