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

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
1611097082

Edited 1611097112
Andreas J.
Forum Champion
Sheet Author
Translator
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>