Bodybag.2da

The   file is the .2da file that defines what sorts of container placeables can be left behind when a creature or placeable fades out upon death and has items to drop as loot. (This implicitly excludes creatures that have been flagged as leaving a lootable corpse, as they do not fade out while they still have items to drop.) Body bags are basically a convenience mechanism, as it is easier for a player to obtain multiple items from a container than to pick each item up off the ground.

The "body bag" placeable so created will be named "Remains", and its description will be the name of the creature or placeable from which it was created. (The name is translatable; its StringRef is 40108.) Its ResRef will be balnk, while its tag will be "BodyBag". It will be flagged as plot, so cannot itself be destroyed (which avoids the recursive problem of body bags needing body bags). A body bag will automatically self-destruct (hardcoded, not scripted) when it has no items left.