From Dark and Darker Wiki

(Created page with "<includeonly>{{ #arraydefine: monsters | {{Monster_Data|{{{1}}}}} }} {{ #loop: i | 0 <!-- loops start value for {{ #var:i }} --> | {{ #arraysize:monsters }} <!-- number of loops --> | <nowiki/>{{#vardefine:current|{{ #arrayindex:monsters | {{ #var:i }} }}}} {{#if:{{Monster_Data|{{#var:current}}|hp}}|{{#if:{{{1|}}}|{{#if:{{#pos:{{Monster_Data|{{#var:current}}|hp}}|{{{class}}}}}|{{GenerateMonsterRow|{{#var:current}}}}}}|{{GenerateMonsterRow|{{...")
 
mNo edit summary
Line 1: Line 1:
<includeonly>{{ #arraydefine: monsters | {{Monster_Data|{{{1}}}}} }}
<includeonly>{{ #arraydefine: weapons | {{Monster_Data|{{{1}}}}} }}
{{
{{
   #loop: i
   #loop: i
   | 0                      <!-- loops start value for {{ #var:i }} -->
   | 0                      <!-- loops start value for {{ #var:i }} -->
   | {{ #arraysize:monsters }} <!-- number of loops -->
   | {{ #arraysize:weapons }} <!-- number of loops -->
   | <nowiki/>{{#vardefine:current|{{ #arrayindex:monsters | {{ #var:i }} }}}}
   | <nowiki/>{{#vardefine:current|{{ #arrayindex:weapons | {{ #var:i }} }}}}
{{#if:{{Monster_Data|{{#var:current}}|hp}}|{{#if:{{{1|}}}|{{#if:{{#pos:{{Monster_Data|{{#var:current}}|hp}}|{{{class}}}}}|{{GenerateMonsterRow|{{#var:current}}}}}}|{{GenerateMonsterRow|{{#var:current}}}}}}|{{GenerateMonsterRow|{{#var:current}}}}
{{#if:{{Monster_Data|{{#var:current}}|classes}}|{{#if:{{{class|}}}|{{#if:{{#pos:{{Monster_Data|{{#var:current}}|classes}}|{{{class}}}}}|{{GenerateMonsterRow|{{#var:current}}}}}}|{{GenerateMonsterRow|{{#var:current}}}}}}|{{GenerateMonsterRow|{{#var:current}}}}
}}
}}
  }}</includeonly>
  }}</includeonly>
   
   
  <noinclude>
  <noinclude>
WIP
  {{GenerateMonsterRows}}
  {{GenerateMonsterRows}}
  </noinclude>
  </noinclude>

Revision as of 03:41, 6 February 2024