Two things have been taken care of now. Changes related to race, class and levels for all NPCs have been patched. This was necessary because the other thing depends on it. The code that calculates hit points, THAC0, saving throws, thieving skills, racial bonuses and corrects racial armour has been completed. It also makes sure that base AC and base #attacks are 10 and 1, respectively, since BioWare occasionally like to cheat. A relatively few lines of code are 1700+, by the way. Now I need to patch the item and spell changes I have made, update the script accordingly and then I am on to areas.