NWNWiki
NWNWiki
3,719
pages
This article covers the layout of the file; for the default contents, see bodybag.2da (contents).

The bodybag.2da 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.

Columns of bodybag.2da
Name Description
ID (no actual name) Row numbers for the benefit of human readers. The game engine ignores the value in this field, instead generating sequential row numbers as the file is read. It is good practice to keep the entries in this field sequentially numbered to avoid confusion.
LABEL The name of this type of body bag, for the reference of the human reader. This is ignored by the game.
Name A StringRef indicating the name of this type of body bag, as displayed in the Toolset when selecting the "treasure model" in the "advanced" tab of a creature's or placeable's properties.
Appearance An index into placeables.2da indicating the placeable model used for this body bag. If this is **** then the entry from row 0 is used. If the entry for row 0 is **** then placeable appearance 13 is used.