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

Multiple Ammunition Macro

Hello I am really new to macros and am attempting to make a macro to use several different types of ammunition. basically I have arrows and poison arrows in my ranger quiver. I want it to prompt me when i shoot which arrow I am using than pull from the correct ammunition source. here is what I have so far i get the prompt but it has also the code for the ammunition listed in the prompt also and it doesnt pull from the ammunition. Any help would be appreciated. I am attempting to load the macro into the ammunition field of the bow. ?{Arrows|Arrow, ammo=Arrows|-Kc_r-8IYDYL86qYMV5S|Poison, ammo=Poison Arrows|-Kc_qulKwFmRc2xrHPjp [Arrows]} Along with this I have a macro made up for hunters mark that i want to use in conjunction as well this works currently just dont know how it will work alongside the ammo macro if i get it working. This gets loaded into the damage field 2 spot. ?{Hunters Mark|No, 0|Yes, 1d6 [Hunters Mark]}
1486698238
The Aaron
Pro
API Scripter
Can you give a bit more detail on where you're using this?  It's hard for me to follow how this might handle ammo.
i made a little bit of progress now it only shows the appropriate 2 options arrows and poison arrows but still doesnt use the ammunition ?{Arrows|Arrow, ammo=Arrows &#124 -Kc_r-8IYDYL86qYMV5S|Poison, ammo=Poison Arrows &#124 -Kc_qulKwFmRc2xrHPjp [Arrows]}
1486698922
The Aaron
Pro
API Scripter
How are you expecting it to adjust ammo?  Are you using the Ammo API Script, or a Character Sheet's Companion script?
1486699521
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
That's the format for the OGL companion to track ammo, are you entering this in the ammunition field on the sheet or as a custom macro?
Ammunition field on the character sheet for my bow
1486732045

Edited 1486732114
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Remove the "ammo=" from the query and remove the spaces between the comma and the value: ?{Arrows|Arrow,Arrows &#124 -Kc_r-8IYDYL86qYMV5S|Poison,Poison Arrows &#124 -Kc_qulKwFmRc2xrHPjp} Ive also removed the roll tag of arrows from the poison arrows option as it won't be displayed. Also, make sure there are no spaces before the start of the query.
scott c you are a rockstar thank you so much for the help. works exactly how i wanted it to