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

iniciative Macro issue

hi, i am trying to use this macro for my campaign, and aparently ther is something wrong with it, but i cant find the issue on my own. Any idea what could be wrong in it? Ty for responce  (my character sheet is D&D 5E by Roll20) Script:  &{template:simple} {{charname=@{selected|token_name}}} {{rname=Initiative}} {{mod=@{selected|initiative_bonus}}} {{r1=[[? {Roll Initiative with advantage?|Normal Roll, 1d20|Advantage,2d20kh1|Disadvantage,2d20kl1|Super Advantage,3d20kh1|Super Disadvantage,3d20kl1} +@{selected|initiative_bonus}[INIT] &{tracker}]]}}{{normal=1}}
1669578854
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Minerko Sk! There were a lot of extra returns and spaces in there which was messing up the syntax. Try this: &{template:simple} {{charname=@{selected|token_name}}}{{rname=Initiative}} {{mod=@{selected|initiative_bonus}}} {{r1=[[?{Roll Initiative with advantage?|Normal Roll, 1d20|Advantage,2d20kh1|Disadvantage,2d20kl1|Super Advantage,3d20kh1|Super Disadvantage,3d20kl1}+@{selected|initiative_bonus}[INIT] &{tracker}]]}}{{normal=1}} For reference, you had a space between the ? and the query, and extra returns at several points in the query and in the roll template.
works perfectly, big TY  💗
1669707176
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Geoffrey! I haven't used Shaped in years, but if you post what you have tried, someone more familiar with the sheet might be able to point out the problem. It might also help if you described which modifiers you want to use, and what is not working with the built-in initiative action.