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

(Shaped 5e Sheet) Arcane Ward

In Shaped Sheet  5e, is there a way to set up one of the token bubbles to do some math for the arcane ward that Abjurers get? Something like Current amount  / (2 * (wizard_level)) + (Intelligence_mod)
1530647943
GiGs
Pro
Sheet Author
API Scripter
The best way to do this is to have the bubble linked to an attribute that is set by a sheetworker.
1530648381
GiGs
Pro
Sheet Author
API Scripter
Something like < script   type = "text/worker" > on ( "change:wizard_level change:intelligence_mod" , function () { getAttrs ([ "Intelligence_mod" , "wizard_level" ], function (values) { //Do something with values.Strength and/or values[ "Level" ]         setAttrs({ calculatedstat: 2 * values.wizard_level + values.Intelligence_mod }); }); }); </ script > Just replace "calculatedstat" with whatever the name of the attribute to hold the value will be.
Thanks man. Worked like a charm
1530666805
GiGs
Pro
Sheet Author
API Scripter
great :)