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

Ammunition Macros

Is there a way with the new SRD sheets for 5e to create a macro that tracks ammunition after i make an attack. for example: a macro so that i make a ranged attack using my pistol, it then subtracts 1 of my bullets and 1 of my designated class resources (we use gunpowder and DM has determined that a Gunpowder Horn holds enough for like 100-150 shots or something for use with his Pistol). idk if there's any macro or script or something to perform such an idea?
1454971557
The Aaron
Pro
API Scripter
This can't be done with a macro, but it can be done with an API script.  There are a few that would work. Ammo is one that I wrote a while back, and Honey Badger has and Attrib script floating about that can also work.  API scripts require the Creator of the Game to be a Pro subscriber.
i am a pro subscriber, is there a link perhaps to the particular thread with the API script?
1454972337
The Aaron
Pro
API Scripter
In the case of API scripts, it only matters if the person that created the game is a subscriber. &nbsp;Here is my ammo script: &nbsp; <a href="https://app.roll20.net/forum/post/1034829/script-a" rel="nofollow">https://app.roll20.net/forum/post/1034829/script-a</a>... I don't know where the original Attrib script is on the forum but here is a gist of a modified version:&nbsp;<a href="https://gist.github.com/shdwjk/a742b1c89a8074372a2c" rel="nofollow">https://gist.github.com/shdwjk/a742b1c89a8074372a2c</a>