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 .
×
Create a free account

Need help with a macro

So, I may not be the brightest knife in the stable, but I do try my best. I looked over the dice reference page but I can't seem to get my head around if a very specific roll or macro is possible. What I am after is a command that when rolling d6's (any amount of them really) discards any rolls that end up 6, and rolls two additional d6's and adds them to the total for each die that came up a 6. The exploding command only adds one d6 per d6 rolled, is there a way to double that and combine it with a command to drop results of six from the total? Alternatively, is there a way to "if a die = 6, then sum -6 +2d6" for each die that turned up a 6. Any help is appreciated!
Wintersreach said: What I am after is a command that when rolling d6's (any amount of them really) discards any rolls that end up 6, and rolls two additional d6's and adds them to the total for each die that came up a 6. The exploding command only adds one d6 per d6 rolled, is there a way to double that and combine it with a command to drop results of six from the total? Alternatively, is there a way to "if a die = 6, then sum -6 +2d6" for each die that turned up a 6. Hi, Wintersreach . Unfortunately, these complex dice rolling mechanics are beyond the scope of Roll20's dice engine and would hence reuqire the assistance of an API Script to run in the automated matter you're seeking. (Access to the API is available in games in which the Creator has an active Pro subscription.) There are quite a few API Scripts that have been written to accomodate special dice-rolling rules, and I know there are users in the API Forum who would be happy to help you adapt one of these scripts (or even write your own) to suit your needs. If you're interested, I recommend starting a thread in the API Forum , outlining all of the mechanics you want to include within your dice-rolling script. If you additionally took some time to check out the dice-rolling scripts in the Roll20 API Repository , and choose a script that seems like it incorporates any mechanics that are at all similar to the ones you'd like for your own script, that would bring you a lot closer to the completion of this project. Good luck!
Silvyre said: Wintersreach said: What I am after is a command that when rolling d6's (any amount of them really) discards any rolls that end up 6, and rolls two additional d6's and adds them to the total for each die that came up a 6. The exploding command only adds one d6 per d6 rolled, is there a way to double that and combine it with a command to drop results of six from the total? Alternatively, is there a way to "if a die = 6, then sum -6 +2d6" for each die that turned up a 6. Hi, Wintersreach . Unfortunately, these complex dice rolling mechanics are beyond the scope of Roll20's dice engine and would hence reuqire the assistance of an API Script to run in the automated matter you're seeking. (Access to the API is available in games in which the Creator has an active Pro subscription.) There are quite a few API Scripts that have been written to accomodate special dice-rolling rules, and I know there are users in the API Forum who would be happy to help you adapt one of these scripts (or even write your own) to suit your needs. If you're interested, I recommend starting a thread in the API Forum , outlining all of the mechanics you want to include within your dice-rolling script. If you additionally took some time to check out the dice-rolling scripts in the Roll20 API Repository , and choose a script that seems like it incorporates any mechanics that are at all similar to the ones you'd like for your own script, that would bring you a lot closer to the completion of this project. Good luck! Okay, thank you for letting me know, I'll see if I can't get it figured out c: