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

Need help with a variable dice explosion macro (World of Darkness)

I am trying to have this macro ask if I have 10 again, 9 again, or 8 again, then ask how many dice are needed then roll X d10s with the correct explosion value. I have tried 3 significantly different approaches and all three have failed for me. I have tried these methods all with and without the relevant  html entities: ?{Quality| 10 Again, /r {?{Final Dice Pool}d10!}>8| 9 Again, /r {?{Final Dice Pool}d10!>9}>8| 8 Again, /r {?{Final Dice Pool}d10!>8}>8} /r {?{Final Dice Pool}d10!>?{Quality| 10 Again, 10|9 Again, 9|8 Again, 8}>8} ?{Quality| 10 Again, #10-again | 9 Again, #9-again | 8 Again, #8-again } (This one with the  relevant macros made both with and without the  html entities.) The closest I have gotten is with this: ?{Quality| 10 Again, /r {?{Final Dice Pool}d10!}>8| 9 Again, /r {?{Final Dice Pool}d10!>9}>8| 8 Again, /r {?{Final Dice Pool}d10!>8}>8} It does exactly what I want, except it only prints the correct value in the chat but does not actually roll it. I can even copy the text it prints out of the log and just paste it into the chat and it works exactly as intended. What am I doing wrong and what do I need to do in order to let it roll directly from the macro?
1603618638

Edited 1603618719
Oosh
Sheet Author
API Scripter
You're very close, you're just being foiled by whitespace. The /r command only works when the / is the first character in the chat message. Try this: ?{Quality| 10 Again,/r {?{Final Dice Pool}d10!}>8| 9 Again,/r {?{Final Dice Pool}d10!>9}>8| 8 Again,/r {?{Final Dice Pool}d10!>8}>8} [[inline rolls]] don't have this limitation.
OMG!! I can't believe that is the problem. Thank you SOOO much.
I see what you mean with the [[inline rolls]] they work very easily I am sure I will use them in the future, but I do like the readout of the /r a lot more for this problem so thanks again! Cheers!