-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple-result rolls #205
Comments
Hi @draco963 So there's three things here: Re-roll multiple times
Q1. Would this keep the initial
|
Q1: the double re-roll drops the initial result of 8. However, it also is
not added together; it is a double result. So:
Roll:1d8 = [8]
re-rolls 6,3 = [6] and [3]
Q2: for the example I gave, either exploding the 8 a second generation or
actually rolling (in the background) 1d7 would ideally both be options that
the user could select. So:
Option 1:
Roll:1d8 = [8]
re-rolls 6,8 = [6] and [exploding re-roll]
re-rolls 1,3 = [6] and [1] and [3]
Option 2:
Roll:1d8 = [8]
re-rolls 6,8 = [6] and [8 not allowed on re-roll]
re-rolls 1 = [6] and [1]
Ideally, both a penetrating explosion and an invalid 2nd roll would be
possible, as there are spells that use both schema.
Q3: Oh, I hadn't thought of this... I'm not aware of any spells that use
more than one die on the initial roll... I think maybe this situation can
be ignored?
For the "individual roll results," take, for example, a spell like Magic
Missile (*emphasis* mine):
"A missile of magical energy strikes your target, dealing 1d4+1 points of
damage.
For every two caster levels beyond 1st, you gain an additional missile —
two at 3rd level, three at 5th, etc. If you shoot multiple missiles, **you
can have them strike a single creature or several creatures**."
So, as you can see, the need is not for a grand total of all the dice
rolled +1 for each dice, but rather, individual results for each dice
rolled. Because each missile may target a different creature, we want
individual results.
Thus:
1d4+1ea = [4]
2d4+1ea = [4] and [5]
3d4+1ea = [3] and [2] and [5]
4d4+1ea = [2] and [5] and [4] and [5]
etc...
I know it's a super minor thing, but I also know users in general. Lots of
players of D&D (and other TTRPGs) don't actually know how to read or use
the dice properly, so, *anything *the DM can do to limit misunderstandings
saves a *lot *of time and frustration.
And the colour bit will be waaay beyond my programming skills, lol. I'd be
happy to help, I would, but I don't think I'd be of any use!
Thank you for getting back to me!
|
Thanks for the feedback. I've added some "tasks" to the issue description for sorting out the ability to roll multiple dice on each explode / re-roll, which should cover the first bit. In terms of the "individual roll results"; am I understanding correctly that what you're actually wanting is for the dice roller to return multiple values as the result? // rolling 1d4 for each missile
3d4+1: [3 + 1, 4 + 1, 1 + 1] = [4, 5, 2] And then the user would choose which missile / damage value to hit each opponent with. The library is really only designed to return a single result value, and it always totals the rolls. You could roll the missiles separately: 1d4+1: [3]+1 = 4
1d4+1: [4]+1 = 5
1d4+1: [1]+1 = 2 If you're using the const roller = new DiceRoller();
const rolls = roller.roll('1d4+1', '1d4+1', '1d4+1'); With that, rolls.foreach((roll) => {
console.log(roll.total);
}); |
@draco963 I've been thinking about the functionality to re-roll multiple times and could do with some feedback on possible notations for it. The functionality is similar, but not quite the same, to what's being discussed in #207, and I'm having difficulty thinking of sensible notation that could be used for both of them, that wont conflict with each other. I've created a discussion #224 where I'm hoping that I can get some feedback from Tillerz and yourself, to try and come up with a good solution. |
Hello,
A common roll in TTRPGs is to re-roll twice on a given result, and also, to roll multiple dice and want the individual results of each die roll.
e.g.: roll 1d8, if 8, then roll 2d8 and keep each result. Thus: roll:1d8, [8], automatically reroll:2d8: [6] and [5]
and
roll 4d4+1, wanting each result of the four dice. Thus: roll:4d4+1, [4+1], [2+1], [4+1], [1+1]: 5, 3, 5, 2
Also, would it be possible to set the result pop-up to be a a different colour on crit success and crit fail? The ** and __ aren't being noticed by my players.
Thank you so much for this script!
The text was updated successfully, but these errors were encountered: