Finished the basic functionality of the character creator.

This commit is contained in:
Mark Wolfman
2018-04-23 14:06:15 -05:00
parent 31f5a32b17
commit 94d502462a
9 changed files with 245 additions and 97 deletions
+35 -59
View File
@@ -1,7 +1,14 @@
"""This file describes the heroic adventurer {{ char.name }}.
Modify this file as you level up and then re-generate the character
sheet by running ``makesheets`` from the command line.
"""
name = '{{ char.name }}'
character_class = '{{ char.class_name }}'
player_name = '{{ char.player_name }}'
background = "{{ char.background }}"
background = "{{ char.background.name }}"
race = "{{ char.race.name }}"
level = {{ char.level }}
alignment = "{{ char.alignment }}"
@@ -15,80 +22,49 @@ constitution = {{ char.constitution.value }}
intelligence = {{ char.intelligence.value }}
wisdom = {{ char.wisdom.value }}
charisma = {{ char.charisma.value }}
skill_proficiencies = (
# Put your skill proficiencies here, including the {{ char.race }} race.
)
skill_proficiencies = {{ char.skill_proficiencies }}
# Proficiencies and languages
languages = "Common, Elvish, Draconic, Dwarvish, Goblin."
languages = "{{ char.languages }}"
# Inventory
# TODO: Get yourself some money
cp = 0
sp = 0
ep = 0
gp = 0
pp = 0
weapons = ('shortsword', 'longsword')
equipment = (
"""Gallon of ale, red cloak, shortsword, longsword, jar of salt, vodka
(500mL), potion of vitality, wand of magic missiles (7/7),
component pouch, spellbook, backpack, bottle of ink, ink pen, 10
sheets of parchment, small knife, tome of historical lore, holy
symbol, prayer book, set of common clothes, pouch.""")
# TODO: Put your equipped weapons and armor here
weapons = () # Example: ('shortsword', 'longsword')
armor = "" # Eg "light leather armor"
shield = "" # Eg "shield"
equipment = "TODO: Describe your equipment from your {{ char.class_name }} class and {{ char.background.name }} background."
attacks_and_spellcasting = "TODO: Describe specifics for how your {{ char.class_name }} attacks."
# List of known spells
spells = ('blindness deafness', 'burning hands', 'detect magic',
'false life', 'mage armor', 'mage hand', 'magic missile',
'prestidigitation', 'ray of frost', 'ray of sickness', 'shield',
'shocking grasp', 'sleep', 'some other spell')
# Example: spells = ('magic missile', 'mage armor')
spells = () # Todo: Learn some spells
# Which spells have been prepared (not including cantrips)
spells_prepared = ('blindness deafness', 'false life', 'mage armor',
'ray of sickness', 'shield', 'sleep',)
spells_prepared = ()
# Backstory
personality_traits = """I use polysyllabic words that convey the impression of
erudition. Also, Ive spent so long in the temple that I have little
experience dealing with people on a casual basis."""
# TODO: Describe your backstory here
personality_traits = """I am a leaf on the wind,
watch how I...
"""
ideals = """Knowledge. The path to power and self-improvement is through
knowledge."""
ideals = """
"""
bonds = """The tome I carry with me is the record of my lifes work so far,
and no vault is secure enough to keep it safe."""
bonds = """
"""
flaws = """Ill do just about anything to uncover historical secrets that
would add to my research."""
flaws = """
"""
features_and_traits = (
"""Spellcasting Ability: Intelligence is your spellcasting ability for
your spells. The saving throw DC to resist a spell you cast is
13. Your attack bonus when you make an attack with a spell is
+5. See the rulebook for rules on casting your spells.
Arcane Recovery: You can regain some of your magical energy by
studying your spellbook. Once per day during a short rest, you can
choose to recover expended spell slots with a combined level equal
to or less than half your wizard level (rounded up).
Darkvision: You see in dim light within a 60-foot radius of you as
if it were bright light, and in darkness in that radius as if it
were dim light. You cant discern color in darkness, only shades
of gray.
Fey Ancestry: You have advantage on saving throws against being
charmed, and magic cant put you to sleep.
Trance: Elves dont need to sleep. They meditate deeply, remaining
semiconscious, for 4 hours a day and gain the same benefit a human
does from 8 hours of sleep.
Shelter of the Faithful: As a servant of Oghma, you command the
respect of those who share your faith, and you can perform the
rites of Oghma. You and your companions can expect to receive free
healing and care at a temple, shrine, or other established
presence of Oghmas faith. Those who share your religion will
support you (and only you) at a modest lifestyle. You also have
ties to the temple of Oghma in Neverwinter, where you have a
residence. When you are in Neverwinter, you can call upon the
priests there for assistance that wont endanger them.""")
features_and_traits = """
"""