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 .
×

Turn Tracker Not Showing the Correct Initiative Roll

I've read through and did not see this issue, so I apologize if I've missed it. I use the following initiative macro: !power {{ --name|Initiative --@{selected|token_name} Rolls|[[2d10!+@{selected|Coordination}&{tracker}]] }} It works correctly in the chat area, but when it sends the number to the turn tracker, the number is always wrong. Someone will roll 12 and the tracker will say 13. The next person will roll 2 and the tracker will say 5, and so on. There is not pattern that I can tell. Maybe I am missing a bracket or something? Any help would be appreciated.
1621862813
The Aaron
Roll20 Production Team
API Scripter
If I remember correctly, power cards always does it's own rolls and ignores what was in the inline roll.  So what's happening is the inline roll happens in your browser and the value is harvested for the tracker, then powercards extracts the formula from the inline roll, does it's own roll, and outputs the results (actually, it might just send the formula as a new inline roll to get the popup info about the roll to show up correctly).   Either way, I believe there is an option you pass to Power Cards to have it add things to the turn tracker, check the documentation.
1621862922
The Aaron
Roll20 Production Team
API Scripter
Right, check this out:&nbsp;&nbsp; <a href="https://wiki.roll20.net/Script:PowerCards" rel="nofollow">https://wiki.roll20.net/Script:PowerCards</a> Looks like you need to do this: !power {{ --name|Initiative --@{selected|token_name} Rolls|[[ [trkr] 2d10!+@{selected|Coordination}]] }}
Thank you! That was exactly the problem. I don't know why I didn't think to look up Power Cards.