Create a DnD Character With Python3

by TarkinD in Living > Toys & Games

758 Views, 7 Favorites, 0 Comments

Create a DnD Character With Python3

20210421_220152.jpg

A new player in your group and he/she has no character ? Usually it would take you 15 minutes to create one but now, with a simple click you can do it !

First you need to have Python3 on your computer. If you don't, just go to

https://www.python.org/downloads/

It's incredibly easy to download the last version of Python3 be it with Windows, Mac or Linux.

Now you need an IDLE (the program to see and execute your code). I use Py Edu.

Download it here for free :

https://www.jetbrains.com/pycharm-edu/

but the simplest is Thonny, also free here :

https://thonny.org/

Supplies

You need a computer, a printer and ... that's all !

python-logo.jpeg

The Code

git.png

And then you need my code : I put it on github here :

https://github.com/TarkinD/Dungeon1.py

You just have to click on the "Download" button.

Run the Code and ... It's Done !

instru3.png

You run your code clicking on the green arrow "Run"... and it's done ! you are the proud owner of a new character on the new char-sheet.txt in the same folder as python.

(If you don't like your character, delete the file and do it again)

You just have to print it and play.

Downloads

You Can Change the Code Too...

instru4.png
instru1.png
instru2.png
instru5.png

You want a new class ? a new race ? I put a LOT of explications and instructions in my code so that even if you never learned python3, you can change it very easily.

It is my first real code as I began learning it in march (of this year !). So it is not as pretty as a professional would have done, but it works.

Now just go and play, my fellow adventurers ...