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

Specific Campaign not reading html code in nested macros

April 12 (3 months ago)

I made a nested macro that works in multiple other games but the game I actually made it for seems to be unable to read the html code in the nested macro.

I also reached out with a bug support and they just said to post here.


Here's a sample of it.

?{Potion

|Baleful 1/Zap 1, 

@{Alvena|wtype}&{template:dmg} {{rname=Baleful & Zap Blast}} 0 {{range=10’ Radius}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2d6 + ?{+@{Alvena|intelligence_mod} Necrotic?|Yes, @{Alvena|intelligence_mod}|No, 0}]]}} {{dmg1type=Necrotic}} {{dmg2flag=1}} {{dmg2=[[2d6 + ?{+@{Alvena|intelligence_mod} Lightning?|No, 0|Yes, @{Alvena|intelligence_mod}} ]]}} {{dmg2type=Lightning}} {{global_damage_mod_flag=1}} {{save=1}} {{saveattr=Constitution & Dexterity}} {{savedesc=half damage}} {{savedc=[[[[(@{Alvena|spell_save_dc})]][SAVE]]]}} {{desc=On a failure creatures can’t regain hit points until the end of their next turn


&


On a failure creatures can’t take reaction until the end of their next turn}}  {{spelllevel=}} {{innate=}} {{globaldamage=}} {{globaldamagetype=}} ammo= } @{Alvena|charname_output}


|Baleful 1/Zap 2,

@{Alvena|wtype}&{template:dmg} {{rname=Baleful & Zap Blast}} 0 {{range=15’ Radius}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2d6 + ?{+@{Alvena|intelligence_mod} Necrotic?|Yes, @{Alvena|intelligence_mod}|No, 0}]]}} {{dmg1type=Necrotic}} {{dmg2flag=1}} {{dmg2=[[3d6 + ?{+@{Alvena|intelligence_mod} Lightning?|No, 0|Yes, @{Alvena|intelligence_mod}} ]]}} {{dmg2type=Lightning}} {{global_damage_mod_flag=1}} {{save=1}} {{saveattr=Constitution & Dexterity}} {{savedesc=half damage}} {{savedc=[[[[(@{Alvena|spell_save_dc})]][SAVE]]]}} {{desc=On a failure creatures can’t regain hit points until the end of their next turn


&


On a failure creatures can’t take reaction until the end of their next turn}}  {{spelllevel=}} {{innate=}} {{globaldamage=}} {{globaldamagetype=}} ammo= } @{Alvena|charname_output} }

April 12 (3 months ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator

If this is a macro that's stored in the collections tab, that macro interface eats html replacements when you open the macro back up to edit it. If you want to avoid this issue, it's recommended to use a macro mule character and put the macro as an ability in the attributes and abilities tab on the character.

April 12 (3 months ago)

it is on a character and I copied it from a google doc in the first place. I am aware of the collections tab eating html.

April 12 (3 months ago)
Gauss
Forum Champion

I would start by simplifying this. I see a number of elements that do not need to be in a query. I have to DM right now but I'll take a look at simplifying it for you later. 

In the meantime, I'd run each section by itself, outside of the query. Make sure they work. 

April 13 (3 months ago)

Edited April 13 (3 months ago)
Gauss
Forum Champion

Here is the simplified version: 

@{Alvena|wtype}&{template:dmg} {{rname=Baleful & Zap Blast}} 0 {{range=[[[5+?{Potion|Baleful1/Zap1,1|Baleful1/Zap2,2}*5]]'] Radius}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[2d6 + ?{+@{Alvena|intelligence_mod} Necrotic?|Yes, @{Alvena|intelligence_mod}|No, 0}]]}} {{dmg1type=Necrotic}} {{dmg2flag=1}} {{dmg2=[[(?{Potion}+1)d6 + ?{+@{Alvena|intelligence_mod} Lightning?|No, 0|Yes, @{Alvena|intelligence_mod}} ]]}} {{dmg2type=Lightning}} {{global_damage_mod_flag=1}} {{save=1}} {{saveattr=Constitution & Dexterity}} {{savedesc=half damage}} {{savedc=[[[[(@{Alvena|spell_save_dc})]][SAVE]]]}} {{desc=On a failure creatures can’t regain hit points until the end of their next turn

&

On a failure creatures can’t take reaction until the end of their next turn}}  {{spelllevel=}} {{innate=}} {{globaldamage=}} {{globaldamagetype=}} ammo= } @{Alvena|charname_output}

April 13 (3 months ago)

I appreciate that, it did help me simplify some of my other macros. The main problem here is the actual macro I made is a lot bigger but seems to not read the html code in the specific roll20 game I made it for, while the macro works fine in every other game I've tried.

April 13 (3 months ago)
Gauss
Forum Champion

If you post the entire macro we can probably modify it so that it works in that game. 

Alternately, please send me an invite to that game so I can take a look at it.

April 17 (3 months ago)

it seems like it's too long to post here but here's a link to the google doc


https://docs.google.com/document/d/1a2Ob5oE5HKjRffI3iyxc5ZpN6fyTPQkAkH-PKPXzA_Y/edit?usp=sharing

April 17 (3 months ago)

Edited April 17 (3 months ago)
Gauss
Forum Champion

Oof, I would completely redo this in Chat Menu form, it will be less likely to break. 

If you really want to try to troubleshoot this particular macro the answer is: do it a section at a time and make sure each section works. 

Then start assembling the macro a section at a time, check to see if it works, then add the next section, then check to see if it works. And so on.