7 Days to Die Wiki
7 Days to Die Wiki
Tag: Source edit
Tag: Source edit
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{quiet|}}}| |
+
<includeonly>
===Loot List Table===
 
 
{{#if:
 
{{#if:
 
{{{quiet|}}}| | ===Loot List Table===
 
{{{quiet|}}}| | ===Loot List Table===
Line 9: Line 8:
 
}} you will get {{#ifexpr:
 
}} you will get {{#ifexpr:
 
({{{maxcount}}} - {{{mincount}}}) >0| {{{mincount}}} - {{{maxcount}}} items.| {{#ifexpr:
 
({{{maxcount}}} - {{{mincount}}}) >0| {{{mincount}}} - {{{maxcount}}} items.| {{#ifexpr:
{{{maxcount}}} < 1| all listed items. | no items.
+
{{{maxcount}}} = 1| all listed items. | no items.
 
}}
 
}}
 
}} Each item is one of the items in the list underneath, with chance indicating how probable it is to get a certain item. Note: It is possible to get multiple instances of the same item, if that item was chosen more than once.
 
}} Each item is one of the items in the list underneath, with chance indicating how probable it is to get a certain item. Note: It is possible to get multiple instances of the same item, if that item was chosen more than once.
 
}}{{#vardefine:
}}
 
{{#vardefine:
 
 
pagename|{{#if:
 
pagename|{{#if:
 
{{#dplvar:
 
{{#dplvar:
Line 19: Line 17:
 
}}|{{#dplvar:
 
}}|{{#dplvar:
 
pagename
 
pagename
}}|
+
}}|
 
}}
 
}}
 
}}
 
}}
Line 25: Line 23:
 
{|class="wikitable sortable"
 
{|class="wikitable sortable"
 
|-
 
|-
{{#if: {{{size|}}}|
+
{{#if:
*Container's Size: {{{size|}}} = {{#expr:{{#explode:{{{size}}}|*|0}} * {{#explode:{{{size}}}|*|1}} }}| }}
+
{{{size|}}}| *Container's Size: {{{size|}}} = {{#expr:
 
{{#explode:
{{#if: {{{mincount|}}}{{{maxcount|}}} |{{#ifeq:{{{mincount|}}}|all|{{#dplvar:set|includeall|yes}}| }}| }}
 
  +
{{{size}}}|*|0
  +
}} * {{#explode:
  +
{{{size}}}|*|1
 
}}
 
}}|
 
}}
  +
{{#if:
  +
{{{mincount|}}}{{{maxcount|}}} |{{#ifeq:
  +
{{{mincount|}}}|all|{{#dplvar:
  +
set|includeall|yes
  +
}}|
  +
}}|
  +
}}
 
<!-- {{#if: {{{maxcount|}}}| *There will be {{{mincount}}} - {{{maxcount}}} items in this container| {{#if: {{#dplvar:includeall}}| This container gives all the items listed below.| }} }} -->
 
<!-- {{#if: {{{maxcount|}}}| *There will be {{{mincount}}} - {{{maxcount}}} items in this container| {{#if: {{#dplvar:includeall}}| This container gives all the items listed below.| }} }} -->
{{#dplvar:set|scaler|1 }}<!--
+
{{#dplvar:set|scaler|1}}<!--
   
 
Calculates the total probability of all items -->
 
Calculates the total probability of all items -->
 
{{#dplvar:
 
{{#dplvar:
set|totalprobability|{{#expr:
+
set|totalprobability|{{#if:
  +
{{{total|}}} | {{{total|}}} | {{#expr:
{{#dpl:
 
  +
{{#dpl:
debug=0|skipthispage=no|title={{#var:pagename}}| {{#if:
 
  +
|debug=0
{{{modlist|}}} | {{#if: {{#dpl:skipthispage=no|title={{#var:pagename}}|include={LootList-Item}:probability}} | include={LootList-mod}:probability, {LootList-Item}:probability | include={LootList-mod}:probability }} | include={LootList-Item}:probability
 
}}|secseparators=+
+
|skipthispage=no
 
|title={{#var:pagename}}
}}
 
  +
|include={LootList-item}:probability
}}
 
  +
|secseparators=+
  +
}}
  +
}}
  +
}}
 
}}<!--
 
}}<!--
   

Latest revision as of 06:41, 29 July 2021


Template documentation (for the above template, sometimes hidden or invisible)

Use this in a loot list as the first template.
Needs variables quiet, mincount, maxcount, pageid and size (in x*y format).
Only give quiet a value if the list is not a loot container.
Only give pageid a value if the list is a loot container (eg. pageid=70 at Loot Container 70).

Things to fix:

  • Groups where all items are got.
    • Fix'dd
  • Groups where probability varies.