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

HP Formulas and Token Bars

Hello there! I'm looking for some help with token bars and a custom HP formula for a custom system I'm setting up for a game! I've got all the relevant attributes set up, but when I set the Bar 1 maximum as the HP attribute on my sheet, instead of getting the number the formula works out to, I instead get my formula on the text overlay, which doesn't look great. Its working, and if I add HP to the bar, it acts like the correct value based on the other attributes, but I'd still like it if the text overlay displayed 50 (in this particular case) instead of [[floor((%{VIT}*(%{Tier}*10+%{Level}))/50+(%{Tier}*10+%{Level})+10)]]. Can anyone help me solve this problem?
1693878517
Gauss
Forum Champion
As you have discovered, you cannot use a formula to calculate anything that is then put into a token bar.  There are two ways people do this though:  1) Character Sheet programming 2) Mods (API Scripts) which takes the calculation, process it, then shoves the result into an attribute's maximum, and it is that attribute which is then called upon for the Bar maximum.  If you aren't coding a custom character sheet then your best option here is getting a Pro account so you can use Mods (API scripts).
RIP, not in this economy. Thanks for the quick answer!
Haha! Brute force problem solving works once again! Instead of a bar value, its gonna have to be a macro on the token that players click when they finish creating their character or leveling up and it will tell them what to enter on the bar.
1693883719
Gauss
Forum Champion
Valiant Spark said: Haha! Brute force problem solving works once again! Instead of a bar value, its gonna have to be a macro on the token that players click when they finish creating their character or leveling up and it will tell them what to enter on the bar. I use something similar, a note section on their sheet.