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

One Attack, Two Resource Boxes

1650321057

Edited 1650321123
I am using the OGL sheets with the companion API and I'm going to be playing a gunslinger. Right now I have a box for the # of rounds in the gun and a box for the # of rounds total. I have been trying to work out a way that both the boxes would be used when I click on the guns attack instead of just one of them. Anyone have any ideas?
1650336484
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Both at once is a little complex. How about using the gun attack to decrement the number of chambered rounds, and then a ChatSetAttr macro that transfers a set number of rounds from total rounds to chambered rounds? Like a reload function. The total number of rounds would be the total of the boxes.
1650387383

Edited 1650404850
hmmm... potentially I had created something similar: Have a macro (which triggers nested macros and API script I think) that decrements 2 repeating resources in an unequal manner for Short Rest healing. For short rest healing macro is asking how many hit-dices (repeating resource 1) you want to use, and after selection and placing the result in the chat, it decrements amount of hid dices selected ( repeating resource 1)  and healing kit for a single usage (repeating resource 2).  as keithcurtis already pointed at, it is a bit complex and unique for each player character(sheet), and you would have to click on a macro button instead of an attack executed clicking on the OGL sheet.
1650394016
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Heh, I thought I had lost a post when I saw your other thread. It's usually better to report an issue in one thread, to generate the best concentration of attention.
Sorry about that I was a little confused weather this was a API or Sheet problem. Thank you both, I haven't messed around with ChatSetAttr before but I think I will give it a shot.
1650404931

Edited 1650405002
checked what sort of API script am using:&nbsp;&nbsp; <a href="https://wiki.roll20.net/Script:5th_Edition_OGL_by_Roll20_Companion" rel="nofollow">https://wiki.roll20.net/Script:5th_Edition_OGL_by_Roll20_Companion</a> , basically the same you use, me thinks. it is basically the ammunition handling part.
Yeah that's what I have