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

Initiative Macro attempt

1587972416
Sebathius
Marketplace Creator
Heya, Im trying to figure out macros for the first time, Ive been wanting a macro where I could see a token selected spit out chart that basically shows three results of Initiative standard, with Advantage, and with Disadvantage. How can I clean this up into a chart that doesn't show me the roll set up, but rather just the result?  At the moment this is the mess Im starting with:  And its giving me this mess:  I mean the data is there, It just takes up so much space and I would rather it was just in a chart. Is it possible Im trying to reinvent the wheel and someone out there has already built something like this?
1587974714
Ziechael
Forum Champion
Sheet Author
API Scripter
You've got half of it in a template and half out of it... as it stands it would roll all three initiative options and only use the last one (each subsequent one would overwrite the previous ones for the selected token). Try this out: /w gm &{template:default} {{name=Initiative for @{selected|token_name} }} {{ Roll= [[ ?{Type|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{selected|initiative_bonus} &{tracker} ]] }}
1587980318
Sebathius
Marketplace Creator
Ziechael said: You've got half of it in a template and half out of it... as it stands it would roll all three initiative options and only use the last one (each subsequent one would overwrite the previous ones for the selected token). Try this out: /w gm &{template:default} {{name=Initiative for @{selected|token_name} }} {{ Roll= [[ ?{Type|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{selected|initiative_bonus} &{tracker} ]] }} Thanks very much Ziechael, I appreciate it. Being able to figure out the nesting is throwing me a little cock-eyed but I think I understand what you did there.