Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions HiddenRolls/Help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ be displayed as "[[{1d0+12}[1d20] +7]]". The "1d0" allows the expression to
function like a dice expression (otherwise the label would generate errors in
certain conditions), and the label allows the GM to verify the roll formula.

Roll20's chat system also automatically consumes template expressions before
forwarding messages to scripts. As a result, expressions like
"&{template:default}" will never be seen by scripts. To work around this,
HiddenRolls replaces all instances of "&" with "&". To use a roll template,
simply specify it as "&{template:...}".


Examples:

Expand Down Expand Up @@ -90,6 +84,6 @@ appear in the sender's chat log unless they are the target of the whisper.
Note the single brackets: the expression is not an inline roll, and is
present only to display the formula being rolled.

!hideall &{template:default} {{name=Skill Check}} {{Hide=[[1d20+12]]}}
!hideall &{template:default} {{name=Skill Check}} {{Hide=[[1d20+12]]}}
/w gm &{template:default} {{name=Skill Check}} {{Hide=[[1d20+12]]}}
/w Snake {template:default} {{name=Skill Check}} {{Hide=[1d20+12]}}
4 changes: 3 additions & 1 deletion HiddenRolls/hidden.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ var HiddenRolls = HiddenRolls || {
cmd = cmd.replace(/^\S+\s+/, "");
}

cmd = cmd.replace(/&/g, "&");
if (msg.rolltemplate){
cmd = "&{template:" + msg.rolltemplate + "} " + cmd;
}

switch(tokens[0]){
case "!hideroll":
Expand Down
2 changes: 1 addition & 1 deletion HiddenRolls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "HiddenRolls",
"version": "0.2",
"version": "0.3",
"description": "Various types of roll hiding (unmodified roll only, final result only, only show GM)",
"authors": "manveti",
"roll20userid": "503018",
Expand Down