Hi, I have a problem. I read that it is possible to make js functions in html file and somehow send it to chat. I am trying something like that: <div class="sheet-tab-content sheet-tab5"> <h3 style="width:98%">GM <button id="example" onclick="exampleClicked()">Example Button</button> </h3> <table class="sheet-center" style="width:98%"> <tr> <td>d</td> <td>d</td> <td>d</td> <td>d</td> <td>d</td> <td>d</td> </tr> </table> </div> <script type="text/javascript"> function exampleClicked() { var placeOfDamage = ["Head", "Chest", "Stomach", "Hand", "Leg"]; sendChat("GM", placeOfDamage[Math.floor(Math.random() * myArray.length)]); // alert(placeOfDamage[Math.floor(Math.random() * myArray.length)]); } </script> What I am trying to achieve: make several JS functions with build in arrays with system damage place system (and few others) as an advanced tool for GM. Results should be printed out to chat as in example. Is it even possible? Pasted code is inside one file: test.html