Hi everyone, I'm trying to create a Character Sheet for my GDR and I need to read the button's result or read the value in the chat, using the API script. You can find my code below on("chat:message", function(msg) { if(msg.type == "api" && msg.content.indexOf("!sr ") !== -1) { var Test_read = JSON.parse (ops [0] .content) .total } setAttrs({ rollresult: Test_read }); }); Thanks to all.