The script you supplied didn't solve the issue of no damage unfortunately. I should clarify the one with NaN can be viewed in the quicksave which is the same character but having drunk a respec potion. I believe it identifies the root of the problem and the one I have been testing on mostly.
I have modified your code with some additions, mostly just in case. It resets a few values and allows my character to do damage when equipping weapons. While not accurate, and not in line with where my character should be, it sets the values to a lvl 1 warrior human noble and allows me to do damage again as normal. If you can improve upon it, I would appreciate it, however I am satisfied at this point.
Thank you so much for your help.
#include "2da_constants_h"
void main ()
{
SetCreatureProperty(GetHero(), PROPERTY_ATTRIBUTE_DAMAGE_BONUS, 0.0f, PROPERTY_VALUE_MODIFIER);
SetCreatureProperty(GetHero(), PROPERTY_ATTRIBUTE_ATTACK_SPEED_MODIFIER, 0.0f);
SetCreatureProperty(GetHero(), PROPERTY_ATTRIBUTE_ATTACK, 0.0f, PROPERTY_VALUE_MODIFIER);
SetCreatureProperty(GetHero(), PROPERTY_ATTRIBUTE_ATTACK, 40.0f, PROPERTY_VALUE_BASE);
SetCreatureProperty(GetHero(), PROPERTY_ATTRIBUTE_DAMAGE_SCALE, 1.0f);
}