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 Tracking Not Working For Tracking Ability Resources (Second Wind)

Hey I'm having an issue with the ammo tracking API I can't seem to get it working for second wind, I have ammo tracking on and it's working on other character sheets. I've tried using it and it doesn't find the ID, that picture is after I tried to use it
1613001168

Edited 1613001281
If you are using the sheet (ogl 5e roll20 with the companion API) try to fill in the equipment section the Second Wind; and active as a resource. if you preffer as token action try this from David M /em @{selected|token_name} uses Second Wind and restores hp! !token-mod {{ --charid @{selected|token_id} --set bar3_value|+[[{[[1d10 + @{selected|base_level}]],[[@{selected|hp|max}-@{selected|hp}]]}kl1]] --report all|"Amount healed by Second Wind = {bar3_value:abschange}hp." }} !ammo @{selected|character_id} class_resource -1 Second Wind If you have the hp in bar1 change each bar3 for bar1 (you need the token mod API for this macro) for more references&nbsp; <a href="https://app.roll20.net/forum/post/9655549/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/9655549/slug%7D</a> (David M and Jarren K) make 2 macros that actually work
1613046451
David M.
Pro
API Scripter
Just an FYI, Rober M. et.al., here is an amended macro that uses token-mod's "+n!" syntax in the set command to automatically prevent the bar addition from exceeding the max value for that bar. Avoids having to use the kl1 group roll and just looks a little cleaner. Might save 30ms not having to reference the two other attributes, too. ;) Not sure how long that has been available in token-mod, but I only learned about it recently. /em @{selected|token_name} uses Second Wind and restores hp! !token-mod {{ --charid @{selected|token_id} --set bar3_value| +[[1d10 + @{selected|base_level}]]! --report all|"Amount healed by Second Wind = {bar3_value:abschange}hp." }} !ammo @{selected|character_id} class_resource -1 Second Wind
1613055738

Edited 1613400145
Thanks Guys Thats great might use that instead, I double checked some things I think there. must be something wrong with the characters sheet cause even bolts aren't working and but they are on other characters sheets so I'll try to recreate it and see what that does cause I've definitely checked the setting to make sure I have the ammo tracking turned on, I even tried turning it off and back on again thanks for the help *This worked must've done something to the other character sheet by accident