7 Days to Die Wiki
7 Days to Die Wiki
Tag: Source edit
Tag: Source edit
 
(6 intermediate revisions by the same user not shown)
Line 43: Line 43:
   
 
Calculates the total probability of all items -->
 
Calculates the total probability of all items -->
<nowiki>{{#dplvar:
+
{{#dplvar:
set|totalprobability|{{#expr:</nowiki>
+
set|totalprobability|{{#if:
  +
{{{total|}}} | {{{total|}}} | {{#expr:
{{#dpl:
 
debug=0
+
{{#dpl:
|skipthispage=no
+
|debug=0
  +
|skipthispage=no
|title={{#var:pagename}}
+
|title={{#var:pagename}}
|include={LootList-Item}:probability
+
|include={LootList-item}:probability
|secseparators=+
+
|secseparators=+
}}<nowiki>
 
  +
}}
  +
}}
 
}}
 
}}
}}</nowiki><!--
+
}}<!--
   
 
Defines the different availability types. -->
 
Defines the different availability types. -->

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.