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

Targets w/ Roll Templates

Is there any way to force a target selection while using a roll template? Like, can I use the @{target|Target2|AC} syntax? Thanks!
I snuck it into the damage type field of the attack. It's a bit of a hack but a simple one, in the damage type section of the weapon where it you type piercing change it add that code afterwards. piercing vs AC [[@target|Target1|AC}]] Then it will add it at the end of the damage inside the roll template. Hope that helps!
If you're just working with the Default Template, or your own macros instead of a sheet, you can still use all the same syntax as regular macros. The Templates are a formatting option to display the output differently. ie: &{template:default} {{name=Header Bar Name}} {{ { PropertyNameOnLeftSide=ValueOnRightSide }} Can be used with @{target|Target2|AC} as normal &{template:default} {{name=Header Bar Name}} {{ Attack:[[1d20+2]]=*vs* AC [[ @{target|Target2|AC}]] }} If you're working on a sheet's fields and what to put in them, you'll probably need to either just try it, or find out how the sheet is calculating that field. I don't have much input for you on that piece, unfortunately.
Thanks guys--it looks like I asked the wrong question, as there is indeed no problem inserting target notation inside templates. For some reason, I'm getting an error when I do so from the API scripts, however. But I'll take that to the correct forum!