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

Problem with adding Round counter to tracker

I've created a round counter icon named "Round" and a macro which is supposed to add the word "Round" with the value "0" to the tracker and add to the value of Round 1. I thought this would work: [[0 &{tracker:+}]] When I select the round counter icon and start the macro the word Round and the value 0 is added to the tracker, but it doesn't add 1 to the counter as I cycle through the turns, it just stays at zero I also tried [[0 &{tracker:+1}]] and [[0d0 &{tracker:+}]] but I get the same result. Have I misinterpreted how to implement the increment?
1428729653

Edited 1428729669
Lithl
Pro
Sheet Author
API Scripter
&{tracker:+} will add the value of the roll (or math expression) to the initiative value of the token. So, [[0 &{tracker:+}]] will add 0 to the selected token's initiative. I don't believe there is a means to add a round calculation to a token's initiative (there may be a way with the API, but that requires a Mentor subscription). To create an item in the turn order with a round calculation, you need to create a custom item, not attached to a token. You can do this from the Turn Order Settings window (the gear button at the bottom of the turn order window), where you can also specify the round calculation. In order to increment the round counter by 1 each turn, your round calculation should simply be "1".
Got it. Thanks.
1428759354
Falcon
Pro
Sheet Author
Hey Brian - I do that now but is there a way I can have a macro create a round (or any type of custom item) without having to manually do it? The other issue I have with the custom item in round tracker is that it isn't separate from the initiative order so as it counts down or up it gets mixed up in the initiative order...
1428762370
Gen Kitty
Forum Champion
I wonder, will the tracker accept .1 or .01 as its increment measure? That at least would keep it to the end of the init order.
1428777609
The Aaron
Pro
API Scripter
GenKitty said: I wonder, will the tracker accept .1 or .01 as its increment measure? That at least would keep it to the end of the init order. Looks like it only accepts integers.
1428783622
Lithl
Pro
Sheet Author
API Scripter
Black Falcon said: Hey Brian - I do that now but is there a way I can have a macro create a round (or any type of custom item) without having to manually do it? The other issue I have with the custom item in round tracker is that it isn't separate from the initiative order so as it counts down or up it gets mixed up in the initiative order... The API can handle that, but there's not other means to do it.