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

Scripting question -- Looking to have spell level counters reduced when a spell is cast

Hello, this has probably been asked before but it's very irritating for me to search for things on my smartphone, and I'd also like to interact with the community a bit. I've developed the sheet for Table Top Defined, a self-published TTRPG system. In the sheet there are spell levels Simples + 1 through 9. With the exception of simplex the rest of them will end up with a number of spell uses per day, and I'd like to have it so when a spell within, let's say spell level is cast, it automatically counts the remaining spells per day. What has me a bit confused is that spells are added with repeating fields and I could use some pointers as the best way to approach this. Thanks to anyone who replies :)
1701243895
Andreas J.
Forum Champion
Sheet Author
Translator
Maybe taking a look at ChatSetAttr could help. Depending on what you're looking for, it might be possible you could just get away with just adding inline chatsetattr commands into character sheet roll templates and things just work out, instead of writing a separate mod. <a href="https://wiki.roll20.net/Meta-Toolbox" rel="nofollow">https://wiki.roll20.net/Meta-Toolbox</a> could also be an alternative to use in any script you'd make.