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

Attempting to Piece together a loot table macro

Ok, so i have macro to give me a drop down to select the desired lot to roll; &{template:spell} {{name=Individual Loot}} {{description=?{Action type| 10-30, [[5d6]] cp| 31-60, [[4d6]] sp| 61-70, [[3d6]] ep| 71-95, [[3d6]] gp| 96-100, [[1d6]] pp}}} So with this id have to roll a seperate d100 then select the macro .What I'm attempting at is to convert it to the &{template:atk} to where i can have it roll the 1d00 similar to an attack roll. The hope is to roll the initial 1d00 then be able to select the name for the damage, but instead of rolling damage have it roll; {{description=?{Action type| 10-30, [[5d6]] cp| 31-60, [[4d6]] sp| 61-70, [[3d6]] ep| 71-95, [[3d6]] gp| 96-100, [[1d6]] pp}}} cananyone help with this? 
1484974307
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You'll need to put it in the damage field in a separate macro that you would call via an ability command button in the rname/rnamec field of the atk macro: {{dmg1=?{Action type| 10-30, [[5d6]] cp| 31-60, [[4d6]] sp| 61-70, [[3d6]] ep| 71-95, [[3d6]] gp| 96-100, [[1d6]] pp}}} see the 5e OGL roll template wiki:&nbsp; <a href="https://wiki.roll20.net/5e_OGL_Roll_Templates" rel="nofollow">https://wiki.roll20.net/5e_OGL_Roll_Templates</a> all that said, I'd recommend looking at using Aaron's Recursive Tables script:<a href="https://app.roll20.net/forum/post/2845333/script-recursivetables-expands-inline-rolls-in-rollable-table-results/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/2845333/script-recursivetables-expands-inline-rolls-in-rollable-table-results/?pagenum=1</a>