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

[5E] Help with Ammo Tracker in Macro

1576989935

Edited 1576990169
Hi, everyone. How are you? I hope well. Using the API OGL Companion, it's possible track the ammo used in attacks created in the character sheet, like this: And, in the site of Roll Templates to 5e , is said: &{template:dmg} {{rname=rname}} {{range=range}} {{damage=1}} {{dmg1flag=1}} {{dmg1=dmg1}} {{dmg1type=dmg1type}} {{dmg2flag=1}} {{dmg2=dmg2}} {{dmg2type=dmg2type}} {{crit=1}} {{crit1=crit1}} {{crit2=crit2}} {{save=1}} {{saveattr=saveattr}} {{savedesc=savedesc}} {{savedc=savedc}} {{desc=desc}} {{hldmg=hldmg}} {{spelllevel=spelllevel}} ammo=ammo {{charname=charname}} But, the problem is " ammo=ammo ". Doesn't matter the way I put the name of ammo in that space, doesn't work. Anyone can help me? What I want, specifically, is the make macro work with ammo.
1577041493

Edited 1577050809
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That looks like a typo. To follow the roll template syntax it should be: {{ammo=ammo}}
keithcurtis said: That looks like a typo. To follow the roll template syntax it should be: {{ammo=ammo}} I already tried this, it doesnt work too :/
1577148796
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Have you followed the step-by-step instructions here ?
yes, the tracker works on attacks made in character sheet. the problem is in MACROs, where the "ammo=ammo" doesnt work
1577258921
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Just double checking, because it never hurts to ask the obvious, but you are putting the actual name of the ammo in question in your macro? "ammo=Flechas" in the example above. And yeah, oddly, it seems to be outside the roll template, so no curly braces. :/ Finally, try deleting the weapon, equipment and ammo in question and re-adding them (or try on a new character). In my test, the sheet seemed to get confused if I deleted a previous ammo and wrote in a copy.