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

TOME OF TIPS????

The Tome of Tips for Macros in Roll20.  I have coped and pasted it in to a Macro for my game, yet when I click for an explanation of a condition to appear it will only show text up to the first comma.  Take the comma out and it will show further text. Although that is an option, it makes the grammar look stupid and why the heck is it stopping the text at the first comma anyway?  Heads mashed. 
And there is no incapacitated condition. That I can see.  Not sure why this is being promoted if the effort hasn't been put in to it? 
1622128401
The Aaron
Roll20 Production Team
API Scripter
You're running into a bug with Macros where when you edit them, it strips all the HTML entities that have been encoded in it.  To edit macros, you need to keep a copy of them in text form somewhere, then make your changes there and copy them back to the macro to update them.  If you grab a fresh copy of the macro code from the article and paste it into your macro, it should give you the full description again.
Thank you Aaron, that is what I did yeah.  I will try again. 
The Aaron said: You're running into a bug with Macros where when you edit them, it strips all the HTML entities that have been encoded in it.  To edit macros, you need to keep a copy of them in text form somewhere, then make your changes there and copy them back to the macro to update them.  If you grab a fresh copy of the macro code from the article and paste it into your macro, it should give you the full description again. Perfect, it worked. Still missing 'Incapacitated' though, however looking at how the macro is written I can probably add it myself.  Thank you. 
1622129497
The Aaron
Roll20 Production Team
API Scripter
I bet that missing condition will get addressed.  =D
1622129536

Edited 1622129567
Bianca
Forum Champion
Hi Garry - I took out the commas (I was trying to be grammar-fancy) and added incapacitated, thanks for mentioning that I left it out! I've updated the article on the blog but that can take a few minutes to appear. Best!
Bianca said: Hi Garry - I took out the commas (I was trying to be grammar-fancy) and added incapacitated, thanks for mentioning that I left it out! I've updated the article on the blog but that can take a few minutes to appear. Best! Thank you.  So the comma thing is a thing then? I didn't know that.  Really appreciate the speed of help here. Sorry if I came across grouchy, I am British and have no patience. lol I added incapacitated myself, it was easy to follow what you had done Bianca. :-)  Keep up the great work. Will update my facebook comment on this matter. 
The Aaron said: I bet that missing condition will get addressed.  =D You been casting Augury again? 
1622130461
The Aaron
Roll20 Production Team
API Scripter
Garry Miller said: So the comma thing is a thing then? I didn't know that.  On the technical level, what was happening is this. You have a construct like this: ?{Query|Label,Value, Value continued} Editing Macros causes things like , to get expanded to their actual character, so it ends up like this: ?{Query|Label,Value, Value continued} When Roll20 expands the arguments to the Roll Query, it splits the contents on , to get the label and the value, and ends up with an array like this: ["Label","Value"," Value continued"] The first entry is the label shown in the drop down, the second is the value that replaces the Roll Query when you choose that option.  Anything else ends up discarded. Garry Miller said: You been casting Augury again?  Scriptomancer powers. =D