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

Combining fx with Roll Templates

1724881502

Edited 1724881758
Good Day, With the update to FX in jumpgate, I thought I would try being fancy and adding fx to a few of my macros. However, I cannot figure out how to get fx commands to work with roll templates. I suspect it may actually not be possible, but thought I would ask here. Here is one example of what I have tried, with most of the actual roll removed: /fx missile-fire @{selected|token_id} @{target|Target 1|token_id} \n &{template:foo} {{name=Fire Bolt}} I have tried \n, \\n, html codes for new line and carriage return (and multiples), html codes for \n, nothing in between, having the /fx portion before / after the roll, and so on. It only ever seems to do the first one. That is, if fx is first, it works, but not the roll. If the roll is first, it works, but not the fx. If I use html codes for new line alone, they work, but won't do anything in combination with fx and the roll template.  So, is there any way to do this, or am I just out of luck on this one?
1724881761
Gauss
Forum Champion
Hi Alexander,  I suggest moving it to the next line down. Also, your template does not appear to be one of the templates I am familiar with. Which character sheet are you using?  Example of what works for me:  /fx missile-fire @{selected|token_id} @{target|Target 1|token_id} &{template:default} {{name=Fire Bolt}} {{This is an output=}}
Well, I feel silly. It seems I had the right idea, but was attempting it in the most complicated way possible, which didn't work. For some reason, I assumed a normal newline wouldn't work, and was trying every trick I could think of to do newlines via html code and so on. So, yes, I just did a normal newline, and it worked flawlessly.  As far as what template, it is actually &{template:5eAttack}, I just replaced it with filler text, since I figured the problem wasn't within the roll template. I use a custom character sheet with a heavily modified version of the 5e attack template (or at least what it was over half a decade or so ago).  In any case, thank you very much for the help. You saved me a lot of time trying to make something very simple into something complicated.