
I'm looking for a way to create an XP bar for 5e character tokens that will update itself based on your total experience gained and the experience you need to level. I can't just use the current experience and experience to next level bars because those run off of total gained ever, not just total gained this level. This results in a bar that starts roughly 40% of the way full and doesn't really measure your progress that well. Is there a way to create attributes that calculate a value based on other attributes? Let's say you were level 2. What I would want is this: ([Current experience gained] - [Experience to reach level 2]) as the progress bar, and then the max for the bar would be calculated by ([Experience to reach level 3] - [Experience to reach level 2]). Ideally this would automatically update based on your current level as well. Basically is there a way to calculate new attributes using current attributes?