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

Error Suppression on a Macro [5E OGL] [PLUS MEMBER]

1515264471

Edited 1515265493
I'm trying to make a macro fail silently. If no token is selected, or if a token is selected that doesn't have a journal, I want the macro button to do nothing. If a journaled character is selected, it should work.  the noerror roll option doesn't seem to work. Here is my macro. This is using 5E OGL. It's an Init macro. [code] &{template:simple} {{rname=^{init-u}}} {{mod=@{selected|initiative_bonus}}} {{r1=[[@{selected|initiative_style}+@{selected|initiative_bonus}@{selected|pbd_safe}[INIT] &{noerror} &{tracker}]]}} {{normal=1}} @{selected|charname_output} [/code] Works great for PCs with journal entries and NPCs too. But a token without a journal entry spits out the following in chat. Any way to just make that not happen?
To suppress an error would most likely require use of the API, primarily because that would involve a conditional statement. I do not know of a way to do this in a macro alone. Also, the [PLUS MEMBER] tag in the title is unnecessary. Subscribers do not get special treatment on the forums, with the exception of Pro subscribers having access to an additional forum in which to post.
I put that Plus Member on there specially to mean that I"m NOT a Pro member, so I don't have API access. lol. Should I not do that? I was just trying to be helpful.
I apologize for jumping to that conclusion then, sorry. In my opinion the title tag isn't necessary since people viewing the post can see the [Plus] icon next to your name. Hope my first response was able to answer your question.
Ahh, I see the PRO and PLUS tags next to the name now. I realize that makes my title tag unneccesary. I won't do that in the future. And thanks for the help.