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

The des_crft_props.2da file is the .2da file that defines the options available for the add item property power. This includes specifying the item property to be added as well as the duration for which it is added and the message to be sent upon success.

As with all "des_*" .2da's, this file has no hardcoded usage; it is only used in scripts. (Specifically, this file is referenced by x2_s2_addprop.) This may allow for greater customization possibilities than most other .2da's.

Columns of des_crft_props.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.
Comment A brief description of the item property to add for the benefit of human readers. This is ignored by the game.
PropertyType An index into itempropdef.2da, indicating the type of item property to add.
Duration The number of seconds for which the property will be added. If this is zero, then the property will be added permanently.
Param1 The parameters to be passed to the command that creates the item property, in the order expected by that command. If the command (which depends on the PropertyType column) takes fewer than 4 parameters, the extra columns are ignored. These must be numbers, not the symbolic constants that would be used within a script.
Param2
Param3
Param4
SuccessText Either a StringRef for a message to be sent to a player when the item property has been successfully added, or the text of such a message. (If the text contains spaces, it must be enclosed in quotes, as is standard for including spaces in a .2da column.)

When determining the numbers to use for the Param* columns, it may be helpful to look up symbolic constants in the script nwscript to get their numeric equivalents.