NWN2 Henchspells.2da Columns

Does anyone out there know what the columns in the Henchspells.2da mean? It might help me to know how those numbers are generated so I might be able to incorporate a few things I have worked on a little better. Thanx in advance.

I do have kevL’s editor, but knowledge of the data in the Henchspells.2da is needed for me to be able to accomplish what I want to do. I don’t want to enter random information and screw things up. Thanx. again in advance.

1 Like

find a similar spell with the editor. Then sorta guess, it doesn’t have to be perfect

use the editor to change the values (except perhaps EffectWeight, which is simply a float) – those bitwise integers are next to impossible to construct by hand …

 
 
Note (to all) the current version of nwn2_ai_2da_editor does NOT work with Tony’s Companion and Monster AI past version 2.2

ps. this topic should perhaps be moved to nwn2/toolset forum

If you are using the later AI versions like version 2.9, there is a way to add custom spells in the module startup using helper functions in hench_i0_custom. If you download the erfsource2.9.zip, HenchSpellDef.nss contains all of the existing spells. You should be able use it for examples for your own spells as long as they work like one of the supported spells. From the Script Reference.htm in the zip file:

“Modifications and additions to the AI for spells and classes can be done by calling functions from the hench_i0_custom script on module startup. To make this easier, functions that initialize all the spells, classes, and racial sub types supported by the AI are provided in HenchSpellDef.nss and HenchClassDef.nss which are provided as separate files in the hak and erf releases.”

1 Like