Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- In game result:
- You see a very tall ample male. He has light grey eyes set above a hooked nose, pouting lips and a distinguished chin in a freckled sallow face. He is bald.
- '''
- class Player_Character(DefaultCharacter):
- def return_appearance(self, looker, **kwargs):
- if not looker:
- return ""
- # get description, build string
- string = self.create_desc()
- return string
- def create_desc(self):
- desc = ""
- figure = self.db.figure
- facial = self.db.facial
- hair = self.db.hair
- height = figure.get('height')
- build = figure.get('build')
- gender = figure.get('gender')
- eye_color = facial.get('eye_color')
- nose = facial.get('nose')
- lips = facial.get('lips')
- chin = facial.get('chin')
- face = facial.get('face')
- skin_color = facial.get('skin_color')
- length = hair.get('length')
- texture = hair.get('texture')
- hair_color = hair.get('hair_color')
- style = hair.get('style')
- # The figure should result in "You see a <height> <build> <gender>."
- desc += f"You see a {height} {build} {gender}. "
- # 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."
- gender = ('He' if gender == 'male' else 'She')
- desc += f"{gender} has {eye_color} eyes set above a {nose} nose, "
- desc += f"{lips} lips and a {chin} chin in a {face} {skin_color} face. "
- # The hair should result in "<gender> has <length> <texture> <color> hair <style>."
- if length == 'bald':
- desc += f"{gender} is {length}. "
- else:
- desc += f"{gender} has {length} {texture} {hair_color} hair {style}. "
- return desc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement