Some time ago, I successfully updated the Charm Person spell to accommodate a “friendly” option to charm vendors to giving cheaper prices at their store. i.e. The Charm Person now has a “Friendly” and a “Hostile” version to choose from.
It recently came to light, that the RACIAL FEAT version does not successfully update the radial names when selecting the feat to use.
THE PROBLEM
See the image below …
I did a search and found this post by @kevL_s regarding something Kaedrin posted on the matter, but was unable to successfully change anything.
NOTE:
The official Charm Person feat is on LINE 2174, which directs to the SPELL ID 16 (Charm Person).
I have edited the LINE 16 to point towards sub-radials LINES 1278 (HOSTILE) and 1279 (FRIENDLY). These two lines point back to the “Master” 16 correctly. Now, the post above mentions that the FeatID needs to be calculated as follows (part quoted from the above link):
Now for the tricky part: the FeatId column needs to be (65536 * Subradial_Number + FeatId). The Subradial_Number needs to be greater than 5000 and successive (so 5000 for the first option, 5001 for the second, 5002 for the third, 5003 for the fourth, and 5004 for the fifth). EG: 65536 * 5000 (Subradial Option #1) + 3000 (FeatId) = 327683000
Therefore, I had assumed for my feat (2174) it calculated to:
WRONG CALCULATIONS:
(65536 * 5000 + 2174 = 327,682,174
(65536 * 5001) + 2174 = 327,747,710
CORRECT CALCULATIONS (SHOULD BE BASED ON MY OWN SPELLS.2DA ROWS)
(And should NOT have any commas!)
(65536 * 1728) + 2174 = 113248382
(65536 * 1729) + 2174 = 113313918
Basically, I believe we can ignore the part in the example that says, “The Subradial_Number needs to be greater than 5000” as that is not correct.
I then added these two figures to my own two sub-spell FeatID’s, but the change made no difference.
There is more information in the above link that suggests this is for when creating our own feats with sub-radials, but I am not sure if that distinction has any bearing?
Interestingly, I switched these values to the TLK values I have for the two option differences, and both descriptions always come back with the “HOSTILE” description … Changing these TLK values with various values I tried made no difference and it always returns these values … And, they both seem to be casting the HOSTILE version, as even the second “Hostile” entry does not allow a friendly to be targeted.
So, basically, does anyone know what I am missing regarding setting up sub-radials for feats?