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

Chat commands in my traits and features

July 01 (3 weeks ago)
Oni
Plus

DnD 5e 2014 Standard sheet.


I am trying to use the chat command /em to execute when I click a trait and feature action that posts the name and description along with the associated roll. I got the roll to work, but the text shows the /em before the rest of it.

/em impedes the attack on an ally with his shield blocking [[d10+@{pb} damage!]]

I have this added after the description of the ability. Any help would be appreciated.

July 01 (3 weeks ago)
Gauss
Forum Champion

Hi Oni,

Please post a screenshot of the output and the area you are clicking on your sheet (open so we can see the contents). 

July 01 (3 weeks ago)
Oni
Plus

Hi Gauss, thanks for the reply! First image is the output, second is highlighting what I click to send it directly from the sheets traits and features section to chat.

July 01 (3 weeks ago)

Edited July 01 (3 weeks ago)
Gauss
Forum Champion

You will need to break the template in order to embed an /em command in it. 

Here is an example of the template: 

@{Test|wtype}&{template:traits} @{Test|charname_output} {{name=test}} {{source=Racial: dfsfsadf}} {{description=testing

/em anotehr test}}

Note how /em is part of the description. 

Your choices are as follows: 
Option 1) Make an Ability macro. Call the Interception Feature/Trait and then put /em blahblah afterwards in the macro. 

Example: 
Ability macro name: Interception
Ability macro body: 
%{Test|repeating_traits_-OU4a0veFJiQ5F6TJRdL_output}
/em blahblah

To get the command drag the text bubble of the Interception ability to the bottom of the sheet. 
Then click the macro button it creates. 
Next, click the chat box where you type, hit the up arrow on the keyboard, and copy the command. 
Put that command in the macro. 
Finally, hover over the macro button, then use the handle to remove the macro button from the bar. 

Option 2) 
Break the template by putting: 
}} before /em

Example: 
stuff in the body
}}
/em more stuff

Note: this will result in "}}" appearing after your emote. There isn't a good fix I can think of for that, but you might try something like 
/w @{character_name
Then it will fire an error message that only you will see because it will try to whisper to the character's name with the } at the end of it, and thus will fail. 

Adding an additional line with a "!" will suppress the extra "}}":

}}

/em impedes the attack on an ally with his shield blocking [[d10+@{pb} damage!]]

!

July 01 (3 weeks ago)
Oni
Plus

Thanks for the help, got it working and its perfect! Even got it adapted to other ones.


July 01 (3 weeks ago)
Gauss
Forum Champion

Thanks Ryan85202, 

I was tired when I posted that and couldn't remember it. 

No problem Gauss, I was surprised that you hadn't thought of it and figured you hadn't had your coffee yet.

Oni, I just caught something looking at your screen shot.  If you move the ending double brackets "]]" to before " damage!" then it will display correctly:

/em impedes the attack on an ally with his shield blocking [[d10+@{pb}]] damage!


July 02 (3 weeks ago)

Edited July 02 (3 weeks ago)
Gauss
Forum Champion


Ryan85202 said:

No problem Gauss, I was surprised that you hadn't thought of it and figured you hadn't had your coffee yet.



I was about 5 minutes from putting head on pillow when I posted. And I usually don't go to bed until I have a hard time seeing straight. :)

July 04 (3 weeks ago)

Edited July 06 (3 weeks ago)
Oni
Plus

Yah I tinkered with it a bit after my last post when I noticed that and figured it out, but thanks for reaching back out with the correction!


Ryan85202 said:

No problem Gauss, I was surprised that you hadn't thought of it and figured you hadn't had your coffee yet.

Oni, I just caught something looking at your screen shot.  If you move the ending double brackets "]]" to before " damage!" then it will display correctly:

/em impedes the attack on an ally with his shield blocking [[d10+@{pb}]] damage