def __init__(self, id=0, race="human"): Being.__init__(self) self.name = namer.character_name() self.id = id self.race = race self.met = False tag_id = generate_id() tag_name = "Dogtag of %s" % self.name self.items[tag_id] = Item(tag_id, tag_name)
def __init__(self): Being.__init__(self) self.name = raw_input("What is your character's name? ") if not self.name: self.name = namer.character_name() self.name = "\033[1m" + self.name + "\033[0;0m" self.race = "human" self.hp = 10 self.maxhp = 10 self.target = None self.age = 0.0 self.quests = {} wep_id = generate_id() self.w = Weapon(5, wep_id, 2, "Dagger") # beginner weapon self.items[wep_id] = self.w