Hi everyone, I have some problem with my script, whatever i try i always have 0 as a result. I wanted to use the fact that all my player will using ptahfinder character sheet for providing a generalist comp check based on the pathfinder character sheet Here is the script : on("chat:message", function(msg) { if(msg.type == "api" && msg.content.indexOf("!compCheck") !== -1) { var msgContent = msg.content; var options = msgContent.replace("!compCheck ", "").split(" "); log(options); if(options.length != 2){ sendChat(msg.who, "not enough parameter! ex : !compCheck competence persoName"); }else{ var charName = options[1]; var comp = options[0]; if(comp != 'diplomatie'){ sendChat(msg.who, "compCheck pour" + comp + " pas encore implmenté"); }else{ log(" /r 1d20 + @{"+charName+"|Diplomacy}"); sendChat(msg.who, "/r 1d20 + @{"+charName+"|Diplomacy}"); } } }; }); how i use the command in the chat : !compCheck diplomatie Jakhael and the result : rolling 1d20 + (1 + ((((3 * 1) + 3) - abs((3 * 1) - 3)) / 2) + + 0 + 0 + 0 + 2) (15)+(1+((((3*1)+3)-abs((3*1)-3))/2)++0+0+0+2) = 0 the log i have when i launch th command : ["diplomatie","Jakhael"] " /r 1d20 + @{Jakhael|Diplomacy}" and when i try to use /r 1d20 + @{Jakhael|Diplomacy} directly in th chat it work