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

Adding number of dice with inline

So here is a working version of what I am attempting "/r (@{challenge}+@{SYS|aid}+@{SYS|mastery}-@{SYS|difficulty})d10kh1" I would like to get this working inside a template on a line but whenever I do I am getting back errors. Does anyone have any advice?
How are you calling this command? Typing it into chat? A Collections macro (on the right sidebar)? An Ability macro (on a character sheet)? What error message are you getting? What do you mean you want it in a template on a line? The @{challenge} does not have a character reference, so that will only work if it is being called from a character sheet. You would need to use @{SYS|challenge} to call it from the chat or a Collections macro. 
Parenthesis don't work in inline rolls, you'll need to format it with nested inline rolls instead: [[[[@{challenge}+@{SYS|aid}+@{SYS|mastery}-@{SYS|difficulty}]]d10kh1]]
Jarren said: How are you calling this command? Typing it into chat? A Collections macro (on the right sidebar)? An Ability macro (on a character sheet)? What error message are you getting? What do you mean you want it in a template on a line? The @{challenge} does not have a character reference, so that will only work if it is being called from a character sheet. You would need to use @{SYS|challenge} to call it from the chat or a Collections macro. I am calling the command by using token actions. It's my own system so I'm setting it so players can click their token to get all their skill rolls as actions with their skills as attributes. SYS is a character I control where I modify difficulty and the like separately so players don't have to input anything. Tuo said: Parenthesis don't work in inline rolls, you'll need to format it with nested inline rolls instead: [[[[@{challenge}+@{SYS|aid}+@{SYS|mastery}-@{SYS|difficulty}]]d10kh1]] THANK YOU! I was fiddling with it all last night trying to get it to work properly and am so thankful someone had a fix!