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 .
×

ATK template not being filled out

1592379376

Edited 1592379449
Hi, I just recently joined up and am trying to figure out how to build some repeating NPC macros. I'm trying to use the atk template with the following; /w gm &{template:atk} {{mod=mod}} {{rname=rname}} {{rnamec=rnamec}} {{r1=r1}} {{always=1}} {{r2=r2}} {{range=range}} {{desc=description}} {{spelllevel=spelllevel}} ammo=ammo {{charname=charname}} %{selected|repeating_npcaction_$0_npc_action} It comletes some of the info like rolls, npc name and attack name, but the range, description and modifier aren't being filled out. Sorry, I'm sure this question has been asked before but I've been searching for an answer for hours with no success. Many thanks
1592381461

Edited 1592381615
Oosh
Sheet Author
API Scripter
You probably need to reference the templates page to see which fields will and won't be filled out depending on the output. The code you posted looks like it's straight from that page, if you post the code you're actually trying to run then someone can probably help with where it's going wrong. For example, the second dot point under the ATK template reads: In order for the rname, rnamec and mod fields to be output, r1 and, if included, r2 must be a calculable roll value.