omegabytes / askTheDM

Alexa skill: Get basic info about DND spells, items, and rules
Other
15 stars 10 forks source link

add "with advantage" and "with disadvantage" functionality #84

Closed omegabytes closed 6 years ago

omegabytes commented 7 years ago

with advantage:

disadvantage is the opposite

jnoehren commented 7 years ago

JavaScript has a max and min function I think so we could just roll two dice and take the max or min. We could add disadvantage and advantage as attributes of dice roll

omegabytes commented 7 years ago

What if I'm rolling something crazy? Like, 10 d 6? Do I have advantage on all of the rolls?

jnoehren commented 7 years ago

Hmm I don't know if you have advantage on anything other than d20 rolls but there are times when the user will want to reroll damage dice

jnoehren commented 7 years ago

For that you would want to store each dice result in an array and when the user rerolls update the array

jnoehren commented 7 years ago

I think that means you'll need to save the array of dice as an attribute to the session and keep the session open and prompt the user for a reroll intent or a cancel

omegabytes commented 7 years ago

it is strictly d20 rolls, much simpler