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

Referencing Proficiency Bonus within Sheet?

Hi, just wonder if referencing to the PB value (in below picture it would be 3) within the 5e OGL Character Sheet is possible? Would like to create a resource with a total based on the current PB value, which will be different at higher levels. Thanks!
1619138426
Richard T.
Pro
Marketplace Creator
Sheet Author
Compendium Curator
Referencing your PB where? If you are building a custom macro it's fairly easy to call it, you can look at all the recorded attributes in a character sheet for the precise name, or you can look at the sheet in your browser's debug view and find the attr_<name> of the field. 
1619142375
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The attribute is "@{pb}", but I don't think you can put it into that field. I believe it only accepts integers, not references.
1619142461
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You could make a script that would update it, but You'd have to know when to run it. Considering that number will only change 4 times in the life of a D&D character, if that, it's not too onerous a manual change.
Indeed, idea was to put the attribute for Proficiency Bonus - in whatever variant might have been the correct one - in the resource's Total field. And yes plans were for such activity to be applied only a couple of times; typically with new player character joining the game. And to not bother to remember to modify the value during level advancement as most likely nobody thinks about it anymore at such points in time. This as part of a macro I can use whenever new player characters joins the game. Such macro using ChatSetAttr API script to create such entries in attacks, equipment and other_resource. Thanks for brainstorming!  :-)