I cant seem to get this to work, I keep getting the following error. Has the code been changed since this was posted?
Attempt to acces out-of-bounds array index '-1' for arry field 'kInnate'
---
Attempt to acces out-of-bounds array index '-1' for arry field 'kInnate'
If you look at the skill fields, you will see that the array "kInnate" has an array index of 0-5. Looking at 4 races (2 without racial HD, and 2 with), I see two values for cClsIndex. For the 2 races without racial HD, it was -1. For the two with, it was 0. I don't really know what this field does, but I might remove the variable from the script you quoted and just put 0 in for index as the arrayvalue and see if that does what you want. So, it would look like this:
Code:
hero.child[kListen].field[kInnate].arrayvalue[0] += Whatever#
hero.child[kSpot].field[kInnate].arrayvalue[0] += Whatever#