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

HTML Entities not being saved in macro?

So I've tried to upgrade  some GM macros I've been using for Mutants & Masterminds and now discover they are not being saved as written. Here is the section I was going to include in order to select the type of save it required for close, ranged, and AoE macros. {{Save for =?{What type of save?| 1. Toughness,**Toughness DC: **[[(?{Power Level:|10})+15]]| 2. Fortitude,**Fortitude DC: **[[(?{Power Level:|10})+10]]| 3. Willpower,**Willpower DC: **[[(?{Power Level:|10})+10]]| 4. Alt Fortitude,**Alt Fortitude DC: **[[(?{Power Level:|10})+15]]| 5. Alt Willpower,**Alt Willpower DC: **[[(?{Power Level:|10}) +15]]}}} I saved it. Then returned to the macro.only to find: {{Save for =?{What type of save?| 1. Toughness,**Toughness DC: **[[(?{Power Level:|10})+15]]| 2. Fortitude,**Fortitude DC: **[[(?{Power Level:|10})+10]]| 3. Willpower,**Willpower DC: **[[(?{Power Level:|10})+10]]| 4. Alt Fortitude,**Alt Fortitude DC: **[[(?{Power Level:|10})+15]]| 5. Alt Willpower,**Alt Willpower DC: **[[(?{Power Level:|10})+15]]}}} It was edited automatically; which does not allow it to work. Discouraging, but I suspect there is a reasonable answer. Can someone tell me why? 
1643648119
David M.
Pro
API Scripter
That has always been a thing. Html entities in Collections macros work fine unless you ever open them again, in which case they get replaced. Note that if you place the same macro text with html entities in a char sheet Ability, the entities are preserved. This is one reason some people use the "macro mule" concept (a sheet that just contains a bunch of abilities for portability, organization, and to avoid the html replacement problem).
1643648184

Edited 1643689159
GiGs
Pro
Sheet Author
API Scripter
Your macros include html entities like | and } When you SAVE a macro, containing them, they DO save properly. When you OPEN a macro with those, they get processed and converted into the symbols they sepresent. That breaks the macro. So, they'll work fine until you open them. When you close a macro containing html entities, never reopen it. Alternatively, save them as an Ability on a character sheet. Abilities aren't processed in the same way, so html entities stay as they were when you created the ability. The syntax for calling abilities is a little different, so it does entail a change, but many people create a character called Macros, and save their macros as Abilities there. When creating the macros character, make it Visible to no one, but Editable by All Characters. This means players can use the "macros" in it (with a slightly different syntax: %{macros|ABILITY-NAME} ), but the character doesnt show up in their journal.
1643654719
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Here are some handy links: Macro Character Sheet HTML Entities The note on that page about "Coming Update: Nested Query Improvement" is out of date. IIRC, that was rolled back because it broke other things?