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

All macros display 0 in chat

I've been making a custom game, and after sinking dozens of hours into making custom macros I upgraded to a 'plus' account. Now whenever I use a macro the result in the chat is zero. When I hover on the result it shows the macro is calculating correctly. Beyond frustrated with roll20.
It would be helpful if you posted the content of the macro in chat to see where the error might be.  Screenshots of the output will be helpful as well.
Here's one example: /em @{selected|token_name} ATTACKS [[(?{Combat Skill|Melee,@{selected|melee_combat}|Melee Weapon,@{selected|melee_weapons}|Ranged Weapons,@{selected|ranged_weapons}}+@{selected|agility}+?{Reach|0|1|2|-1|-2}+?{+Modifier|0|1|2|3|4|5|6|7|8|9|10}-?{-Modifier|0|1|2|3|4|5|6|7|8|9|10}-@{selected|wound}+1d6)]]
These macros have been working fine. Soon as I upgraded my account this happened.
1659992481
Gauss
Forum Champion
Please hover over the "0" and take a screenshot, it will show us what is happening during the roll.
Figured it out. The wound attribute on the character sheet was -1 (not sure why lol). So it I'm thinking it didn't like subtracting a negative number. Updated the char sheet and all macros containing '-@{selected|wound}' work now. Thanks for replying.
1659993800
Gauss
Forum Champion
Excellent, good luck :)
1660002761
Kraynic
Pro
Sheet Author
The dice roller doesn't like having doubles: ++ or --, though it is fine with +-.  If you end up with doubles like that, it just seems to give up.
1660016025
GiGs
Pro
Sheet Author
API Scripter
You can usually avoid doubles by putting the things that will generate them inside parentheses ( ).