Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Creating an XP bar in 5e D&D?

1504299363

Edited 1504300589
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?
1504303729

Edited 1504303746
Andrew C
Marketplace Creator
You could use one of the bars for tokens and link it to an XPBar Attri
How do you mean? Like designated tokens for each value and then link to those values on another token? Is that done in the same way you link selected token values in macros?
I'm also interested in this. I was using one token bar for the levels... "200/300". After reaching 300, I would create a new one with 300/900. Didn't quite work out. 
You put 300 in the current value, 900 in max.
1504314853

Edited 1504314925
Yeah that's not what I want though. In that case upon reaching level 2 I want it to automatically shift to 0 for current, and 600 for max.  300/900 isn't an empty bar which is the issue I'm facing. I don't want a bar that displays all experience ever, I want a bar that displays how far you are towards your next level.
You won't get anything to do any kind of auto-switching without upgrading to Pro and writing an API script.
1504321029
Andrew C
Marketplace Creator
Alexander B. said: How do you mean? Like designated tokens for each value and then link to those values on another token? Is that done in the same way you link selected token values in macros? On the sheet there should be some kind of Experience Attribute field. On the TOKEN for that Character, you could choose one of the three Bars to be the XP Bar by linking it to the Experience Attribute. You can find the right one by hovering over the Experience field on the Sheet. You won't get automatic anything without using an API.
So there's no way to do it with what's available on the standard 5e sheet then? That's unfortunate. Thanks.