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

Ammunition tracker

Hi guys,&nbsp; I use the macro in this link :&nbsp; <a href="https://app.roll20.net/forum/post/1034829/script-ammo-automated-ammunition-management-in-a-character-attribute/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/1034829/script-ammo-automated-ammunition-management-in-a-character-attribute/?pagenum=1</a> and i write macro in this way:" !ammo&nbsp;@{selected|token_id} bolts -1 ".&nbsp; I set bolts in inventory and I set " Use as resource " , but the macro doesn't work and says "&nbsp; Attribute [bolts] was not found. Please verify that you have the right name." .&nbsp;&nbsp;
1610985851
Kraynic
Pro
Sheet Author
What character sheet are you using?&nbsp; My guess (from the mention of inventory) that your bolts are in a repeating section.&nbsp; The attribute calls in a repeating section are longer because it has to know the name of the repeating section and the row number or row ID as well as the actual attribute on that row. <a href="https://wiki.roll20.net/Macros#Referencing_Repeating_Attributes" rel="nofollow">https://wiki.roll20.net/Macros#Referencing_Repeating_Attributes</a>
Kraynic said: What character sheet are you using?&nbsp; My guess (from the mention of inventory) that your bolts are in a repeating section.&nbsp; The attribute calls in a repeating section are longer because it has to know the name of the repeating section and the row number or row ID as well as the actual attribute on that row. <a href="https://wiki.roll20.net/Macros#Referencing_Repeating_Attributes" rel="nofollow">https://wiki.roll20.net/Macros#Referencing_Repeating_Attributes</a> Character sheet 5e