Code: Select all
init python:
maxstat = 10
minstat = 0
class character:
def __init__(self, name, race, might, agility, toughness, alacrity, vigor, intellect, alertness, spirit, education, willpower, charisma, guile, intuition, tact, essence, money):
self.name = name
self.race = race
self.might = 0
self.agility = 0
self.toughness = 0
self.alacrity = 0
self.vigor = 0
self.intellect = 0
self.alertness = 0
self.spirit = 0
self.education = 0
self.willpower = 0
self.charisma = 0
self.guile = 0
self.intuition = 0
self.tact = 0
self.essence = 0
self.money = 100
character = Character()
character.race = _('Not Selected')
character.name = _('Not Selected')
Code: Select all
text _("Name: [character.name] \nRace: [character.race] \nMight: [character.might]"):
Code: Select all
AttributeError: 'ADVCharacter' object has no attribute 'might'
So I could just say character.might = 0 like I did with race and name, but I'd rather not do that for everything, since I've already done it up above. Or should that just say self.might = might ?
Sort of got in over my head and I'm hoping someone can help me out. I can do what I want to do but I'd like to save some time and learn the right way.