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 .
×
Our team is currently investigating rolling service outages. For more information, visit our most recent Forum Announcements post.
Create a free account

if roll or something

looking to make a macro for split arrow... you rol 1d4+1 and attack that many times was wondering if theres a way to make a macro like  i attack # times #=1d4+1 repeat # times 1d20+3 to hit 1d20+2 damage so output can have 2-5 attack and damage rolls based on what the output of the # is 
1455743316

Edited 1455743360
This can be done with the help of an API Script ; here's how PowerCards might handle this: !power {{ --name|Split Arrow --!|I attack [[ [$N] 1d4+1]] times! --Attack *1|[[1d20+3]] to hit; [[1d20+2]] damage --Attack *2|[[1d20+3]] to hit; [[1d20+2]] damage -- ?? $N >= 3 ?? Attack *3|[[1d20+3]] to hit; [[1d20+2]] damage -- ?? $N >= 4 ?? Attack *4|[[1d20+3]] to hit; [[1d20+2]] damage -- ?? $N >= 5 ?? Attack *5|[[1d20+3]] to hit; [[1d20+2]] damage }}
thanks :) wopuld never figured that out on my own
You're very welcome! Happy rolling!
is there any way to use this if im not a admin in the game? i have pro but GM doesnt
Access to the API is only available in games in which the game's Creator has an active Pro subscription.
dang :( so any other ways i can do this?
Yup, just requires a bit more clicking. /me makes [[ 1d4 + 1 ]] [attacks!](!
[[ 1d20+3 ]] to hit; [[ 1d20+2 ]] damage) Save the above as an Ability on the Attributes & Abilities tab of your Character . It uses API Command Buttons in a special way that does not require access to the API.