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

Macro which adds the result to initiative tracker problem

I have googled, and I have searched, and then I googled some more.. In the end I was starting to get crazy, biting my own toe nails in frustration.  So now, I will turn to you guys, the hive mind of special macro knowledge and superior power of bla bla bla. End goal: To be able to quickly roll initiatives for my party and their adversaries and add it to the tracker for all to see. Current situation: 1) I use a roll script which is triggered by a "!ob x+y" command. Example of roll:   !ob 3+3 rolls 3d6 (kinda exploding dice, but more complicated. I will call it exploding dice here, even though its a bit more complicated) and adds 3 to the end result. 2) My current "roll dice macro" looks like this:  !ob ?{Ob|2}+?{Mod|0}  This lets each player chose amount of dices and also the modifikation. It will produce the end result of the dice roll in the chat. Example of die result: ob4+3: 3,3,3,2 = 11+3 Total: 14 3) I am trying to implement &{tracker} at the end to get the result on the tracker. This does not work. Its like the end sum isnt recognized and thus not created on the tracker. Example of my current macro attempt:  !ob ?{Ob|2}+?{Mod|0} &{tracker} (I have a token selected while pressing the macro) 4) IF I would get this macro to work, next step would be to add my three players initiative at the same time, so that I could easily roll for all of them with one macro. Since I cant have all tokens selected I assume that I will have to write the <token_id> somehow on each line. Example  !ob 3+3 &{tracker} (will roll 3d6, "exploding" dice and add 3 and show it on the tracker) !ob 2+3 &{tracker} (will roll 2d6, "exploding" dice and add 3 and show it on the tracker) !ob 4+1 &{tracker} (will roll 4d6, "exploding" dice and add 1 and show it on the tracker) 5) This way I would end up with two macros. One that adds all players initiative to the tracker, and one that will add them one by one (for monsters and such) Is this way to complicated to be done? Or am I going about this all wrong? At first I thought it would be easy to generate a initiative roll and just add it to the tracker, but roll20 has defeated me and made me realize that I am a weak minded pawn! Best regards Daniel
1519389487
The Aaron
Pro
API Scripter
&{tracker} will only work with a roll, like: /r 3d6!!+3 &{tracker} [[ 3d6!!+3 &{tracker} ]] To get it working with an API command, you need to manually manipulate the turnorder property of the Campaign() object inside the script.
1519389556
The Aaron
Pro
API Scripter
Here's a thread where this was discussed earlier this week:&nbsp; <a href="https://app.roll20.net/forum/post/6107308/help-wit" rel="nofollow">https://app.roll20.net/forum/post/6107308/help-wit</a>... Depending on what your !ob macro does, you might be able to get it to work with my GroupInitiative script.
1519389618
The Aaron
Pro
API Scripter
GroupInitiative:&nbsp; <a href="https://app.roll20.net/forum/permalink/4543341/" rel="nofollow">https://app.roll20.net/forum/permalink/4543341/</a>
Ahh So it doesnt see my script as a real roll, I get it now. Would it be ok to PM you with my !ob script? Just to see if it is possible to set up as a roll?
I completely understand if you dont have time
1519390005
The Aaron
Pro
API Scripter
Sure, fire it over. =D
You are my hero!