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 .
×

Creating a Roll Table for Weapon Attacks

Hello! I found a macro that created a roll table for skills/ability checks/ability saves, but I was wondering if there was a way to make a macro for a Roll table where you could select what weapon you want to attack with? For example A table that has 4 different weapons on it like, 1.) Dagger, 2.) Long-Bow 3.)Dagger + Sneak Attack Damage 4.) Long-Bow + Sneak Attack damage.
1607792818
Jordan C.
Pro
API Scripter
So, rollable tables to my knowledge cannot output macros/templates. At least I haven't been able to figure out which characters need escaping; however, the closest thing I can mange to work out is creating URL links to macros from rollable tables. It will likely need fine tuning for your needs but here's what I did: This requires Recursive Tables Make an attack from the character sheet Select inside chat text box Press UP arrow to get the macro used for the attack. Create a macro by copy/pasting that and naming it "FighterGreatsword" or something along those lines. Then for rollable table items I created a URL '<a href="`#FighterGreatsword">Greatsword</a>' Repeat for multiple weapons. Then as a chat command or separate macro you can type '!rt [[ 1t[ table-name ] ]]' and you will receive a plain text output that is a clickable link that will attack using the macro created above. I am sure you could format the text to be more appealing as well. You can also adjust the macros for the attacks to include/not include things like Sneak Attack.
Ah cool! Thank you so much! I'll try this right away. What a clever way to do it!
1607949866
Finderski
Pro
Sheet Author
Compendium Curator
Just a note, recursive tables is an API thing, which would require a Pro subscription.