reecer62 / dice-wench

A Discord bot that provides a lot of features for your DnD server.
MIT License
1 stars 3 forks source link

Add linear interpolation #7

Open reecer62 opened 5 years ago

Grissess commented 5 years ago

Can be done via the existing dnd/ API, or simple enough to do here.

Actually, the rolling system is powerful enough for mostly arbitrary expressions. Macros could make this reasonable. The trick is refactoring so that only one roll is used, because it doesn't have nice variables; something like

!r 501 + (d100 / 100) * (5000 - 501)

I just confirmed: this is supported on devel-dice right now #5 (and probably even master as well).