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

Setting Token Bar 1 2 3 to Custom Resources

Tried to search the forums, but didn't see this? How do you set Token Bar 1, 2, or 3 to a Custom Resource you have added to D&D 5e sheet.  For example, I want Bar1 to show Psionic Points available to the Character?
1724644220

Edited 1724644315
Gauss
Forum Champion
Hi JHK,  In short, you cannot without an API Script. Does your GM have a Pro account? What are you using the first line for (Class Resource and Other Resource)?  If you are using them for something you don't need on the token bar I suggest swapping them with the custom resources. Those are accesible to the Token bars. 
Yes, we have a Pro Account and can use API Scripts but are VERY new to this. Thanks for the suggestion.  We thought about swapping but would like to learn how to do this without doing it in that manner.  Mainly to learn if there was a way and start our journey of dipping into API customization.
1724647291

Edited 1724647474
Gauss
Forum Champion
I would recommend swapping them, that is the simplest solution.  API Script for this would be overkill unless you have 3 resources that need to be in all 3 bars.  As for how to do it using API scripts, you'd need a script to push the value to an attribute. Then you use that attribute for the bar.  Then when the bar changes you'd have to have an API Script push the value back to the resource. Might be able to skip the attribute step and push it straight from bar to resource and resource to bar, but really, I wouldn't do it this way unless as stated, you need 3 resources in 3 bars.  Note: I am not an API Script guru, I am sure one of them will come along and show you how to do this. My point is to show that it can be done more simply. API Scripts are not always the best answer. :)
Thanks Gauss!