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

A Chat Button to output a description or a voice in the chat

Hi! I am learning how to use roll20, I am new and I have a friend with many hours on roll20 who DM's but he doesn't uso macros, so I am help him out now. Basically, I made an almost funtional macro using a templato, who shows if a foe can deal a powerful move if a roll is sucessful. Here is the WIP template: `&{template:default} {{name=The Nue concentrates,,,}} {{Focus= [[1d6cs>5]]}} {{What happened?= [Nothing](!@{selected|character_name} failed the focus) | [Something](~selected|repeating_attack_$0_attack)}}` This templates roll a d6 and if the roll is 5 or 6, the Nue can strike lightning from his mouth. I smuscessfully linked a button with a repeating attack on my character sheet (later will replace that with the actual enemy attack roll) but the problem is the "Nothing button". I basically need to make this button to output a /me or a /desc commando in chat, so it can shows something like "the foe failed to focus" or "[selected|character_name] is saved this time!". I tried many combinations but anything worked. What am I missing? Thanks in advance for the response.
1586903300

Edited 1587007794
GiGs
Pro
Sheet Author
API Scripter
You'd need to create a separate macro or ability with the text&nbsp; /me @{selected|character_name} failed the focus or something similar, then put the macro or ability code in the () section. Say you named the macro me-nothing , that would be &nbsp;[Nothing](!&amp;#13;#me-nothing) &nbsp;[Nothing](!&amp;#13;&amp;#37;{Macros|me-nothing}) The first for if its a macro, the second if its an ability on a character sheet called Macros (strongly recommended). The technique is described here&nbsp; <a href="https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat" rel="nofollow">https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat</a> If its a Macro, and you ever reopen the macro, the special characters (&amp;#13;) will get deleted (replaced with a linebreak), which is why its recommended to put things like this in a Macros character sheet. Abilities dont have that problem. If the ability is meant to be used by players as well as gms, Edit the Macros character so it is Editable by all players, but leave Visibility unset - that way players can use the abilities on the sheet, but cant actually see the sheet in their journal so cant edit it.
Wow! That worked for me! Thank you very much! worked like a charm!
1587007776
GiGs
Pro
Sheet Author
API Scripter
Great! :)