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

Macro to roll NPC ammunition and put it into a token bar

I'm looking for a macro to roll ammunition for 5e Monsters. The MM says monsters typically have 2d4 thrown weapons or 2d10 ranged ammunition on them. I want a macro that asks Ranged or Thrown and then rolls the appropriate dice and inputs the number into one of the token bars. Is this possible?
1551312435
GiGs
Pro
Sheet Author
API Scripter
Macros can only print to chat, they can't alter anything on the character sheet or token. So there's no way to do the final  bit: input to a token bar. You have to do that manually. As always, Pro users can use API scripts to bypass this limitation.
1551324524
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
GiGs said: Macros can only print to chat, they can't alter anything on the character sheet or token. That's very succinct. I'll try to remember that phrasing.