this post was submitted on 25 Feb 2025
63 points (100.0% liked)

rpg

3426 readers
45 users here now

This community is for meaningful discussions of tabletop/pen & paper RPGs

Rules (wip):

founded 2 years ago
MODERATORS
 

I made a web page where you can simulate a complex dice roll sequence with conditionals (e.g. re-roll when roll is a 1) using a Python-like syntax. (Click the "Toggle Syntax" button to view examples)

It needs a second to load because it has to load a Python interpreter in the background (I'm not good at web development) but once that's done, it works really well.

It's still very barebones and I still have to work out some problems.

Maybe some of you could use it, though.

There's also just the Python version available to run locally here

Everything is GPLv3, enjoy!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 6 days ago (1 children)

I am working on a dice expression evaluator on my side, and I will certainly reuse your code if I can ! Thanks for giving the example, as a GNU enthusiast, it is very nice ! Great job making it work !

[โ€“] [email protected] 1 points 5 days ago

Best of luck to you. I think my code is quite messy but if you can use any of it, feel free!