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

Cortex Prime Dice rolling?

1606486901

Edited 1606487023
The base dice mechanic for Cortex prime is to roll a number of polydice and keep two. One of the dice which hasn't been kept is chosen as the effect die, the bigger the number of sides this has the better, the number rolled on it doesn't have any effect.  The opponent tries to beat the player's total, if they do there is no effect. So a player might roll D12 D10 D8 D8 D6 and get 8, 7, 6, 6, 4.  They could choose to take the 8 (from D12) and 7 (from D10) and a D8 effect die, or they could take the risk that the opponent won't roll well and keep the lower scoring 7 (from D10) and 6 (from D8) and use the D12 as the effect die (which would be a more powerful outcome if they win). I don't think that roll20 can implement this sort of mechanic, I can't see a way for an roll or an API to generate some values for the dice and then present a means for the players to pick which die is for effect and which dice to sum (or to take the highest scoring two from what's left after the effect die is removed). Does anyone have secret sauce?
1606498072
Andreas J.
Forum Champion
Sheet Author
Translator
James N. said: I don't think that roll20 can implement this sort of mechanic, I can't see a way for an roll or an API to generate some values for the dice and then present a means for the players to pick which die is for effect and which dice to sum (or to take the highest scoring two from what's left after the effect die is removed). I'm pretty sure it can be done with API in some form, even if it might be a bit tricky. Think there exists an API for the old Cortex system, which should be somewhat similar, right?
1606545360

Edited 1606545435
Oosh
Sheet Author
API Scripter
Is the player always going to pick the highest two rolls, excluding the effect die? I think an API solution would need to operate on that kind of assumption. The API could present the player with the dice rolls, then the player clicks to choose the effect die. You can't create checkboxes though (AFAIK), so at that point the script would have to make assumptions about the two dice to keep, or they would need to be entered into a Query. Example here , from an empowered spell script (at the end of the animation, first part is irrelevant). The player is presented with the lowest rolls from their damage spell, and clicks on a die to pick which ones to reroll (it rerolls the die click on, and all the ones to the left). You could do something similar where clicking on a die result stores it as the effect die, then adds the highest two remaining dice and presents the result to the player.
Wow Oosh, that'll keep me busy getting to grips with.  My first impression is "no wonder I didn't work that out on my own".  Thanks for giving me a model to work with though.