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

If/Then Gunslinger Initiative, reference custom value x/y "Grit" into basic Initiative Macro

I tried looking around, I'm not good with macros in general. Can anyone help me piece together a macro that will add 2 to my initiative as long as this custom value exceeds 0? this is the macro I'm currently working off "[[1d20 + 12.12 &{tracker}]]" it's supposed to be 10 + 2 I just want it to know in case I forget
1666136780
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You'll want the keep grouping and success syntaxes: [[1d20+[[2*{0,@{grit}}>1]]]] You probably want to add the {0,@{grit}}>1  bit to an attribute that is used for a bonus to initiative, but I'm not sure which character sheet/system you are using. Additionally, you'll want to replace the @{grit}  bit with a reference the the attribute you are storing your grit value in.
Okay thank you I will add this as a piece of the macro and see if that works.
Okay thank you I will add this as a piece of the macro and see if that works.