Asmor
First Post
So I made a dice roller years ago, and relatively recently upgraded it to use regular expressions for custom dice rolls, so for example you could type in 2d4+3 and roll 2d4+3. See the diceroller at http://www.asmor.com/scripts/diceroller.html
Anyways, with school about over, I'm gonna have some time on my hands and just had an idea for some upgrades I could do. For one thing, it's always kind of bugged me that the way I implemented it I couldn't do, say, 1d6+3d8.
So anyways, I'm wondering what sort of things people would be interested in as far as being able to quickly type in long dice expressions. This is kind of what I have in mind:
Labels: This is currently implemented. You can put a label on your rolls, like "zombie damage:1d6+1" and in the buffer it will say "zombie slam: 4. Total: 5." instead of "1d6+1: 4. Total: 5."
Mathematical operators: Currently supports only + and -. Is there much demand for multiplication and division? Adding them would also complicate things, since that would mean that the order of operations would suddenly matter, and I'd probably have to implement parentheses for grouping.
Multiple dice rolls and operators: This is one of the two big features I'm wanting to add.
Inline labels: Along those lines, the ability to label things inline. For example, "Super Flaming Longsword:1d8+3+3d6[fire]" would output something like "Flaming longsword: 8 + 10 [fire]"
Alternatively, it might even be more verbose, like so:
Flaming Longsword: 18 (total)
1d6+3: 5. Total: 8
fire: 3, 1, 6. Total: 10
So what do you all think? Is there some feature you'd like to see implemented? How would you prefer your output to be displayed?
Anyways, with school about over, I'm gonna have some time on my hands and just had an idea for some upgrades I could do. For one thing, it's always kind of bugged me that the way I implemented it I couldn't do, say, 1d6+3d8.
So anyways, I'm wondering what sort of things people would be interested in as far as being able to quickly type in long dice expressions. This is kind of what I have in mind:
Labels: This is currently implemented. You can put a label on your rolls, like "zombie damage:1d6+1" and in the buffer it will say "zombie slam: 4. Total: 5." instead of "1d6+1: 4. Total: 5."
Mathematical operators: Currently supports only + and -. Is there much demand for multiplication and division? Adding them would also complicate things, since that would mean that the order of operations would suddenly matter, and I'd probably have to implement parentheses for grouping.
Multiple dice rolls and operators: This is one of the two big features I'm wanting to add.
Inline labels: Along those lines, the ability to label things inline. For example, "Super Flaming Longsword:1d8+3+3d6[fire]" would output something like "Flaming longsword: 8 + 10 [fire]"
Alternatively, it might even be more verbose, like so:
Flaming Longsword: 18 (total)
1d6+3: 5. Total: 8
fire: 3, 1, 6. Total: 10
So what do you all think? Is there some feature you'd like to see implemented? How would you prefer your output to be displayed?