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

Journal Command Buttons and Template output (5e OGL)

In my Bio & Info on my character sheet, I have written my magic items. I want the DM to be able to click the text, and it will output a whisper to him with the magic item's description. I know it works if I create a macro under the Collection tab and use:  (back tic)#name-of-the-macro. I cannot make it work if I create the macro on the character sheet and use: (back tic) ~ name-of-the-macro. Can I escape creating any macros? and instead, use some kind of HTML trick to make it display correctly in chat when clicked?? Main template/macro: /w gm &{template:traits} {{name=Cloak of Displacement}} {{source=Other: Magic Item}} {{description=*Wondrous item, rare (requires attunement)* While you wear this cloak, it projects an Illusion that makes you appear to be standing in a place near your actual location, causing any creature to have disadvantage on Attack rolls against you. If you take damage, the property ceases to function until the start of your next turn. This property is suppressed while you are Incapacitated, Restrained, or otherwise unable to move.}} Main macro with html-entities and it suddenly doesn't work: / gm &{template:traits} {{name=Cloak of Displacement}} {{source=Other: Magic Item}} {{description=*Wondrous item, rare (requires attunement)* 
 While you wear this cloak, it projects an Illusion that makes you appear to be standing in a place near your actual location, causing any creature to have disadvantage on Attack rolls against you. If you take damage, the property ceases to function until the start of your next turn. This property is suppressed while you are Incapacitated, Restrained, or otherwise unable to move.}}
1610478233
Jordan C.
Pro
API Scripter
This is currently not possible due to being unable to escape the colon properly in the URL field.
1610478544

Edited 1610478550
Jordan C.
Pro
API Scripter
Sorry, that is specifically talking about putting templates directly into the URL field. I think you can accomplish what you are asking by making the output and ability macro in a sheet and calling the ability with the link with something like: `%{character|ability}
Jordan C. said: Sorry, that is specifically talking about putting templates directly into the URL field. I think you can accomplish what you are asking by making the output and ability macro in a sheet and calling the ability with the link with something like: `%{character|ability} It works with the "%"-calling, thank you. :-) Do you know if it works by switching the colon with its HTML entity or is it, in general, the colon cannot escape the URL field?
1610484438
Jordan C.
Pro
API Scripter
It simply can't be escaped in that instance. It's something that's been suggested to be able to do. Maybe if they overhaul the text editor it can be done but for now it can't.