this post was submitted on 24 May 2022
3 points (80.0% liked)

RPG

3925 readers
1 users here now

Discussion of table top roleplaying games.

founded 4 years ago
MODERATORS
3
submitted 2 years ago* (last edited 2 years ago) by Ghast@lemmy.ml to c/rpg@lemmy.ml
 

Dice rolling programs take too long.

Some demand syntax like /roll 2d6+2, and I think 'you should know that 2d6 is a roll without my typing /roll, and also everything I roll has been d6's, so obviously if I type just 3, I mean '3d6'.

So I wrote one with defaults. This is my second python project, so the code isn't pretty, but it does the job.

You write:

""

 2d6
Result: 5

d8

2d8
Result: 12

3+1

3d8+1
Result: 8

If you give it a target number (TN), all rolls will tell you whether or not you've reached that TN.

If you give it a difficulty, it'll tell you how many dice have landed on that number or above.

You can input these things in any reasonable format:

tn=18

TN 12

difficulty = 4

dif 9

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here