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

Ammo tracker without scripts

February 16 (1 year ago)

Hello, I would like to know if there is a way to make a ammo counter, by using macros without a mod(API)? Yes I am broke, sue me, you'd probably win

To be a bit more exact, I am in a campaign of Lancer TTRPG, where you can have a weapon called the "Prototype Weapon 1", in which you have a number of charges, or ammo. However, the problem here is, that before a battle, you need to roll a 1d6+2 to determine the amount of charges your weapon has. As such, I was wondering if it would somehow be possible to have a ammunition tracker track the amount of charges one has AFTER the roll.

If however it isn't possible without a script, what could be an alternative/how would it look like with a script?

February 16 (1 year ago)
The Aaron
Roll20 Production Team
API Scripter

The manual approach would be to create a custom attribute on your character, say 'lancer_charges', on the Attributes and Abilities tab of the character.  You would then edit it to have the number of charges you start with, and decrement it as you use it.   If you only have the one ammo, you can get one of your character token's bars to track that attribute, to make it easy to check and adjust during the game (but you still need to edit the maximum manually on the Attributes and Abiliites tab.

There isn't a good way to automate this with macros.  The closest you could come would be to have a character that represents your ammo, have them added to the turn tracker, and then use the tracker adjustments to change the value.  That would be automateable via macros, but would be tedious to set up.

February 16 (1 year ago)
GiGs
Pro
Sheet Author
API Scripter

As Aaron says, it cant be automated.

But you could link the ammo counter attribute to one of your token bubbles, which would make it easy to increment or decrement.