From NWN1 Custom Content Guide
The portraits.2da resource file is where we indicate to NWN the existance of portraits.
(excerpt from the portraits.2da file)
BaseResRef Sex Race InanimateType Plot LowGore 0 **** 4 **** **** **** **** 1 dw_f_01_ 1 0 **** 0 **** 2 dw_f_02_ 1 0 **** 0 **** 3 dw_f_03_ 1 0 **** 0 **** 4 dw_f_04_ 1 0 **** 0 **** etc...
These different entries are the resources available to the game as portraits. Every resource has several columns attached to it. Check the table to find out what the different columns represent.
|An integer ID# identifying the portrait internally.||When choosing an ID for a .2da file, use one of the User999 rows.|
|BaseResRef||Refers to the filename resource for the portrait.|| The portrait filename must start with "po_" and end with one of L/H/M/S/T. The prefix and suffix are not included in the label name in the .2DA, but do count towards the 16 character filename limit.|
For instance, say you wanted to add a portrait for Cthulhu, you have your po_cthulhu_h.tga, po_cthulhu_l.tga, po_cthulhu_m.tga, po_cthulhu_s.tga and po_cthulhu_t.tga portraits in your .HAK. In portraits.2da, your BaseResRef string will use "cthulhu_"
|Sex||Gender, actually.|| The number comes from the first column in the 2da file gender.2da from the 2da.bif file (you can view the contents of this file using NWN Explorer as well).
1 Female 2 Both 3 Other 4 None
|Race||This number is used for the toolset filter when selecting a portrait for your NPC.|| The number comes from the first column in the 2da file racialtypes.2da from the 2da.bif file (you can view the contents of this file using NWN Explorer).
0 Dwarf 1 Elf 2 Gnome 3 Halfling 4 Half-Elf 5 Half-Orc 6 Human
Etc. **** if it is a placeable and not a creature
|InanimateType||The type of placeable.|| Refers to placeabletypes.2da
0 Battlefield 1 Containers 2 Military 3 Misc 4 Misc_Interior 5 Parks_Nature 6 Penants_Signs 7 Trades_Academic 8 Visual_Effects
**** if it is a creature and not a placeable
|Plot||Is this a plot portrait? Generally no.||
0 if no 1 if yes
**** if it is really a placeable anyway (1 equates to TRUE if you know C or C++)
|LowGore||The portrait to use in place of this one if the game is set to low gore mode. If you create a really messy portrait, find or create a substitute, low gore, portrait here.||Portrait name (generally **** for creatures).|