Created
August 8, 2018 17:31
-
-
Save XChrisUnknownX/abb8a87403f61a345aaf3833f45748ae to your computer and use it in GitHub Desktop.
chargenfunctionAugust2018-2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def charactergen(): | |
#SECTION BELOW PICKS GENDER AND NAME | |
import random | |
malenames = ["Gary", "Joshua", | |
"Christopher","Noah","Matthew","Michael","Scott","Anthony","Salvatore","William","Frank","Mark","Thomas","Carl","Claude","Vincent","James","Nathan","Stuart","Steven","Albert","Adam","Charles","Darius","Greg","Hank","Harold","Paul","Peter","Patrick","Constantine","Kevin","Robert","Raymond","Benjamin","Yuri","Jacob","Oswald","Robin","Nicholas","Jeremy","Leslie","Arnold","Jack","Bruce"] | |
femalenames = ["Jeanine","Joy","Jovanna","Christina","Christine","Helen","Patricia","Gwen","Whitney","Dawn","Jeanine","Miriam","Leyla","Brittany","Amy","Felicia","Whitney","Kayla","Karen","Yolanda","Yuri","Hannah","Deanna","Mary","Marie","Jane","Sara","Reyna","Laura","Wanda","Wilma","Brenda","Rebecca","Octavia","Caitlyn","Kate","Penelope","Leslie","Robin","Darlene","Doreen","Danielle","Rachel","Rosemarie","Anna","Stephanie","Nancy","Delilah","Diane","Renee","Beatrice","Sasha","Elle","Marjorie","Madeline","Theresa","Trish","Jamie","Lisa","Michelle"] | |
lastnames = ["Day","Deluna","Schwartz","Hernandez","Calderon","Cruz","Riccio","Smith","Johnson","Jones","Leo","Goldstein","Reich","Rodriguez","Rosenberg","Rosenblum","Campanelli","Dougherty","Doherty","Shearer","Ierardi","Gonzalez","Santos","Montalbano","Gerstein","Farber","Mayfield","Volz","Luna","Knight","Arriaga","Escobar","Hart","Wallace","Davis","Lorenzo","Silver","Lieberman","Payonk","Williams","Wadia","Cohen","Thompson","Vance","Thomas","Sylvestre","Moller","McCormack","Lindholm","Herrada","Wells","Jacobs","Galper","Cheng","Deng","Feng","Fink","Finkelstein","Roth","Rothstein","Chi","Salters","Silberger","Ramos","Vance","Vanderbilt","Bush","Clinton","Nedich","Nowak","Noles","Polaski","Diaz","Melendez","Lyons"] | |
space = " " | |
male = "male" | |
female = "female" | |
maleorfemale = random.choice([male,female]) | |
if maleorfemale == male: | |
firstname = random.choice(malenames) | |
pronoun = "he" | |
possessive = "his" | |
possessives = "his" | |
objectpronoun = "him" | |
prefix = "Mr." | |
relationchild = random.choice(["father","dad"]) | |
relationspouse = random.choice(["husband","groom"]) | |
relationsibling = "brother" | |
relationniece = "uncle" | |
relationgrandchild = random.choice(["grandpa","grandfather"]) | |
relationaunt = "nephew" | |
else: | |
firstname = random.choice(femalenames) | |
pronoun = "she" | |
possessive = "her" | |
possessives = "hers" | |
objectpronoun = "her" | |
prefix = "Ms." | |
relationchild = random.choice(["mother","mom"]) | |
relationspouse = random.choice(["bride","wife"]) | |
relationsibling = "sister" | |
relationniece = "aunt" | |
relationgrandchild = random.choice(["grandma","grandmother"]) | |
relationaunt = "niece" | |
lastname = random.choice(lastnames) | |
name = (firstname + space + lastname) | |
# THE SECTION ABOVE PICKS GENDER AND NAME | |
# The section below will pick eye color, hair color, whether or not the character is a liar, | |
brown = "brown" | |
blue = "blue" | |
green = "green" | |
red = "red" | |
black = "black" | |
white = "white" | |
gray = "gray" | |
blonde = random.choice(["yellow","blonde"]) | |
eyecolors = [brown,blue,green,gray] | |
haircolors = [blonde,brown,gray,white,black] | |
trueorfalse = [True,False] | |
eyecolor = random.choice(eyecolors) | |
haircolor = random.choice(haircolors) | |
isaliar = random.choice([True,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False]) | |
#section above is eye color, hair color, whether character is a liar | |
# section below decides hair length | |
length = random.choice(["long","short"]) | |
#section above decides hair length | |
# section below generates the character list | |
character = [maleorfemale,name,firstname,lastname,pronoun,possessive,possessives,objectpronoun,relationchild,relationspouse,eyecolor,haircolor,isaliar,prefix,length,relationsibling,relationniece,relationgrandchild] | |
# 0 maleorfemale, 1 full name, 2 first name, 3 last name, 4 pronoun, 5 possessive, 6 possessives, 7 objectpronoun, 8 relation to a child, 9 relation to a spouse, 10 eye color, 11 hair color, 12 isaliar True or False, 13 prefix, 14 length, 15 relation to a sibling, 16 relation to a niece or nephew, 17 relation to a grandchild, 18 relation to an aunt or uncle | |
return character | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment