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 .
×
May your rolls be merry + bright! 🎄
Create a free account

In need of a little help

I am looking for someone that maybe able to help me out. I don't know enough about java to write my own API scrip so i was hoping to find someone willing to help. What I am looking to do is cut down on the clutter in the chat box and stream line my macros. I know I can do inline rolls to clean up the text box but I want to tweak the outcome a little. This API will be implemented in a nWoD game. So I would like to change the fact that the inline box pops up with a red boarder if any ones are rolled, I would like to change that to only happen when a 1 shows up on a change dice. I would also like to add and "if"statement to my Dice Pool prompt that changes the inline statement used based on if 0 was entered or if 1+ was entered. Any help, suggestions, exsamples that anyone could offer would be great help. I am trying to use this as a learning experience in case I would like to dive a little deeper into the API. Thank You for reading this.
1401689715

Edited 1401689861
If you do not mind the dice not being rolled, you can use randomInteger(max) for a simulated dice roll. I created a combat resolution script for my D&D Pathfinder game. Here is a short video showing the script in action. You can see in the video, both successes and failures are emoted as the characters into the chat. If you would still like to see the numbers being rolled, that is very doable. I just do not think you can actually have 3D dice rolls this way (right?)
Michael is there a place that I could look at the code you are using for this?