Hello! I am trying to automate some portions of my DnD campaign, and one of my players is a Samurai Fighter. I would like to have a formula that I could use with ChatSetAttr in order to have an Ability on his sheet automatically set his Temp HP appropriately based on the Fighting Spirit subclass feature. I am having trouble thinking of a formula that would calculate the values correctly, where 3rd - 9th level would output a value of 5, 10th - 14th a value of 10, and 15th - 20th a value of 15. If anyone who is more mathematically minded than I can help me figure out a working formula, it would be greatly appreciated. I have tried combing the forums and the internet at large for such a thing, but cannot seem to find anything. Thank you in advance for your help, even if the result is figuring out that it isn't feasible within the bounds of Roll20's capabilities.