Introduction: Create a DnD Character With Python3

About: I am a 50 years old French editor, living in a small town in the south of France. I fell in love with the Raspberry Pi 2 months ago and began learning electronics and python3.

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 !

Step 1:

Step 2: The Code

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.

Step 3: Run the Code and ... It's Done !

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.

Step 4: You Can Change the Code Too...

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 ...