A few months ago, I got some help creating a script to send hidden messages including rolls to the gm. (Hidden Rolls Post) I have since tried to use this in combination with roll templates and it seems to fail. Instead of displaying the roll template in whisper to the gm. It just displays the raw text of the template. I have no idea how to update this I was wondering if someone might be able to assist in getting it to work. on("chat:message", function(msg) {
var cmdName = "!bw";
var msgWhisper = msg.content.slice(cmdName.length);
if(msg.type == "api" && msg.content.indexOf(cmdName) !== -1) {
if(_.has(msg,'inlinerolls')){
msgWhisper = _.chain(msg.inlinerolls)
.reduce(function(m,v,k){
m['$[['+k+']]']=v.results.total || 0;
return m;
},{})
.reduce(function(m,v,k){
return m.replace(k,v);
},msgWhisper)
.value();
}
sendChat('', "/w gm "+msgWhisper);
};
}); !bw &{template:35Adv_AtkInfo}
{{name=Alastair}} {{type=Earth Pony}} {{subtype=Vampire}} {{ac=22}}
{{touch=13}} {{ff=21}} {{dr=DR 5/Magic or Silver}} {{immunities=Abil/En
Drain, Death & Necromancy, Sleep}} {{vulnerabilities=Sunlight,
Running Water}} {{material=}} {{thickness=0}} {{material_hp=(0*0)}}
{{disable_dc=0}} {{break_dc=0}} {{notes=Notes}} When I use it with a roll template this is what is whispered to the GM: (From ): &{template:35Adv_AtkInfo}
{{name=Alastair's}} {{type=Earth Pony}} {{subtype=Vampire}} {{ac=22}}
{{touch=13}} {{ff=21}} {{dr=DR 5/Magic or Silver}} {{immunities=Abil/En
Drain, Death & Necromancy, Sleep}} {{vulnerabilities=Sunlight,
Running Water}} {{material=}} {{thickness=0}} {{material_hp=(0*0)}}
{{disable_dc=0}} {{break_dc=0}} {{notes=Notes}}