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

Macro Help Needed

Hey folks, I have a macro that calls the result of a chosen number of d6's and prints out how many were less than or equal to 1 as a whisper. in a separate box, it also calls the result of a random table for me. Both happen on click of the macro button. Is it at all possible to have both lines of code work together and print in one box as opposed to separate boxes? It's aesthetic but I'd like to keep it clean. Additional bonus question: would it be possible to set it so that it ONLY calls the random table when the result of the first line calls anything greater than zero? I'll post what I have so far: " /w gm [[?{Number of dice rolled|1}d6<1]] /w gm &{template:default} {{name= Complication }} {{ [[1t[Complication]]]}}"
1673921033
GiGs
Pro
Sheet Author
API Scripter
Roll20 doesn't allow for conditional effects in macros (so you can't do, "if the roll is above 0, show this table"). A decent compromise might be to combine the results into a single table row, like this: /w gm &{template:default} {{name= Complication }} {{ [[?{Number of dice rolled|1}d6<1]] =[[1t[Complication]]]}}
Ahh you're an angel, my formatting was off when I had tried that earlier and it looks really clean now, thank you!