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 .
×

Coding AC and HP to scale with level

Hello!  I am playing a Divine Soul Sorcerer in my 5e game, and he is taking the Summon Celestial Spirit from the UA new spells.  I'm building a character sheet for the spirit, and the way it works is the AC is 11 + Spell Level and the Max HP is spirit's CON + my spell modifier + 10 times the spell level.   So my question is, is there a way to code the AC and Max HP to automatically update based on the level?  I figured I could just change the character level on the sheet to be reflect the spell level, unless there is a better way of doing that!  Thanks!
1596517993
Oosh
Sheet Author
API Scripter
Unless you GM has API available in the game, there's no way to write Attributes. You could create a macro that spits out the numbers, but you'd have to input them manually. Do you already have a spell entry set up on the sheet? You can re-use the Spell Level Query from casting the spell to calculate the Attributes and throw them into the spell description field. But again, you have to enter them manually - there's no way around that without API.