Coder Social home page Coder Social logo

dnd-character-creator's Introduction

DnD-Character-Creator

A simple character creator for DnD Next (Work in Progress, runs on Python 2.7)

This program will make a simple character and give you stats, traits, class, background, skills, and feats for the character. From there, you will need to select your gear and add up your AC score and gold.

"character" in these examples means the variable where your charecter is stored (I am just assuming you'd make this variable his/her name).

To create a character, type: character = race(level,name) where "character" is just a variable, "race" is the race of your character (Dwarf,Elf,Halfling,Human), "level" is an integer signalling the starting level of your character, and "name" is string of the name you want for your character.

ex. Narlbuck = Dwarf(1,"Narlbuck")

Note: You can leave the arguments blank and your character and you're character will start at level 1 with a random name.

ex. random_char = Elf() will give you an Elf at level 1 with a random elfy name.

Some helpful methods you can use when making a character:

character.getAbilityScores()

This will print out a list of all your ability scores for your character.

character.updateScore(ability, amount)

Allows you to update ability's for your character. The "ability" argument is a string (ex. 'str') that tells the method which ability to modify, and "amount" is by how much. You can use negative values here.

character.save()

Saves your character to a .txt file in the same directory where the Character Creator file resides. The file will be your character's name, race, class, and level.

ex. Narlbuck.save() -> Narlbuck_Dwarf_Ranger_lvl_1.txt

print character

Will print out a full description of your character.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.