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 bug when adding two sheet repeating attributes

I think there is a bug in how macros are compiled, check this: my macro that doesn't work but get "[ error", untranslated from Swedish now but well you get the meaning without understanding the words. /roll ([[@{selected|repeating_vapen_0_vapenfardighet} + @{selected|repeating_vapen_0_vapenbonus} + ?{Modifikation|0}]])d6>6 now a simple change that suddenly work: /em first roll /roll @{selected|repeating_vapen_0_vapenfardighet}d6>6 /em second roll /roll @{selected|repeating_vapen_0_vapenbonus}d6>6 or is the notification in the first one wrong?
Sorry notification error it seems. If removing [[ ]] it worked as intended
1416353273
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Johan, it's a problem with your syntax. Try: [[(@{selectedrepeating_vapen_0_vapenfardighet}+@{selected|repeating_vapen_0_vapenbonus}+?{Modifikation|0})d6>6]]