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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
Play Now
Join a Game
Characters
Shop
Tools
Compendium
Community
Sign In
Looking for a way too add a line to a mcro to remove GP
I've been trying to figure if I can add a line to a spell macro that requires 1gp everytime the spell is cast, to automaticlly remove the GP from character sheet using 5e ogl sheet. Thanks
Macros, by themselves cant edit stats, only API can do so. you can use the inline version of ChatSetAttr API to place inside your regular macro, so that the regular stuff is rolled as normal, and in the background, the gold is removed each time the spell is cast. <a href="https://wiki.roll20.net/ChatSetAttr" rel="nofollow">https://wiki.roll20.net/ChatSetAttr</a>