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

Macro help required

1562682937

Edited 1562683057
Hello everyone, I'm in need of a macro wizard; or at least, a new pair of glasses here. I've been writing a macro for a friend, and for some unknown reason; it refuses to work properly - showing the following error: The macro is as follows, and I cannot see where this error occurs. Can anyone help? &amp;{template:atkdmg} {{mod= +[[@{Tik-Tik|pb} + @{Tik-Tik|wisdom_mod}]]}} {{rname=Venomous Bite}} {{r1=[[d20 + @{Tik-Tik|wisdom_mod}]]}} {{normal=1}} {{r2= [[d20 + @{Tik-Tik|wisdom_mod}]]}} {{attack=1}} {{range=Melee}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d4 + @{Tik-Tik|wisdom_mod}]]}} {{dmg1type=Piercing}} {{crit=1}} {{crit1=[[1d4 + @{Tik-Tik|wisdom_mod}]]}} {{save=1}} {{saveattr=Constitution}} {{savedesc=Poisoned until the start of your next turn}} {{savedc=14}} {{desc=You can use your powerful mandibles to inject your foes with a potent paralytic venom. [Image URL](<a href="https://media.giphy.com/media/mceyXONb0q4EM/giphy.gif" rel="nofollow">https://media.giphy.com/media/mceyXONb0q4EM/giphy.gif</a>)}}
1562683139

Edited 1562683380
The Aaron
Roll20 Production Team
API Scripter
Crit1 has a } misplaced : {{crit1=[[1d4 + @{Tik-Tik|wisdom_mod]] } }} Should be: {{crit1=[[1d4 + @{Tik-Tik|wisdom_mod } ]]}} If you see an error message like that, it generally means the mistake is in an inline roll.&nbsp; Edit: looks like you fixed that. &nbsp;The reason it said it expected "[" and found "i" is that the parser interpreted the "T" in "Tik-Tik" to be the opening of a Rollable Table expression like "t[myTable]".&nbsp;
Ok; so is there any way for us to fix this incorrect call? Such as a way to force it to only parse TikTik; and not the rest. Additionally; I cannot see somewhere where T is followed by a [
1562699777

Edited 1562699791
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You did fix it. Your code works fine for a test character I just created. The Aaron is saying your original post had a macro syntax error. Not T followed by [, but a closing ] in an attribute call rather than a closing }. Your macro should work correctly now.