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

Best way to determine if a charact should have multiple attacks?

1404071998

Edited 1404072350
Right now my macro bar is a mess because I have 1 script for each of the possible basic attacks a play might be able to make. However, I would like to put them into 1 script, and have the script determine if it should make a second (or upto a fourth) attack. I know the basic "formula" for getting multiple attacks is based on your BAB, and when your class has a BAB of +6 you get a new attack at a +1 and when that second attack gets to be +6 you get a third, upto a max of 4 attacks with a single weapon. What I was thinking was doing some math at the beginning of the script that took your BAB from your 3 class slots (some might be 0) and is you have a +6 or higher grant 1 extra attack, then check if the BAB for attack 2 is >= +6 and so on. Do you think this would be acceptable. I think it might make my chat window a bit noisy but I really don't want my token action bar looking like this: This isn't even showing ranged basic attacks... that would be another 4 buttons for 4 possible attacks. I would really like just 1 button for melee basic attacks and 1 button for basic ranged attacks. Buttons for feats are a necessary evil though. Edit: I didn't even stop to think about the choice of either doing a full round attack (all possible attacks made) and choosing to just do a partial round attack. Guess that still means 2 buttons per tpye... a full round button, and a single attack option. What do you guys think I should do here?
1404080106
The Aaron
Roll20 Production Team
API Scripter
Well, if you want fewer buttons, I would try and define what it is you want in each of your buttons first. If you can't conceptualize doing it in fewer buttons, you won't be able to write a script to do it.
It is doable to combine the attacks into 1 button, however, after talking with my players, they decided they would rather have them separate as they like seeing the outcome of the rolls individually and they feel that if I make all the attacks happen back to back, they won't get to enjoy the crits and fumbles and they don't want to have to scroll the chat window to review each attack after it was made. So we decided that basic melee and range attack buttons will be on the global hotbar and all the feats and special attacks on the token bar.