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

why doesnt this pre-built macro in Descent into Avernus work? what can I do to fix it?

I purchased Descent into Avernus from Roll20. I wanted to use the macro to roll on a random table that is published in the adventure, but it doesn't seem to work. The table is on p. 68, Ch. 2, Section G6, "Undead Pit". Is there something (simple) I can do to fix the macro so it will give me a result? See " This time, [[1t[Ch2-G6-Undead-Pit-Creation]]] crawls out of the pit." Here is the table as published: Undead Creation d20 Undead 1–4 Skeleton 5–7 Zombie 8–10 Shadow 11–12 Specter 13–15 Ghoul 16–17 Ghast 18–19 Wight 20 Wraith Here is the macro "Ch2-2-GCC-G06-Undead-Pit" that doesn't roll the table but it should: /w gm &amp;{template:npcaction} {{rname= G6. Undead Pit }} {{name= Grand Cemetery-Chapel }} {{description= The mist is formed by necromantic energy emitted from the corrupted Companion. A successful **DC 10 Intelligence (Investigation) check** made to study the mist reveals that it pulsates in sync with the crackling energy of the corrupted Companion. ?{Choose|Entering the Mists,Any creature that enters the mist for the first time on a turn or starts its turn there takes [[1d10]] necrotic damage. Climbing the sides of the pit without equipment requires a successful **DC 10 Strength (Athletics) check.**|Undead Pit Creations,Whenever Gideon directs his minions to toss a dead body into the pit, an undead creature crawls forth one hour later. Newly created undead patiently wander the cemetery grounds until Gideon gives them orders. This time, [[1t[Ch2-G6-Undead-Pit-Creation]]] crawls out of the pit.} For more information, see ***[Grand Cemetery Chapel, area G6](<a href="http://journal.roll20.net/handout/-LnA9_Jv7KJAbQ9hq-W6)***" rel="nofollow">http://journal.roll20.net/handout/-LnA9_Jv7KJAbQ9hq-W6)***</a>. }}
1594339522
GiGs
Pro
Sheet Author
API Scripter
There are a couple of commas in the description. They break the query, and the text cuts off at the first comma. This problem is described here:&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> You have three options: Edit the text to remove the commas after "into the pit," and "This time," Change those two commas to the html entity for a comma. If you do that, you also need to do one of the following: Save the Macro and never reopen it. If you reopen it the html entity will turn back into a normal comma and break the macro again Copy the macro to a character ability and launch it from there. You can safely open it from there without breaking the macro. The html entity for a comma is&nbsp; &amp;#44;
Thank you it worked perfectly. Did I mess up the macro just by looking at it?
1594352420
GiGs
Pro
Sheet Author
API Scripter
Thats what I thought probably happened. Roll20 should have warnings about not opening those macros.&nbsp;
I looked at all of them when I got the module. Oh boy. I wonder how many are broken now... How else can you test them without looking at them? I mean, when you open them it even has a "test macro" button.&nbsp; Sheesh. I'm just bummed, I feel like Roll20 just ripped me off. I'm sure you don't work for Roll20. Thanks again for your help.
1594354893

Edited 1594354946
GiGs
Pro
Sheet Author
API Scripter
That sucks. If you haven't played the game yet, you can create a new campaign from the module and start fresh. Even if you have played - you can use the Character Vault to copy PCs out and import them into the new campaign.
1594354949

Edited 1594355047
Oosh
Sheet Author
API Scripter
Lisa said: I looked at all of them when I got the module. Oh boy. I wonder how many are broken now... How else can you test them without looking at them? I mean, when you open them it even has a "test macro" button.&nbsp; Sheesh. I'm just bummed, I feel like Roll20 just ripped me off. I'm sure you don't work for Roll20. Thanks again for your help. There's a little d20 icon to the left of the macro name - that will test it without opening it. It is a bit odd that the macros are that easy to break in paid content. They should have stuck them all on a character sheet instead of the collections bar - Ability macros on a character sheet don't have the same problem with HTML entities. They could then link straight to these from another macro in the Collections tab if the goal was to have all macros available from there. Have you actually started the campaign? It might be worth starting a new game if you think you've broken that many macros. It's generally only if the macro has a Query with the characters } , or | inside of it that would need HTML replacement - so hopefully the majority of your macros are fine. I don't have the content myself, but essentially anything without a Query pop-up should be fine. Anything with a Query pop-up will probably need to be checked.
Thanks both of you. We are in the middle of the campaign. But now I know what macros might be broken and that they can be fixed. Much thanks for your help.