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

Adding Custom Character Sheet Roll to Turn Tracker

My friend has his own homebrew game system and he doesn't use "Initiative" to determine turn order in combat.  How do we add a field from our custom character sheet into the turn tracker?  New api, macro, hack into the Turn Tracker somehow? Help!
1632634379
Andrew R.
Pro
Sheet Author
I've got a 13th Age Glorantha monster that doesn't roll for Initiative, so I did it like this: /w gm &{template:default} {{name= @{selected|token_name} }} {{Initiative= [[ @{npc_Initiative} &{tracker} ]] }}
But my friend's game system actually has a "Quickness" stat that works like initiative.  How do we tell Roll20 to send that roll to the turn tracker?
1632680754
Kraynic
Pro
Sheet Author
Stat or roll?  If it is a stat, then Andrew showed you how it could be done.  Just insert the attribute you are using in place of the npc-Initiative.  If it is a roll, then the dice roll (+ any modifiers if needed) in in that same place using the inline roll syntax: [[dice roll formula here]]
Didn't work.  Maybe I have the spacing or brackets wrong?  If I invite you to the game, are either of you willing to take a stab at it?
1632796123
Kraynic
Pro
Sheet Author
It would be helpful if you would post the exact macro you are using.  Then we don't have to guess whether you are using a roll, or a stat, or a roll + stat. We could probably get you set up if you gave us that much.
/w gm &{template:default} {{name= @{selected|token_name} }} {{Initiative= [[ @{&{template:ability} {{type=[[0d0+@{character_type}]]}} {{name= @{character_name}}} {{check=[[d20]]}} {{ability=Celerity}} {{Failure=[[ceil(((@{ww-celerity} + @{ge-celerity} + @{aug-celerity})/(@{inept-tog}+1))/2)-abs(@{total_penalty})]]}} {{Strained=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Gear=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{ge-celerity} + @{aug-celerity})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Aid=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Analyst=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity} + @{edge-analyst})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Subtlety=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity} + @{edge-subtlety})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Development=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity} + @{edge-development})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Genius=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity} + @{edge-genius})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Strategy=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity} + @{edge-strategy})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Fervor=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity} + @{edge-fervor})/(@{inept-tog}+1))-abs(@{total_penalty})]]}} {{Degree=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity} + @{ge-celerity} + @{aug-celerity} + @{degree})/(@{inept-tog}+1))-abs(@{total_penalty})]]}}} &{tracker} ]] }}
1632933857
Kraynic
Pro
Sheet Author
Ok, the first thing I see is that you are trying to call a roll template inside another roll template.  You can't use the default template and be trying to call the ability roll template inside of it.  You need to pick a template and use only one for each macro you create.  It also looks like the only thing that is actually going to the initiative tracker is contained in the Degree section of that roll.  Every set of {{ }} in the default template is a new line that is self contained and has nothing to do with anything in previous lines.  And even within the Degree section, there seem to be some floating curly and square brackets that aren't closing off an earlier set from within that line.  Every sort of bracket {,[, ( has to be set up with the same number of opening and closing singles or sets.  If you just run the Degree section (I think I edited it to have the same number of opening and closing brackets), does it work? &{template:default} {{name= @{selected|token_name}}} {{Degree=[[?{Circumstantial Modifier|0}+ceil((@{ww-celerity}+@{ge-celerity}+@{aug-celerity} + @{degree})/(@{inept-tog}+1))-abs(@{total_penalty}) &{tracker} ]] }} If the initiative line is supposed to be what is going to the tracker, then is character_type a number? If so, then that could be: &{template:default} {{name= @{selected|token_name}}} {{Initiative= [[@{character_type}&{tracker}]]}} If character_type isn't a number, then it shouldn't be being sent to the tracker. If all of what is in your post is supposed to be part of the initiative roll, then it all has to be one calculation on one line with the &{tracker} call at the end. 
In the rules system, you roll a d20 for your Celerity, add any Gear Edge (GE) & Augments (Aug), then the d20 references a table for your character type and adds modifiers based on the d20 roll to give you the final result which would go to the turn tracker.  Is there a way to add all of that to this macro?
Is there a way to just send my last roll to the turn tracker?
1632969064
Kraynic
Pro
Sheet Author
So there are 2 d20s being rolled?  1 for celerity and one for your character type?  If that is right, could the person running the game create rollable tables for each character type so that you could roll on those directly instead of having to roll a d20 and then consult a table?  If it just gives a numerical result based on your character type, then it should be possible to create rollable tables for each character type, and then create an initiative macro for each character type (or maybe a query to select the correct rollable table).  Otherwise, this may require a macro that rolls on the table, and then a totally separate roll that rolls everything else and asks for the character type table input.