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

Auto consume material components

Is there any way to set up the D&D 5e by Roll20 character sheet to auto-remove material components from the resources section when the spell is cast from the spells tab? For example, if I were to cast Arcane Lock, it would change my gold dust resource from 25 (gp worth) to 0.
1588660939
GiGs
Pro
Sheet Author
API Scripter
Being able to automatically change attributes is a feature of Pro subscriber level; you cant do it at the free level.
My GM has a pro account, how would doing this be possible?
1588665877
GiGs
Pro
Sheet Author
API Scripter
Youre GM will need to install an API script, which you would then be able to add commands to use it to your macros. For this specific situation, the ammo script would be perfect: its for spending resources like bullets from a gun, or spell components as you use them.
Ok so my GM installed the script and we tinkered around with it for a bit to figure it out completely and we got the command working and it's pretty much exactly what I want. Only thing I can't figure out is if there's any way to get the command to auto-execute when a spellcard is output to chat. Thanks a lot for your help. If there's no way to do it automatically from spellcard that's fine. A macro will more than suffice.
1588705312
GiGs
Pro
Sheet Author
API Scripter
I think you'll have to do the command manually.