- name - Name of the object
- category - Monster, Prop, Loose Loot
From Dark and Darker Wiki
(Fixing this case.) |
(Cleaned up the page a bit) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#invoke:Droprate|loot_tables| | =Overview= | ||
Functions for making loot table. Data comes from [[Loot:Monster.json]], Loot:Prop.json, Loot:Loose Loot.json, and the Loot: namespace. | |||
=Functions= | |||
==loot_tables== | |||
Creates a table of drops | |||
<tabber> | |||
|-| Parameters= | |||
* ''name'' - Name of the object | |||
* ''category'' - Monster, Prop, Loose Loot | |||
|-| Examples= | |||
<pre>{{#invoke:Droprate|loot_tables|name=Lich|category=Monster}}</pre> | |||
{{#invoke:Droprate|loot_tables|name=Lich|category=Monster}} | |||
</tabber> | |||
Latest revision as of 09:13, 7 May 2026
Overview
Functions for making loot table. Data comes from Loot:Monster.json, Loot:Prop.json, Loot:Loose Loot.json, and the Loot: namespace.
Functions
loot_tables
Creates a table of drops
{{#invoke:Droprate|loot_tables|name=Lich|category=Monster}}
Lua error in Module:Droprate at line 438: attempt to concatenate field 'loot' (a table value).