Template:CalcHP

This template takes Primary, Secondary and Tertiary classes and calculates max HP. Your constitution modifier and any class/race modifiers assigned will be automatically added.

The first roll of your Primary Class is always the highest value, per the player's guide.

For each level gained after the first, the default behaviour is to assume that you took the default score listed in the players handbook. Alternatively, you may specify a roll by adding the following to your character sheet:
 * [Classname]_HP_roll_[level] = [value]

Example: If you rolled a 3 for your second level of Sorcerer and 5 for your third level of Sorcerer, you would add:
 * Sorcerer_HP_roll_2 = 3
 * Sorcerer_HP_roll_3 = 5

For classes to automatically apply HP bonuses (such as for Sorcerers with the Draconic Bloodline subclass), the ClassTraits template for that class must set a variable named [Classname]_HP_level_bonus. Following the Sorcerer example, which grants 1 bonus HP per level taken in the class, this would look like:

Similarly, if a racial trait should give bonus HP, that racial template should set a variable named racial_HP_level_bonus.