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

[5e OGL] How can I make something use two of a resource using the ammo tracker api?

1503544389

Edited 1503544603
I'm trying to automate a sorcerer's metamagic in which the sorcery points are automatically consumed when he clicks the button in his attack tab. I have it working for the most part, but I have no idea what to put it to make it consume two points for things like quickened spell. Any help would be appreciated.
1503579169

Edited 1503579281
Here is a similar post to what you are asking. Short answer: This  scriptlet of mine will work, you just need to put how many uses inside of brackets, e.g. Arrows[3] The scriptlet overrides the companion script's implementation so long as the scriptlet is added after the companion script. It also has the hooks for the companion script so that the other functionality (namely being able to turn it off/quiet) is the same.
Works perfect, thank you.