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

Adding rolltemplate / macro feedback for errors and incorrect inputs

1607382457

Edited 1607382578
Seraaron
Sheet Author
Hi there, I've found either a bug or a suggestion (or else I'm doing something wrong with my code)? I found it weird that when you input something wrong into the dialogue popups when you use a roll macro it gives no feedback at all. (E.g. trying to roll a negative amount of dice, or just leaving `?{this bit|}` blank, or otherwise adding a null entry). Nothing is posted to chat, and you have no idea if you're just lagging, if the server crashed, or if you just did something wrong but it's not telling you. I tried to implement my own error messaged into a custom sheet roll template, like so: {{#rollLess() dice 0}} <div class="resultcontainer yellow italic"> Error: You cannot roll negative dice! </div> {{/rollLess() dice 0}} but this doesn't seem to work either. It's still blank. It would be nice to have more feedback when you do something wrong... Thoughts / help?
Anyone?
You'll probably have better luck posting this on the Character Sheets & Compendium Forum ,  Bug Reports & Technical Issues Forum , or the  Suggestions & Ideas Forum .
1607542648

Edited 1607542697
Finderski
Plus
Sheet Author
Compendium Curator
Seraaron said: Anyone? What's the template call look like? what you're doing with that template should be doable, but we need to see what's being passed in to help more... That's also making an assumption on my part that Roll20 is still handling things on their end with the dice roll...