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

my macro is changing itself once i save it and slightly bugging

So i created a macro to show a picture, a bit of text, and two rollable buttons /w gm &{template:default} {{name= X }} {{[image](link#.png)}} {{ top text  bunch of text}} {{[Roll damage](!
[[ 5d20 ]])}} {{[Roll loot](!
[[ 5d20 ]])}} but instead it changes to this: /w gm &{template:default} {{name= X }} {{[image](link#.png)}} {{top text bunch of text}} {{[Roll damage](! [[ 5d20 ]])}} {{[Roll loot](! [[ 5d20 ]])}} when pressing on the buttons instead of displaying a nice number [47] one can hover over to see the roll it shows the entire roll like this: Rolling 5d20 = (10+4+18+7+8)'>47 how do i prevent this?
If you enter a macro with any html entities into the collections tab, whenever you reopen it, the html entities will be parsed (replaced) with the characters they represent and it will break the macro if those entities are required.  So you can continue to use the collections tab macro as long as you never reopen it (keep a saved copy somewhere in case you do), or you can save the macro onto a 'macro mule' character as an ability, because those do not  get parsed when opened.
Jarren K. said: If you enter a macro with any html entities into the collections tab, whenever you reopen it, the html entities will be parsed (replaced) with the characters they represent and it will break the macro if those entities are required.  So you can continue to use the collections tab macro as long as you never reopen it (keep a saved copy somewhere in case you do), or you can save the macro onto a 'macro mule' character as an ability, because those do not  get parsed when opened. you wouldnt by any chance know a macro that does this {{[Roll damage](!
[[ 5d20 ]])}} without the html entities?
1623091602
The Aaron
Roll20 Production Team
API Scripter
Such a macro is not possible.  Deferring the evaluation of an inline roll requires HTML escaping.
Camillo said: Jarren K. said: If you enter a macro with any html entities into the collections tab, whenever you reopen it, the html entities will be parsed (replaced) with the characters they represent and it will break the macro if those entities are required.  So you can continue to use the collections tab macro as long as you never reopen it (keep a saved copy somewhere in case you do), or you can save the macro onto a 'macro mule' character as an ability, because those do not  get parsed when opened. you wouldnt by any chance know a macro that does this {{[Roll damage](!
[[ 5d20 ]])}} without the html entities? That's not possible. The better way to do what you are looking for is to create the 'macro mule' character.  Create a character called 'Macros' and on the abilities tab, create an ability called 'RollDamageLoot' (or whatever you want it to be called) with your original code: /w gm &{template:default} {{name= X }} {{[image](link#.png)}} {{top text bunch of text}} {{[Roll damage](!
[[ 5d20 ]])}} {{[Roll loot](!
[[ 5d20 ]])}} Then on the collections tab, create a macro called that has this code in it: %{Macros|RollDamageLoot} Also, if you have a specific goal in mind, there are many other players active on the forums that are very crafty with creating macros and queries and rolls and may be able to help you design something better.  Make sure you list which game you are playing and which character sheet you are using, as the roll templates and other things will vary from game to game.
1623145217
GiGs
Pro
Sheet Author
API Scripter
The macro mule is the best solution. But bear in mind, the macro text only gets changed when you OPEN a macro. If you enter your macro, and close it, you can use it and it will work properly, so long as you never reopen it.