This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on('chat:message', function(msg) { | |
// ROLL LISTENER | |
if(msg.playerid.toLowerCase() != "api" && msg.rolltemplate) { | |
var cnamebase = msg.content.split("charname=")[1].split('{{')[0]; // Fixed line | |
var cname = cnamebase ? cnamebase.replace('}}','').trim() : (msg.content.split("{{name=")[1]||'').split("}}")[0].trim(); | |
var character = cname ? findObjs({name: cname, type: 'character'})[0] : undefined; | |
if(["simple"].indexOf(msg.rolltemplate) > -1) { | |
if(_.has(msg,'inlinerolls') && msg.content.indexOf("^{hit-dice-u}") > -1 && character) { | |
handlehd(msg,character); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pl: | |
admin: | |
home: | |
name: Strona główna | |
pagination: | |
previous: "« Poprzednie" | |
next: "Następne »" | |
misc: | |
search: "Szukaj" | |
filter: "Filtruj" |