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

Whats wrong with my Initiative Macro?

This is what my current Macro is doing This is what I'm trying to do with it What am I missing/doing wrong? &{template:npc} {{normal=1}} {{name=@{selected|token_name}}} {{rname=Initiative}} {{r1=[[1d20+@selected|npc_dexterity_mod}&{tracker}]]}}
1555942750
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It looks like the problem is that there is no roll template on the DnD5e by Roll20 sheet that is named {template:npc}. Try this: &{template:npcaction} {{normal=1}} {{name=@{selected|token_name}}} {{rname=Initiative}} {{description=Initiative: [[1d20+@selected|npc_dexterity_mod}&{tracker}]]}}
Thank you so much! I was up for hours last night trying to wrap my head around it. Where can I see what all the &{template:}'s are?
1555969271
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Adaptable Walnut, Here is documentation on the Sheet , and the page dedicated to its Roll Templates .
Thanks for the help! Is there any way to put multiple lines of descriptions? Eg. if I wanted to make a macro that rolled all the saves would I do  {{description=Str}} {{description=Dex}}?
1555978360
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You cannot use the tag twice, but you can have multiple paragraphs within the tag: {{description=Str Dex Whatever else you want}}{{some other tag=Other stuff}} You just can't put a return between tags: {{description=Str}} {{some other tag=Other stuff}}
Okay, thanks for the reply. To my understanding then I can't really make 1 macro with all the saving throws with advantage on the NPC template, i'd have to use the default template to do so?
1555980106
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You could do this: &{template:npcaction} {{normal=1}} {{name=@{selected|token_name}}} {{rname=Saving throws}} {{description=Dex: [[Dex save formula goes here]] Str: [[Str save formula goes here]] ...}} for the saving throws, if you need advantage, just roll twice and use the kh1 nomenclature: {roll1,roll2}kh1
1555989366
GiGs
Pro
Sheet Author
API Scripter
You could also do  {{Str description=stuff goes here}} {{Dex description=stuff goes here}} or even {{Str=stuff goes here}} {{Dex=stuff goes here}} With the default rolltemplate, you can use anything as the title, you just cant reuse the same title.
1556026719
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
GiGs said: You could also do  {{Str description=stuff goes here}} {{Dex description=stuff goes here}} or even {{Str=stuff goes here}} {{Dex=stuff goes here}} With the default rolltemplate, you can use anything as the title, you just cant reuse the same title. You'd need to start with &{template:default} instead of &{template:npcaction}, of course.