jlr7245 / swrpg-cli

CLI tool for rolling dice and creating characters for SWRPG.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SWRPG CLI

Project for me, a person who wanted to build something moderately complex in python.

Running it

  • You should have Python3 and pip installed on your machine.
  • Start up a virtual environment: python -m venv venv and source venv/bin/activate
  • Install requirements: pip install -r requirements.txt
  • Run the program: python entry.py

You may run into an error along the lines of Cannot import name "Mapping" from "collections". As per this stackoverflow post, the solution here is to go into path/to/venv/lib/python3.11/site-packages/prompt_toolkit/styles/from_dict.py and change ln 9 from from collections import Mapping to from collections.abc import Mapping.

Dice Roller

Star Wars RPG has a fairly unique dice system:

Diagram of SWRPG dice

The CLI dice roller allows you to input the number and type of dice you'd like to use. For example, a roll with two Ability dice, one Proficiency die, two Challenge dice, and one Boost die would be formatted as 2a 1p 2c 1b.

Character Creator

Coming soon!

About

CLI tool for rolling dice and creating characters for SWRPG.


Languages

Language:Python 100.0%