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 .
×
May your rolls be merry + bright! 🎄
Create a free account

[Dark Heresy 2nd] Weapon Repeating Sections not in Attributes

Hi All, I'm trying to work in some APIs and macros for a game, specifically at the moment ammo tracking. However what I'm finding is that it won't work, I've had the ammo tracking API script working in a D&D game before but I'm sure the sheet is designed with that in mind. When I run the command with what I think is the ammo field repeating section, but tbh I'm just guessing. I get "TypeError: Cannot read property 'substring' of undefined" as an error message. I'm fairly certain the issue relates to the fact that the repeating fields for the weapon don't put anything in the attribute list, which from my searching was an issue but now exists. I think the issue is something with the sheet, but I can't what needs to be changed with what I've compared it too and I'm not that familiar with html. tl:dr how do I make a repeating field put it's stuff in the attributes list?
1483595232
Lithl
Pro
Sheet Author
API Scripter
What's the macro you're trying to use? It may be you're simply trying to access the repeating section value incorrectly. Repeating sections won't put their attributes in the Attributes & Abilities tab, but they can still be referenced.
I've tried a bunch of differant combinations but essentially. !ammo @{Inquisitor Marius Ramvoldus} repeating_rangedweapons_-KZShzUTZwoOHmIZn4xQ_rangedweaponclip 1 or !ammo @{Inquisitor Marius Ramvoldus} -KZShzUTZwoOHmIZn4xQ_rangedweaponclip 1 those seemed to get me the closest I think.
Try !ammo @{Inquisitor Marius Ramvoldus| character_id } repeating_rangedweapons_-KZShzUTZwoOHmIZn4xQ_rangedweaponclip 1
Aha! You're amazing! That worked. I knew I'd just be missing something little.