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

Something for players that output looks kinda like /desc would for a GM?

I am trying to write premade macros for my newer players and the clean look i get from /desc @{selected|character_name} rolls Careful [[4df+@{selected|Careful}+?{Modifier|0}]] Rolls Careful is hard to get for a player. Is there a /something that would do the same for a player?
unfortunately the only option for players is to have them select their character from the chat drop down menu and us /em... there's a couple posts in the suggestions board for allowing players access to something similar to /emas and /desc though...
1430850937
Gen Kitty
Forum Champion
Natively, no. However, you are a mentor and so you can use a script The Aaron hacked together! Since he doesn't yet have a page for it, I'll give you my copy of the script. var ColorNote = ColorNote || (function() { 'use strict'; var version = 0.1, ch = function (c) { var entities = { '<' : 'lt', '>' : 'gt', "'" : '#39', '@' : '#64', '{' : '#123', '|' : '#124', '}' : '#125', '[' : '#91', ']' : '#93', '"' : 'quot', '-' : 'mdash', ' ' : 'nbsp' }; if(_.has(entities,c) ){ return ('&'+entities[c]+';'); } return ''; }, showHelp = function(who) { sendChat('', '/w '+who+' ' +'<div style="border: 1px solid black; background-color: white; padding: 3px 3px;">' +'<div style="font-weight: bold; border-bottom: 1px solid black;font-size: 130%;">' +'ColorNote v'+version +'</div>' +'<div style="padding-left:10px;margin-bottom:3px;">' +'<p>ColorNote provides the <b>!note</b> command, which looks like /em but but colored differently.</p>' +'</div>' +'<b>Commands</b>' +'<div style="padding-left:10px;">' +'<b><span style="font-family: serif;">!note '+ch('<')+'message'+ch('>')+'</span></b>' +'<div style="padding-left: 10px;padding-right:20px">' +'<p>Sends a message in the same manner as <i>/em</i> does, but with dark green text on a light green background.</p>' +'<ul>' +'<li style="border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;">' +'<b><span style="font-family: serif;">'+ch('<')+'message'+ch('>')+'</span></b> '+ch('-')+' The message to output as part of the note.' +'</li> ' +'</ul>' +'</div>' +'</div>' +'</div>' ); }, handleInput = function(msg) { var args, who, color; if (msg.type !== "api") { return; } args = msg.content.split(/\s+/); who=getObj('player',msg.playerid).get('_displayname').split(' ')[0]; color=getObj('player',msg.playerid).get('color').split(' ')[0]; function getBrightness(hex) { hex = hex.replace('#', ''); var c_r = hexDec(hex.substr(0, 2)); var c_g = hexDec(hex.substr(2, 2)); var c_b = hexDec(hex.substr(4, 2)); return ((c_r * 299) + (c_g * 587) + (c_b * 114)) / 1000; } var txcolor = (getBrightness(color) < (255 / 2)) ? "#FFF" : "#000"; switch(args[0]) { case '!note': if(1 === args.length) { showHelp(who); } else { sendChat('','/direct ' +"<div style=\"" +" background-color: "+color+";" +" color: "+txcolor+";" +" display: block;" +" font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;" +" font-size: 14px;" +" font-style: italic;" +" font-weight: bold;" // +" position: relative;" // +" right: 21px;" +" line-height: 17.0625px;" +" padding-top: 7px;" +" padding-bottom: 7px;" +" padding-left: 5px;" +" padding-right: 5px;" +" text-align: center;" +" word-wrap: break-word;" +" zoom: 1;" +"\">" +_.rest(args).join(' ') +"</div>" ); } break; } }, registerEventHandlers = function() { on('chat:message', handleInput); }; return { RegisterEventHandlers: registerEventHandlers }; }()); on("ready",function(){ 'use strict'; ColorNote.RegisterEventHandlers(); }); To use it: !note Whatever you want to write The coloration will be the player's color for the background, and the text will be white or black (automatically detects which color will contrast more against the background)
1430852550

Edited 1430852557
Spren
Sheet Author
Doesn't look quite the same, but you always have the option of using the default roll template. &{template:default}{{name=@{selected|character_name}}}{{Careful=[[4df+@{selected|Careful}+?{Modifier|0}]]}}