Jump to content

Recommended Posts

Posted (edited)

I have coded a small program in Python to roll dice in a terminal: download script in GitHub Gist

UPDATED to version 1.6:

  • added drop lowest dice and gaussian distribution for a drop lowest roll!

Need help? Type help!

help.jpg.b3930082a94f7d6dbe964f94921b8236.jpg

Let's roll some dice for a character?

2-brp.jpg.a6937943700a6078c1c5427d03cc162d.jpg

You can calculate gaussian distribution even for the weirdest dice rolls!

gauss.jpg.da634fd4f62e2f57f28e96d2cc9c9f70.jpg

Usage

Download PythonDiceRoller.py to your PC. And, if you have Python 3.9+ installed you can execute it with double-click i think. In Windows there should be an IDLE (Integrated Development and Learning Environment). Press F5 to run it. If not, use command prompt: python PythonDiceRoller.py.

In Linux (my case), Python come by default in many distros. Double click open it in IDLE, run with F5, or execute in terminal: python PythonDiceRoller.py.

Write "quit", "q", "exit", "e", or CTRL+D or CTRL+C to exit.

Edited by Nerun
Version 1.6
  • Like 1
Posted (edited)

Ahhh, nice! Brings back fond memories of some of the RQ utilities on the old Soda archives!

macOS has a BSD userland. Think there could be any issues installed there?

SDLeary

Edited by SDLeary
Posted
1 hour ago, David Scott said:

741239458_Screenshot2022-04-16at17_15_18.png.d584f3ff1120f565a0fa5b003457034b.png

DEX 3 / STR 5 / POW 6 ???
Your computer hates you!
😉

  • Haha 3

C'es ne pas un .sig

Posted
18 hours ago, Lloyd Dupont said:

This are really good rolls! My usual luck is DEX 3 / STR 4 / POW 4! 😛 

You have my condolences

For all the many characters you've lost.

  • Haha 1

C'es ne pas un .sig

Posted

That's cool! I've been building a dice roller plus some d100 style character and NPC creation utilities for the homebrew system I've been working on. Right now it's a bit tailored to my game, but it is parameterized (i.e., races/species, characteristics, etc.) with CSV or YAML files so that it's generic within some limits.

It's not very user friendly at the moment It's in ruby - I'm going to make a gem with the generic stuff in it so that it'll work more like a utility, like you have. I have a lot of work to do on that though... here's an example of use.

NWyMwcc.png

You can find the project here: https://gitlab.com/robertprince/sae/-/tree/master/d100

  • Like 2
Posted
20 hours ago, robertp said:

That's cool! I've been building a dice roller plus some d100 style character and NPC creation utilities for the homebrew system I've been working on. Right now it's a bit tailored to my game, but it is parameterized (i.e., races/species, characteristics, etc.) with CSV or YAML files so that it's generic within some limits.

It's not very user friendly at the moment It's in ruby - I'm going to make a gem with the generic stuff in it so that it'll work more like a utility, like you have. I have a lot of work to do on that though... here's an example of use.

You can find the project here: https://gitlab.com/robertprince/sae/-/tree/master/d100

Looks great @robertp!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...