7 Days to Die Wiki
7 Days to Die Wiki
Tag: Source edit
Line 1: Line 1:
 
<includeonly>{{#if:{{{quiet|}}}| |
 
<includeonly>{{#if:{{{quiet|}}}| |
 
===Loot List Table===
 
===Loot List Table===
When opening {{#ifeq:{{Get-field|{{PAGENAME}}|category|NPC}} | Zombie |a loot bag dropped by {{PAGENAME}} |{{PAGENAME}} }} you will get {{#ifexpr: ({{{maxcount}}} - {{{mincount}}}) >0| {{{mincount}}} - {{{maxcount}}} items.| {{#if: {{{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.}}{{#vardefine:pagename|{{#if:{{#dplvar:pagename}}|{{#dplvar:pagename}}|{{#if:{{{pageid|}}}|Loot Container {{{pageid}}}|{{FULLPAGENAME}} }} }} }}
+
When opening {{#ifeq:{{Get-field|{{PAGENAME}}|category|NPC}} | Zombie |a loot bag dropped by {{PAGENAME}} |{{PAGENAME}} }} you will get {{#ifexpr: ({{{maxcount}}} - {{{mincount}}}) >0| {{{mincount}}} - {{{maxcount}}} items.| {{#if: {{{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.}}{{#vardefine:pagename|{{#if:{{#dplvar:pagename}}|{{#dplvar:pagename}}| }} }} }}
   
 
{|class="wikitable sortable"
 
{|class="wikitable sortable"

Revision as of 17:46, 28 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.