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

&{tracker} giving wrong value!

Including a picture to explain it all. <a href="https://www.screencast.com/t/qo5PqDNf" rel="nofollow">https://www.screencast.com/t/qo5PqDNf</a> Made an Initiative macro for our game, used the &amp;{tracker} to add them to the tracker.&nbsp; However, multiple tests, the number rolled and what is added to the tracker are not the same... Any ideas?
1563982830
Spren
Sheet Author
First things first. Does it work when you don't use Power Cards?&nbsp;
Tested and yes, apparently it does... <a href="https://www.screencast.com/t/SyJMPVgIKjB" rel="nofollow">https://www.screencast.com/t/SyJMPVgIKjB</a> Which in the end, works as needed.&nbsp; I use power Cards for all other items, and so simply used it for this.
I have the same problem.&nbsp; What is power cards tho?&nbsp;
1564000945
Gen Kitty
Forum Champion
Powercards is an API script that predates Roll20's roll templates. Powercards allows a user (any user, not just the GM, on per-'card' basis) to change anything and everything about how a macro displays its output.&nbsp; Change title, sub-title, and/or body text font, color, background color, formatting, justification Only show information if a dice roll or total meets certain conditions Whisper a roll to someone or someones, even make it so the originating player does not see the messages (perfect for blindrolling so only the GM sees the result) Around v3.4 the maintainer switched from Sky to the new person, and it became a OneClick API Library item, easily installed by any GM in a campaign where the Creator has a Pro level subscription.&nbsp; There's a number of threads about Powercards in the API forum.
1564008909

Edited 1564015155
The Aaron
Roll20 Production Team
API Scripter
Because of the way PowerCards works, what's passed to the API command as an inline roll is not what is shown in the output.&nbsp; If you turn on 3d dice, you'll see different rolls from them than are displayed in the inline output.&nbsp; This is because PowerCards takes the formula from the passed in roll and uses the formula for the displayed roll.&nbsp; What was rolled as part of the input is discarded and replaced with new output.&nbsp; There's some technical reasons for doing it that way, mostly around not having to reimplement formatting of inline rolls. To put initiative in with the correct number, instead of using &amp;{tracker}, there's a special parameter you pass to PowerCards as part of your roll.&nbsp; I think it's like this: !power {{ --tokenid|@{selected|token_id} --emote|@{selected|token_name} rolls initiative! --name|Action --leftsub|Self --bgcolor|#ffcc66 --Initiative Roll|[[ [TRKR] ?{Boosted|N,2d6|Y,3d6} + @{selected|init} ]]