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

Macros In Feature Descriptions

Hello,  Im fairly new to this whole Macro thing, and Roll20 in general and im stuck on this topic as im making characters/villians. Im trying to put equations into the Description Section of Features on Character Sheets to find and show Ki pool/Arcane Pool totals.  Example: At 4th level, a monk gains a pool of ki points, supernatural energy he can use to accomplish amazing feats. The number of points in a monk’s ki pool is equal to 1/2 his monk level + his Wisdom modifier.  [[@{level}/2]+@{wisdom_base_mod}] And its coming out as: [[5/2]+0] How do i get it to solve the whole equation, leaving one number? Can't seem to get the Division or Addition to go through. Am i trying to make it do something it can't?
1585860680

Edited 1585860764
Kraynic
Pro
Sheet Author
Inline rolls are created in between double square brackets.  A set of single square brackets is usually used to create a comment within a calculation. [[@{level}/2+@{wisdom_base_mod}]] If you nest calculations, then each one has to be double square brackets before and after (though it probably isn't necessary in this case, but I haven't tested that first version). [[[[@{level}/2]]+@{wisdom_base_mod}]] Edit: to show single brackets used for something...  This would show the fire and poison labels when you mouse over the result in chat. [[2d6[fire]+1d6[poison]]]
Thank you very much, that helped. :)