Hi, I'm new to roll20 and I really don't know what I'm doing, but I'm trying to implement a fairly odd dice roll that should be triggered on the character sheet. The dice roll is D6 against a set och success levels, one die per success level and each die can be matched against any of the success levels. Example: Succes levels: 4, 6, 6 equals 3D6 Results: 6, 5, 1 = 2 successes since 5>4 and 6=6 Success levels: 4, 5, 6, 6 equals 4D6 Results: 6, 3, 2, 4 = 2 successes A friend crafted a javascript that solves the problem, but I don't know how to implement it in the character sheet. Here's the code: <a href="https://jsfiddle.net/uotq8ydj/7/" rel="nofollow">https://jsfiddle.net/uotq8ydj/7/</a> Is there a way to have a button on the character sheet that calls the function and returns a result to the chat? The success levels are located in an input field on the character sheet...