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 to add bar 2 number + d20. Cannot get the bar to be added to the roll.

&{template:default} {{name=Frost Check}} {{Check=[[1d20 + @selected|bar_2]]}} I thought that would give me a 1d20 + the current bar value of the selected token. I made the value of the bar 30 to test it. It is not getting added to the d20 roll. Is my macro bad?
1609809504
Jordan C.
Pro
API Scripter
The syntax is a bit off and needs curly braces for attribute calls, so - @{selected|bar_2} should work in place of what you have now
Thank you so much! I'm very much still learning. Appreciate it.
1609809818
Jordan C.
Pro
API Scripter
It's where we all started! Happy macro-ing 
1609815762
Oosh
Sheet Author
API Scripter
You'll also need to get rid of that underscore... for macros it's @{selected|bar2}, for API objects it's bar2_value... you've got a Chimera going on there :)