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

Ignore Error Options

There are times a roll/macro/action is used and the macro cannot find a certain attribute/ability etc and responds by filling the chat window with "No Attribute was found for targeted token by the name of X". Is there a way to have these error messages no show up? The macro performs its roll and function and returs the result as needed without these attributes and when it finds these attributes it goes one step further and handles a result based on them (I love Powercards). I just don't want the wall of pink-orange error text popping up. Is there a way to avoid this?
1601994497

Edited 1601994517
Ziechael
Forum Champion
Sheet Author
API Scripter
You can use the &{noerror}  syntax to suppress those messages but it won't stop them from breaking macros.. if they are numerical values you can prefix the attribute call with a 0 to ensure a complete equation: [[ 1d20 + 0@{selected|possible_attribute} &{noerror} ]]
Thanks. How do you make that work in a if/then portion of a powercard?
1602028737
Oosh
Sheet Author
API Scripter
Not sure about the Powercards, but I gave up on trying to get &{noerror} to work with @{target} macros, and ended up using Stylus instead. You can easily switch it off if you need the errors back for any reason. div.message.error { display:none; } So much easier than trying to get the macros to behave.
How do I do that? I mean where do I place the Stylus code? Oosh said: Not sure about the Powercards, but I gave up on trying to get &{noerror} to work with @{target} macros, and ended up using Stylus instead. You can easily switch it off if you need the errors back for any reason. div.message.error { display:none; } So much easier than trying to get the macros to behave.
Stylus is an extension for Chrome and Firefox . I'd suggest checking out this forum thread as well for lots of other CSS you can add. Basically Stylus just overwrites the CSS that your computer displays to you, so it only affects what you see, and not any other players.