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 .
×
May your rolls be chill this holiday season!
Create a free account

NPC Roll Template?

Using D&D 5e by Roll20 Roll Templates. I generated an action from one of my NPC's that shows to follow the NPC template, and I wanted to modify it. It just shows  {template:npc}  and i couldn't find documentation on it on the wiki, just npcaction, npcatk and npcdmg. Anybody knows what are the fields for this template?
1608319473
Jordan C.
Pro
API Scripter
Here is a quick outline of what it uses: &{template:npcatk}  {{ attack =1}}  {{ damage =1}}  {{ dmg1flag =1}}   {{ name =Name}}  {{ rname =Weapon}}   {{ type =Type}}  {{ r1 =[[0]]}}  {{ always =1}}  {{ r2 =[[0]]}}  {{ charname =Charname}} And the result if that is typed into chat: It also use {{rnamec= rnamec }} and {{typec= typec }} for npcs to determine critical results when pressing the attack buttons. These are easily deconstructed by going into the chat input box and pressing the UP arrow to see what was typed out after pressing an npc command. From there there things like "@{Bandit|npc_name_flag}" which turns into a literal string of {{name=Bandit}}. You can figure that out by typing any attribut call by itself and seeing the result in chat.
Thanks! Is there not an option for a description or comment like in the npcaction version of it?  
1608319856

Edited 1608319928
Jordan C.
Pro
API Scripter
D'oh, I did atk instead, my mistake! Same principals apply though: &{template:npcaction} {{ name =Name}} {{ rname =Action}} {{ description =Description}} and &{template:npctraits} is just name and description
1608320195
Andreas J.
Forum Champion
Sheet Author
Translator
These two pages have some examples and if on the npc attributes referenced in rolls, and the template itself: <a href="https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates#NPC_Action" rel="nofollow">https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates#NPC_Action</a> <a href="https://wiki.roll20.net/D%26D5E_by_Roll20_NPC_Attributes" rel="nofollow">https://wiki.roll20.net/D%26D5E_by_Roll20_NPC_Attributes</a> You can also open a NPC sheet, roll one of the buttons, and then go and select the Text Chat, and the macro used for your latest roll appears in the chat box, making it easier to study. (click on gif for showing the animation)
Oh yeah I meant adding a description to the attack output. My point is wantin to&nbsp;have a roll and a comment underneath to remind myself of a DC to meet
oh i figured it out! Didn't know the NPC attack&nbsp;had a type input as well as a description. Any way to capitalize the Type field?&nbsp;
1608323653
Jordan C.
Pro
API Scripter
A bit of a non-answer since I am by no means adept at character sheets, but I believe &nbsp;you can only adjust the styling by changing the css of the character sheet roll templates.&nbsp;
Jordan C. said: A bit of a non-answer since I am by no means adept at character sheets, but I believe &nbsp;you can only adjust the styling by changing the css of the character sheet roll templates.&nbsp; Answer enough to stop me from wanting to invest time changing it! Thank you a lot!
1608327461
Jordan C.
Pro
API Scripter
I know the feeling, no problem!
If you want to 'hack' the output a bit, you can use Oosh's HTML Style injection trick .