Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Simple Dice Roller for Catthulu

I'm running a Catthulu (no I didn't spell that wrong) game for my players as a break between campaigns. Catthulu is a 2d6 system where if you roll at 1-2 is a failure and a 3-6 is a success. If it's a simple task then you need one success and a hard task needs two success. I would like two buttons one for Simple task and one for Hard task. The basic idea is  if (2d6>2 >= 1) then     Display "Success" Else     Display "Failure" End If What I don't know is how to put this into javascript. It's been over 20 years since I did any program and I never did any Java. I tried to find an example but I'm running out of time. Does anyone have a basic mod for this type of roller. Thanks for the help.
1789754782

Edited 1789754912
Gauss
Forum Champion
Hi Corey P.,  An API Script is not necessary here.  Create a two Rollable Tables Table1 name: 0SuccessFail Table1 item: Failure Table2 name: 1SuccessFail Table2 item: Success Then use the following:  [[1t[[[{[[2d6>3]],0}>1]]SuccessFail]]] Note: if you need to show the 2d6 please let me know, I can probably come up with a version where it also displays the 2d6 roll.  Edit: A more direct method would be as follows. [[1t[[[2d6>3]]SuccessFail]]] With SuccessFail being named 1SuccessFail and 2SuccessFail  But, I don't know if you would have a variable number of successes be a success or not so I stuck with "double success check" of the first method.