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 .
×

Creating Macros in Character sheet

Is there a way to define macros in a character sheet? I am trying to make a roll button do 2 actions: Tell the players something is happening, and wispier the roll to the GM. I have found I can put a break line in the value, part but would really prefer to be able to use the roll templates which are a full message so this doesn't work. It also seems you cant only show parts of a roll template to the GM. In this post:&nbsp; <a href="https://app.roll20.net/forum/post/1793729/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/1793729/slug%7D</a> Brian , mentions how it can be done as a macro, so I just want to see if can create them as part of the character sheet, or will each GM have to remake the Macros in game to use this sheet? The reason I am trying to do this is some rolls, have side effects for failure, where the player shouldn't know its a failure. E.G. Dark Heresy, Investigation if you fail by 3 levels you get miss information, but if the player knows they failed they know to disbelieve it. (while players should remain as PC its difficult when you know something is a lie, to still treat it as truth).
1481392145

Edited 1481392165
Lithl
Pro
Sheet Author
API Scripter
In the thread you linked to, Kryx shows an example of multiple lines in a single roll button on a character sheet. However, if you're trying to hide a roll from the player completely, simply whispering the roll to the GM is insufficient, since players will see the whispers they make. You could use an API script (I believe there's one called Blind Rolls to accomplish exactly this), or your roll button could include whispering a command button which, when clicked, would whisper the roll to the GM (using&nbsp; Ability Command Buttons or&nbsp; API Command Buttons ). Then, the player would see him/herself whispering the button to the GM, and the GM would click the button to whisper the actual roll to him/herself.
Thanks for your help, used a combination of Kryx's multiple lines, templates and the Blind rolls API. so all the player knows they have rolled, and only the GM should see the roll, and the GM gets the roll. If anyone else is intrested: Roll on character sheet: &lt;button type="roll" name="roll_test" value="&{template:default} {{name=Test}} {{Test Explination}} {{GM Roll Only}}&nbsp; !broll 1d100"&gt;Test&lt;/button&gt; API Script:&nbsp; on("chat:message", function(msg) { var cmdName = "!broll "; var msgTxt = msg.content; var msgWho = msg.who; var msgFormula = msgTxt.slice(cmdName.length); if(msg.type == "api" && msgTxt.indexOf(cmdName) !== -1) { sendChat(msgWho, "/gmroll " + msgFormula); }; });