I've been wanting to create a mod that increases health by 10 points with each level up regardless of endurance. I was thinking to go about doing this by creating a quest and script that temporarily increases endurance to 100 just before this happens, and then change endurance back to what it was. Obviously this would have to happen after the level up screen, as not to prevent you from raising your endurance.
But I wonder if this is too complicated, and I could simply alter whatever script runs when leveling up. If it isn't hard-coded, I would like to know the names of the script and quest that control leveling. If it is hard-coded, I would like to know if it's possible to accomplish what is entailed in the above paragraph, and to have an understanding of the scripting I need to know to do it if it is possible.