Name vs Identifier

General

You can either use the name or identifier of an action in the configuration file.

For example, if you want to create a custom description for the Bangle accessory, you can do it via identifiers like this:

{4442, "This is an example text."}

or via names like this:

{contents.equipment.bangle, "This is an example text."}

or this:

{contents["equipment"]["bangle"], "This is an example text."}

All names are case insensitive, so you can even use contents.EqUiPmEnT.BaNgLe if you want.

Names give a better overview of the configuration file while identifiers keep it shorter and a bit more neatly formatted. You can choose whichever style you prefer more.

Notes

For a list of all names, you can view the {game}/x64/scripts/config/TheInsurgentsDescriptiveInventory/helpers.lua file.

The 2nd style (e.g. contents.equipment.bangle) can not be used with names that:

  • Start with a number (e.g. 1000needles)

  • Include non-latin characters (e.g. cĂşchulainn)

  • Are a Lua instruction (e.g. break)

For such cases, you must use the 3rd style instead (e.g. contents["equipment"]["bangle"]).

Last updated