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

Custom Dialogue when Healing, Attacking, or when attacked by an enemy?

I was asked to post this here, so here goes! Is there some way I can have text/dialogue pop-up in the in-game chat if a character is healing, attacking or being attacked by someone? I'm not sure if there is a macro/script/mod to do this, but wanted to see if this is something we can do in Roll20.
1726083538

Edited 1726112696
GiGs
Pro
Sheet Author
API Scripter
There is no way in roll20 to change the appearance of an input box. You might be able to do something similar to what you want with a script, but we'd need to know what that popup is for. What should it include, and what process is going on when it appears?
Right, most of this seem fairly easily doable, but I can't give detailed advice without having more to work with. What exactly do you mean by "pop-up"? Having pre-set lines appear in the chat when using abilities is fairly simple, though.
That would be keen if you could figure out a way to do it.
I think there's some confusion around the word 'pop-up' in particular. In general, can I have custom text/dialogue show up in the chat entry section for everyone to view what a character said before/after attacking/being attacked? Either that or a small text box next to the character's sprite/avatar on the map to signify that they said something. As a very basic example, here is a sample illustration as a text box:
1726151761

Edited 1726152004
For chat, it's very simple (with most sheets, anyway) - you just need to make an ability that has the dialogue formatted in your preferred way, a line break, and then the attack template after. You can usually access this template by pressing up in the chat after using the attack/spell/whatever from the sheet, and copying it. Being the target of another's action is more complicated, but not impossible - you need to have something like %{target|onattack} call in the attacker's ability, and construct an ability on the target's end by that name ("onattack") which contains a preset message - though you can't force another character to "speak", so if you want their image, you'll have to add it separately. There's more specific stuff you can do, and the sheet you're using matters. Here's a quick example I threw together with some CSS: [image](<a href="https://i.imgur.com/JHI9tiy.png)[&quot;What" rel="nofollow">https://i.imgur.com/JHI9tiy.png)["What</a> a vexing situation this is. We should reconsider our course"](#"style=" display:block; color:white; background: green; text-align: center;position: absolute; top: 0px; right; 0px; left: 200px; bottom: 7px) Displaying text outside the chat (and initiative tracker) is completely outside the scope of macros, though, so no putting lines next to tokens without mods.
Thank you! As I read your response, I was looking at macros and it seems easy to make. Roll20 has some decent videos/wikis to guide how to make these with appropriate CSS styles.