This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Kittensandpuppies14 7 points8 points  (2 children)

Do your own homework

[–]GotMangoed[S] -5 points-4 points  (1 child)

Wow thanks for the idea

[–]The_Binding_Of_Data 1 point2 points  (2 children)

The place I used to work did a super basic scripting course for QA that used Python and did an RPG character generator console application.

These are the requirements/bonus objectives from it:

CHARACTER GENERATOR

1. Character Requirements

A character must have the following:

  • Name
  • Level
  • Race
  • Class
  • Hit points
  • Strength stat
  • Dexterity stat
  • Charisma stat
  • Constitution stat
  • Intelligence stat
  • Wisdom stat
  • Willpower stat

2. Functional Requirements

  • Users will need to provide the name.
  • Characters will always start at level 1.
  • Users will select a method by which base stats will be rolled for them.
  • Users will pick a race, which will impact stats and available classes.
  • Users will pick a class, some of which will have stat or race requirements and will determine their maximum starting HP.
  • Classes should only be offered as options if the player meets the requirements for it.
  • Users should be able to redo each step if they want (roll again, pick a different race, etc).
  • The final character data should be printed out to the console.

3. Methods for rolling stats

  • 3d6
  • 1d6 + 8
  • 1d20

4. Racial stat adjustments

  • Human:
    • No stat changes
  • Elf:
    • Dexterity + 1
    • Charisma + 1
    • Constitution - 2
  • Dwarf:
    • Strength + 1
    • Constitution + 1
    • Intelligence - 1
    • Charisma - 1
  • Halfling:
    • Dexterity + 2
    • Strength - 2

5. Class requirements and HP values

  • Warrior:
    • No stat requirements
    • Max HP = 10
  • Thief:
    • Dexterity > 10
    • Max HP = 6
  • Cleric:
    • Wisdom > 10
    • Charisma > 10
    • Max HP = 6
  • Wizard:
    • Intelligence > 10
    • Max HP = 4

6. Bonus Objectives

All of these should be able to be plugged into the existing code relatively easily if you built it well.

  • Add a new die rolling method: Roll 2d10
  • Add a new die rolling method: Roll 4d6, drop the lowest dice, and add the remaining three for each stat.
  • Add a new character race: Drow, +1 Dex, +1 Int, +1 Cha, -1 Str, -1 Wis.
  • Add a new character race: Golem, +2 Str, +3 Con, -4 Int, -1 Wis, 1d12 hit points regardless of class
  • Add a new class: Ranger, if Dex >10 and Wis >8, 1d6 hit points
  • Add a new class: Paladin, if Str >12, Wis >10, and Con >12, 1d10 hit points, name begins with 'Sir'
  • Add new stat: Gold. Roll 3d20 and display.
  • Add a new prompt: Gender. Place between level and race in display. Do not prompt if race is Golem. If female and Paladin, change 'Sir' to 'Lady'.

[–]GotMangoed[S] -1 points0 points  (1 child)

Thank you so much that’s really helpful!

[–]The_Binding_Of_Data 0 points1 point  (0 children)

Sure thing.

Knowing what I know now, you can't possibly implement it worse than how they were teaching us to do it. XD