characterTraits.js (5280B)
1 var br = ""; 2 3 function nameGen(type) { 4 var tp = type; 5 var nm1 = ["Active", "Adaptable", "Adventurous", "Agreeable", "Alert", "Ambitious", "Anticipative", "Appreciative", "Articulate", "Athletic", "Attentive", "Balanced", "Benevolent", "Brave", "Calm", "Capable", "Careful", "Caring", "Charismatic", "Charitable", "Charming", "Cheerful", "Clean", "Clear-Headed", "Clever", "Compassionate", "Confident", "Contemplative", "Cooperative", "Courageous", "Courteous", "Creative", "Critical Thinker", "Cultured", "Curious", "Daring", "Decent", "Decisive", "Dedicated", "Dependable", "Dignified", "Directed", "Disciplined", "Discreet", "Driven", "Dutiful", "Dynamic", "Earnest", "Educated", "Efficient", "Elegant", "Eloquent", "Empathetic", "Energetic", "Enthusiastic", "Fair", "Faithful", "Flexible", "Focused", "Forgiving", "Forthright", "Friendly", "Gallant", "Generous", "Gentle", "Genuine", "Good Judge of Character", "Good Listener", "Good-Natured", "Gracious", "Hardworking", "Helpful", "Heroic", "Honest", "Honorable", "Humble", "Humorous", "Imaginative", "Incorruptible", "Independent", "Innovative", "Inoffensive", "Insightful", "Intelligent", "Interesting", "Intuitive", "Kind", "Leaderly", "Level-Headed", "Logical", "Lovable", "Loyal", "Mature", "Modest", "Moral", "Neat", "Observant", "Open-Minded", "Orderly", "Organized", "Passionate", "Patient", "Peaceful", "Perceptive", "Playful", "Practical", "Principled", "Protective", "Punctual", "Rational", "Realistic", "Reflective", "Relaxed", "Reliable", "Reliant", "Resourceful", "Respectful", "Responsible", "Responsive", "Self-Critical", "Self-Reliant", "Self-Sufficient", "Selfless", "Sensitive", "Skillful", "Smart", "Sober", "Sociable", "Social", "Stable", "Strong", "Sweet", "Sympathetic", "Tidy", "Tolerant", "Trustworthy", "Understanding", "Upright", "Warm", "Warm-Hearted", "Wise", "Witty", "Worldly"]; 6 var nm2 = ["Abrasive", "Absent-Minded", "Abusive", "Addictive Personality", "Aimless", "Amoral", "Antisocial", "Anxious", "Arrogant", "Artificial", "Asocial", "Attention Seeker", "Audacious", "Authoritarian", "Bad Listener", "Bigmouth", "Bigot", "Blameless", "Bland", "Blindly Obedient", "Blunt", "Boring", "Brutal", "Brutally Honest", "Callous", "Captain Obvious", "Careless", "Chaotic", "Cheap", "Childish", "Claustrophobic", "Clumsy", "Coarse", "Cold", "Conceited", "Control Freak", "Corrupter", "Corruptible", "Coward", "Crass", "Crude", "Cruel", "Deceitful", "Demanding", "Deranged", "Destructive", "Devious", "Dirty", "Dishonest", "Disloyal", "Disobedient", "Disorderly", "Disorganized", "Distracted", "Disturbed", "Dubious", "Dull", "Egotistical", "Entitled", "Envious", "Erratic", "Extremist", "Fanatical", "Fickle", "Finicky", "Forgetful", "Fraudulent", "Glory Seeker", "Gluttonous", "Graceless", "Greedy", "Grinch", "Gruff", "Gullible", "Hedonistic", "Hero Syndrome", "Hostile", "Humourless", "Hypocrite", "Idiotic", "Ignorant", "Illiterate", "Immature", "Immodest", "Impatient", "Incapable", "Incompetent", "Indecisive", "Indifferent", "Insensitive", "Intolerant", "Invisible", "Irrational", "Jealous", "Judgmental", "Lazy", "Lewd", "Liar", "Lustful", "Manipulative", "Masochist", "Meddlesome", "Messy", "Misguided", "Monstrous", "Moody", "Morbid", "Naive", "Narcissist", "Narrow-Minded", "Naughty", "Neat Freak", "Nervous", "Nosey", "Oblivious", "Obnoxious", "Obsessive", "Oppressive", "Overambitious", "Overconfident", "Overemotional", "Overly Competitive", "Overly Dependent", "Overly Picky", "Overly Shy", "Overprotective", "Overzealous", "Paranoid", "Pedantic", "Peevish", "Perfectionist", "Perverted", "Pessimist", "Petty", "Phobic", "Pompous", "Possessive", "Power Drunk", "Power-Hungry", "Prankster", "Predictable", "Prejudiced", "Pretentious", "Primadonna", "Procrastinator", "Provocative", "Psychopathic", "Rebellious", "Reckless", "Reclusive", "Remorseless", "Resentful", "Righteous", "Sadist", "Sarcastic", "Schemer", "Scheming", "Scrooge", "Selfish", "Senile", "Shallow", "Shortsighted", "Shut-In", "Single-Minded", "Skewed Priorities", "Slacker", "Sleepyhead", "Slimeball", "Sloppy", "Slow", "Sly", "Socially Awkward", "Solemn", "Sore Loser", "Sore Winner", "Spineless", "Spiteful", "Spoiled", "Squeamish", "Stubborn", "Stupid", "Superstitious", "Tactless", "Tease", "Temperamental", "Timid", "Troublemaker", "Uncharitable", "Undisciplined", "Ungrateful", "Unimaginative", "Unlucky", "Unstable", "Untrustworthy", "Vain", "Vindictive", "Violent", "Vulnerable", "Weak", "Weak-Willed", "Wild Card", "Without Direction", "Workaholic"]; 7 var element = document.createElement("div"); 8 element.setAttribute("id", "result"); 9 for (i = 0; i < 10; i++) { 10 if (tp === 1) { 11 rnd = Math.random() * nm2.length | 0; 12 nMs = nm2[rnd]; 13 nm2.splice(rnd, 1); 14 } else { 15 rnd = Math.random() * nm1.length | 0; 16 nMs = nm1[rnd]; 17 nm1.splice(rnd, 1); 18 } 19 br = document.createElement('br'); 20 element.appendChild(document.createTextNode(nMs)); 21 element.appendChild(br); 22 } 23 if (document.getElementById("result")) { 24 document.getElementById("placeholder").removeChild(document.getElementById("result")); 25 } 26 document.getElementById("placeholder").appendChild(element); 27 }