More D&D Coding

After yesterday’s little bit of coding to generate some initiative numbers in python, I decided to do some more coding.

This time it was to generate random D&D characters. Yeah I know there are websites out there that do this already (such as D&D Beyond). And that their results are more complete than mine.

But that’s not the point. This was an exercise to create something that meets my very basic needs.

Here are some examples of the characters it generates at the moment.

At the moment for a half elf it doesn’t do anything clever when choosing which two abilities to give the boost too. It just picks them at random. But ideally it would chose ones that fit nicely with the class. For a human it does the easy to implement +1 to everything.

Next up if I decide to take this further I’ll get it to randomly chose the skill proficiencies, followed by backgrounds. Height and weight might be an interesting exercise as well.

This has been a fun little distraction to avoid final prep for tomorrow’s session. But now I can’t avoid putting it off any more. I need to do those final little bits.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.