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

Ammo attribute and things I don't quite understand about it.

I'm using the Ammo! script but it only increments the attribute I have set.  If there are other palaces on the sheet (Pathfinder default, not community) that reference arrows, bolts, or wand (like in gear/equipment section and in the attacks block) that doesn't change.  So I can say "Arrows" in the gear section, set the quantity to 20, set an arrow attribute on appropriate tab, get the macro !ammo arrows to deduct one and increment to 19.  Yet when I go into the gear section or the attack section the arrows/ammo is still 20.  So I have to change the same stuff I would normally without the script/macro.  What is the point of the script if it's not tracking beyond its own count?  I can know when stuff is out but that still leaves "20" on the sheet itself.  Any way to connect it?
1604956351
The Aaron
Roll20 Production Team
API Scripter
Just for a bit of history, the Ammo script actually predates Roll20 having Character Sheets by several years. Probably what is happening is that the character sheet uses Sheet Workers to propagate changes to various parts of the sheet, but the api change is not triggering those sheetworkers.  It might be fixed by using setWithWorker() in Ammo, I'll have to check.
Wow!  Thank you for that explanation.  Your work is amazing, btw.  So much easier to run a game with the tools you've made.  Anyway, cool, I won't worry about it for the moment.
1604961237

Edited 1604961269
GiGs
Pro
Sheet Author
API Scripter
Christopher said: I'm using the Ammo! script but it only increments the attribute I have set.  If there are other palaces on the sheet (Pathfinder default, not community) that reference arrows, bolts, or wand (like in gear/equipment section and in the attacks block) that doesn't change.  So I can say "Arrows" in the gear section, set the quantity to 20, set an arrow attribute on appropriate tab, get the macro !ammo arrows to deduct one and increment to 19.  Yet when I go into the gear section or the attack section the arrows/ammo is still 20.  So I have to change the same stuff I would normally without the script/macro.   When you don't use the ammo script, and you reduce your arrows total in one of those places, does it automatically change in the others?
1604965812

Edited 1604966035
Kraynic
Pro
Sheet Author
GiGs said: When you don't use the ammo script, and you reduce your arrows total in one of those places, does it automatically change in the others? If I am understanding correctly that this is the Pathfinder by Roll20 sheet, then no.  The gear inventory (where ammo goes for being added to carried weight) is not connected in any way to the ammo counter by each attack.  It would have to have a separate command to reduce the quantity in the weight tracking inventory I think. Edit:  Attributes: ammo tracker in attack section:  @{repeating_attacks_$id_atkammo} gear quantity:  @{repeating_gear_$id_quantity}
Kraynic said: GiGs said: When you don't use the ammo script, and you reduce your arrows total in one of those places, does it automatically change in the others? If I am understanding correctly that this is the Pathfinder by Roll20 sheet, then no.  The gear inventory (where ammo goes for being added to carried weight) is not connected in any way to the ammo counter by each attack.  It would have to have a separate command to reduce the quantity in the weight tracking inventory I think. Edit:  Attributes: ammo tracker in attack section:  @{repeating_attacks_$id_atkammo} gear quantity:  @{repeating_gear_$id_quantity} Yeah, I figured it'd be three attributes.  I just don't know how to make all of them connect into the same button.