Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Player_Character(DefaultCharacter):
- def at_object_creation(self):
- # Figure Attributes
- self.db.figure = {}
- self.db.figure['height'] = 'short'
- self.db.figure['build'] = 'burly'
- self.db.figure['gender'] = 'male'
- # Facial Attributes
- self.db.facial = {}
- self.db.facial['eye_color'] = 'blue'
- self.db.facial['nose'] = 'thin'
- self.db.facial['lips'] = 'thin'
- self.db.facial['chin'] = 'pointed'
- self.db.facial['face_shape'] = 'narrow'
- self.db.facial['face_color'] = 'ivory'
- # Hair Attributes
- self.db.hair = {}
- self.db.hair['length'] = 'long'
- self.db.hair['texture'] = 'bouncy'
- self.db.hair['color'] = 'tawny'
- self.db.hair['style'] = 'in a pony-tail'
- def create_figure(self):
- # The figure should result in "You see a short burly man."
- figure = []
- for figures in self.attributes.get('figure'):
- figure.append(figures)
- full_figure = f"You see a {figure[0]} {figure[1]} {figure[2]}."
- return full_figure
- def create_facial(self):
- # The facial should result in "He has <color> eyes set above an <shape> nose, <shape> lips and a <shape> chin in a <shape> <color> face."
- facial = self.db.facial
- gender = self.db.figure.get('gender')
- gender = ("He" if gender == 'male' else "She")
- full_facial = f"{gender} has {facial.get('eye_color')} eyes set above a {facial.get('nose')} nose, {facial.get('lips')} lips and a {facial.get('chin')} chin in a {facial.get('face_shape')} {facial.get('face_color')} face."
- return full_facial
- def create_hair(self):
- # The hair should result in "<gender> has <length> <texture> <color> hair <style>."
- hair = self.db.hair
- gender = self.db.figure.get('gender')
- gender = ("He" if gender == 'male' else "She")
- full_hair = f"{gender} has {hair.get('length')} {hair.get('texture')} {hair.get('color')} hair {hair.get('style')}."
- return full_hair
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement