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 and output template

I am using the following macro for initiative: &amp;{template:default} {{name=@{selected|token_name} rolls for initiative}} {{Initiative=[[1d20+@{selected|dexterity_mod}+@{selected|dexterity}/100&amp;{tracker}]]}} It works as intended. I made it available to all players, and if they select their token, they get the initiative button as a token action and with one click can roll for initiative and add that to the tracker. However the output in the chat looks like this: If I use the D&amp;D 5E by Roll20 sheet to roll initiative from the character sheet, the output looks like this: The difference is obviously that my macro uses &amp;{template:default}, and the sheet uses a different template, presumably the "simple" one described at&nbsp; <a href="https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates" rel="nofollow">https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates</a> . But if I try to use that one: &amp;{template:simple} {{rname=Initiative}} {{mod=@{selected|dexterity_mod}+@{selected|dexterity}/100&amp;{tracker}}} {{r1=1d20}} {{normal=1}}&nbsp; {{charname=@{selected|token_name}}} the output is all wrong: Can somebody help me to fix my macro? I probably messed up somewhere with the brackets and parentheses.&nbsp;
Hello, try this: &amp;{template:simple} {{rname=Initiative}} {{mod= [[ @{selected|dexterity_mod}+@{selected|dexterity}/100&amp;{tracker} ]] }} {{r1= [[ 1d20 ]] }} {{normal= [[ 1 ]] }}&nbsp; {{charname=@{selected|token_name}}}
Thank you, that fixed it.