ArtemGr / Sidekick

Dice and LFG bot for Discord.
MIT License
250 stars 39 forks source link

doing math to determine how many dice to roll #40

Open batam15 opened 7 years ago

batam15 commented 7 years ago

I am trying to have Sidekick do math and use that result to determine how many dice to roll. some games have you subtract a number from the amount of dice you are rolling (like defense in world of darkness). If this is able to happen I could make a list of dice rolling formulas and have the players add them to their saved rolls using their stats and tell them what defense to set and all they would need to do is use a saved roll for an attack.

a basic example: /r (4-1)d10 Using saved numbers: /r $attack = ($str+$weaponry+$damage-$defense)d10! >=8

Being able to do this would really streamline gameplay and make the save function super useful for world of darkness. I do not know if there is a command for this already or how complicated this is to do.

Thanks for making a bot that is super useful! :)

ArtemGr commented 7 years ago

Looks cool! I've actually had it working some time ago but then I've looked at how the bot was used and came under impression that this feature isn't used and doesn't worth the increased code complexity. Should not be too hard to reimplement it.

Ambeco commented 7 years ago

It's able to do "/r 3d(4+$Str)", but not able to do "/r (4+$Str)d4" :(

DewOnTheGrass commented 5 years ago

Did this implementation ever happen? I wound up here with the exact same request!

ArtemGr commented 5 years ago

Ever happen? What do you mean?

DewOnTheGrass commented 5 years ago

Whoops. "Did this ever get reimplemented?" is how I would have worded it had I been sleeping more.

ArtemGr commented 5 years ago

Didn't happen yet.