You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
17 KiB
JavaScript
120 lines
17 KiB
JavaScript
function nameGen() {
|
|
var nm1 = ["Aggressive", "Agitated", "Agony", "Aggressive", "Ancient", "Angel", "Angry", "Animated", "Anxious", "Arachnid", "Autumn", "Avian", "Bacterial", "Banshee", "Beer", "Black", "Boar", "Brain", "Brittle", "Buzzing", "Canine", "Cat", "Cave", "Chicken", "Chilling", "Cold", "Collapsing", "Contagious", "Cow", "Crazy", "Creeping", "Crippling", "Crumbling", "Crying", "Crystal", "Curable", "Deadly", "Death's", "Deathbell", "Decaying", "Delirious", "Demon", "Desert", "Desolation", "Deteriorating", "Devil's", "Dog", "Dragon", "Dream", "Dreaming", "Duck", "Dwarf", "Dying", "Elastic", "Elephant", "Enlarged", "Ethereal", "Exhausting", "Explosive", "Fading", "Failing", "Fall", "Falling", "Fatal", "Feline", "Fickle", "Fiery", "Fisherman's", "Flower", "Forceful", "Forest", "Frenzied", "Frost", "Frozen", "Ghastly", "Ghost", "Goblin", "Golden", "Goose", "Grave", "Green", "Growing", "Guttural", "Happy", "Harmless", "Heaven's", "Hell", "Hellish", "Hiccup", "Hopeless", "Horse", "Hostile", "Hot", "Humming", "Hyper", "Icy", "Immobilizing", "Impossible", "Incurable", "Intense", "Iron", "Ironbark", "Island", "Jumping", "Jungle", "King's", "Lady", "Laughing", "Lifeless", "Limp", "Lion", "Lizard", "Man", "Marsh", "Memory", "Mild", "Milk", "Mortal", "Mountain", "Mouse", "Necrotic", "Nervous", "Numb", "Numbing", "Ogre", "Orange", "Pale", "Paralyzing", "Peaceful", "Permanent", "Pestilent", "Petrifying", "Phantom", "Pig", "Pink", "Pygmy", "Queen's", "Quiet", "Quivering", "Rabbit", "Rabid", "Rasping", "Rat", "Red", "Restless", "Rickety", "Rock", "Rodent", "Rooster", "Rotting", "Running", "Sage", "Screaming", "Sedated", "Serpent", "Shadow", "Shaking", "Shaky", "Sheep", "Shivering", "Shriveling", "Silent", "Silver", "Sinister", "Sleep", "Smiling", "Snake", "Sniffeling", "Soft", "Soul", "Spastic", "Spider", "Spine", "Spirit", "Spring", "Steel", "Sterile", "Stiff", "Stiffening", "Stimulated", "Stinging", "Stomach", "Stranger's", "Stressed", "Stressful", "Stunned", "Summer", "Swamp", "Swine", "Temporary", "Terrifying", "Thorny", "Ticklish", "Tiring", "Tomb", "Tranquil", "Tree", "Trembling", "Trivial", "Twitching", "Ugly", "Undead", "Vein", "Violet", "Volatile", "Warping", "Water", "Weak", "Weakening", "Whispering", "Wicked", "Wild", "Winter", "Wired", "Witch", "Withering", "Wizard", "Wolf", "Wooden", "Worn", "Wraith", "Yellow", "Zombie"];
|
|
var nm2 = ["Ache", "Aching", "Acne", "Allergy", "Amnesia", "Anemia", "Anthrax", "Anxiety", "Arthritis", "Asthma", "Baldness", "Blight", "Blindness", "Blisters", "Body", "Bones", "Bronchitis", "Cancer", "Cannibalism", "Chills", "Chlamydia", "Cholera", "Cold", "Cough", "Cramps", "Deafness", "Death", "Decay", "Deficiency", "Dehydration", "Delirium", "Delusion", "Delusions", "Depression", "Diptheria", "Disease", "Dysfunctions", "Ears", "Ebola", "Epilepsy", "Euphoria", "Eye", "Eyes", "Fatigue", "Feet", "Fever", "Finger", "Flu", "Foot", "Gangrene", "Gonorrhea", "Hallucinations", "Hands", "Head", "Heart", "Hepatitis", "Herpes", "Illness", "Infection", "Infertility", "Inflammation", "Influenza", "Insanity", "Insomnia", "Intolerance", "Irritation", "Leprosy", "Lupus", "Malaria", "Measles", "Meningitis", "Migraine", "Mouth", "Mutation", "Nausea", "Nose", "Panic", "Paralysis", "Paranoia", "Parasite", "Plague", "Pneumonia", "Poisoning", "Pox", "Rabies", "Rage", "Rash", "Salmonella", "Scarring", "Schizophrenia", "Scurvy", "Shock", "Skin", "Sleep Disorder", "Sneeze", "Soreness", "Sores", "Spasms", "Stiffness", "Stomach", "Swelling", "Syndrome", "Syphilis", "Tetanus", "Throat", "Tongue", "Tumor", "Ulcers", "Vampirism", "Virus", "Warts"];
|
|
var nm3 = ["a bad taste in mouth", "a dry mouth", "a dry skin", "a fever", "a loss of appetite", "a loss of taste", "a metallic taste in mouth", "a rash", "a runny nose", "a shortness of breath", "a skin bump outbreak", "a skin sore outbreak", "a sore throat", "a sore tongue", "abdominal pain", "acid reflux", "an altered mental status", "an itchy skin", "ankle pain", "arm pain", "back pain", "bad breath", "blistering", "blood in urine", "bloody nose", "blurred vision", "breast pain", "breathing difficulty", "burning urination", "chest pain", "chills", "cloudy urine", "cold feet", "cold fingers", "cold hands", "confusion", "constipation", "coughing", "cramping", "delirium", "delusion", "depression", "diarrhea", "dizziness", "double vision", "drooling", "ear pain", "easy bruising", "euphoria", "excess sweating", "excessive yawning", "eye discharge", "eye swelling", "eye twitching", "fainting", "feeling light-headed", "feeling sick", "feeling sleepy", "feeling tired", "feeling weak", "finger numbness", "frequent urination", "gum pain", "hair loss", "hallucination", "headache", "hearing difficulty", "heartburn", "hip pain", "hyperactivity", "inattention", "increased thirst", "jaw pain", "joint redness", "joint stiffness", "joint swelling", "knee pain", "leg pain", "leg swelling", "memory loss", "mood fluctuation", "mouth sores", "moving difficulty", "muscle cramps", "muscle weakness", "nail brittleness", "nasal congestion", "nausea", "neck pain", "peeing difficulty", "pelvic pain", "pupil dilation", "rectal pain", "red spot outbreak", "ringing ears", "seizures", "shaking hands", "shoulder pain", "sleeping difficulty", "sneezing", "swallowing difficulty", "temperature fluctuation", "temporary blindness", "tingling feet", "tingling hands", "toe numbness", "toothache", "vomiting", "walking difficulty", "weight gain", "weight loss"];
|
|
var nm4 = ["generally start within a week", "generally start within a few days", "generally start within a few hours", "may start within a week", "may start within a few days", "may start within a few hours", "slowly increase in severity over a week", "slowly increase in severity over a few days", "slowly increase in severity over several hours", "often start out of nowhere within a week", "often start out of nowhere within a few days", "often start out of nowhere within a few hours"];
|
|
var nm5 = ["rarely together at the same time", "rarely are both experienced at once", "both symptoms always start together", "both symptoms are always experienced at some time", "not necessarily at the same time", "only one symptom may be experienced", "both symptoms may differ in severity", "both symptoms are usually equally intense", "one symptom may be subdued in some cases", "one symptom generally lags behind the other"];
|
|
var nm6 = ["generally fades away and never returns", "generally fades away, but may linger for a while", "generally fades away, only to return later", "often increases in intensity", "generally increases in intensity", "usually fades away, but never completely", "often gradually loses its intensity", "tends to linger for a long time", "tends to become seemingly random and infrequent", "usually loses how frequently it's experienced", "often reaches extremes at seemingly random times", "may reach severely uncomfortable peaks", "may turn into more severe experiences", "often becomes less severe after a few days", "tends to stop very quickly"];
|
|
var nm7 = ["by most people", "by the majority of people", "by the vast majority of people", "by almost all cases", "by all people", "by all cases so far"];
|
|
var nm8 = ["sometimes decreases the severity of the", "often has an amplifying effect on the", "generally tends to worsen the effects of the", "generally leads to a decrease of the", "often subdues the severity of the", "may be experienced more strongly in combination with the", "may be less severe in combination with the", "may be amplified by the", "may be subdued a little by the", "is often experienced more severe due to the"];
|
|
var nm9 = ["by 50% of people", "by about 25% of people", "fairly often", "often", "rarely", "frequently", "infrequently"];
|
|
var nm10 = ["often experienced severely", "often experienced moderately", "often experienced at random times", "usually experienced in the morning", "usually experienced in the evening", "usually experienced at night", "generally experienced at severe levels", "generally experienced at moderate levels", "generally experienced only faintly", "mostly experienced after eating", "mostly experienced after drinking", "mostly experienced after waking up", "usually experienced while standing up"];
|
|
var nm11 = ["in rare cases", "in only some cases", "in only some people", "in a minority of people", "in rare cases", "in extreme cases", "in some extreme cases", "in specific cases", "in very specific cases", "very rarely"];
|
|
var nm12 = ["may become a chronic experience", "may become a more severe experience", "is usually only experienced faintly", "is generally not experienced to extreme levels", "often fades as quickly as it starts", "may be completely unrelated and coincidental", "is generally only experienced for a short time", "may be experienced for a long time", "can be experienced at extreme levels", "could be a symptom of a different disease"];
|
|
var nm13 = ["Ingesting a virus from vermin droppings, usually through food", "Ingesting a virus through improperly cooked meats and fish", "Bad hygiene or coming in contact with contaminated water", "Improper and/or unbalanced diet", "Infection, often after an injury", "Often injected by insects, like mosquitoes", "Genetic birth defects", "Being infected by contaminated bodily fluids", "Infection in a weak(ened) immune system", "Deficiency of nutrients and vitamins", "Breathing contaminated air, often in combination with a weaker immune system", "Too much stress and a weakened immune system", "Lack of sleep, exercise and/or imbalanced diet", "Lack of sleep, often in combination with stress", "A virus. Often ingested through food and drinks", "Bacteria ingested through food from places with bad hygiene", "Ingesting meat from contaminated animals", "Bacterial infection after an injury, usually in combination with bad hygiene", "Evolved virus from animals. Those who work with animals are thus at higher risk", "Currently unknown", "Unknown, but a weakened immune system is usually part of it"];
|
|
var nm14 = ["Spicy food", "Stress", "Lack of sleep", "Alcohol", "Caffeine", "Stimulating drugs", "Doing nothing", "Poor nutrition", "Certain medications", "Lack of exercise", "Heavy exercise/labor", "High blood pressure", "Being overweight", "Being underweight", "Excess vitamins", "Exertion", "Excess supplements"];
|
|
var nm15 = ["Spicy food.", "Stress.", "Lack of sleep.", "Alcohol.", "Caffeine.", "Stimulating drugs.", "Doing nothing.", "Poor nutrition.", "Certain medications.", "Lack of exercise.", "Heavy exercise/labor.", "High blood pressure.", "Being overweight.", "Being underweight.", "Excess vitamins.", "Exertion.", "Excess supplements.", "", "", "", "", ""];
|
|
var nm16 = ["Simple medication routine", "Heavy medication routine", "Medication and dietary supplement routine", "Light suppressants", "Heavy suppressants", "Simple surgical procedure", "Invasive surgical procedure", "Medication routine and in some cases a surgical procedure", "Suppressants and medication routine", "Change of lifestyle", "None needed, medication is given in some cases", "Untreatable. (Pain) medication helps manage it", "Stress reduction and a light medication routine", "Light suppressants and in some cases a surgical procedure", "Invasive medication routine", "Heavy medication and suppressant routine", "Proper diet and enough rest", "Rest, relaxation and in some cases minor medication", "Usually rest is enough. Some cases require a minor surgical procedure", "Usually rest and a proper diet are enough. Some cases require medication"];
|
|
var nm17 = ["3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33"];
|
|
var nm18 = ["people", "young adults", "adults", "older adults", "children", "young children", "teenagers", "senior adults", "people", "people"];
|
|
var rnd1 = parseInt(Math.floor(Math.random() * nm1.length));
|
|
var rnd2 = parseInt(Math.floor(Math.random() * nm2.length));
|
|
var rnd3a = parseInt(Math.floor(Math.random() * nm3.length));
|
|
var rnd3b = parseInt(Math.floor(Math.random() * nm3.length));
|
|
var rnd3c = parseInt(Math.floor(Math.random() * nm3.length));
|
|
var rnd3d = parseInt(Math.floor(Math.random() * nm3.length));
|
|
var rnd3e = parseInt(Math.floor(Math.random() * nm3.length));
|
|
while (rnd3b === rnd3a) {
|
|
rnd3b = parseInt(Math.floor(Math.random() * nm3.length));
|
|
}
|
|
var rnd3c = parseInt(Math.floor(Math.random() * nm3.length));
|
|
while (rnd3b === rnd3c || rnd3a === rnd3c) {
|
|
rnd3c = parseInt(Math.floor(Math.random() * nm3.length));
|
|
}
|
|
var rnd3d = parseInt(Math.floor(Math.random() * nm3.length));
|
|
while (rnd3d === rnd3a || rnd3d === rnd3b || rnd3d === rnd3c) {
|
|
rnd3d = parseInt(Math.floor(Math.random() * nm3.length));
|
|
}
|
|
var rnd3e = parseInt(Math.floor(Math.random() * nm3.length));
|
|
while (rnd3e === rnd3a || rnd3e === rnd3b || rnd3e === rnd3c || rnd3e === rnd3d) {
|
|
rnd3e = parseInt(Math.floor(Math.random() * nm3.length));
|
|
}
|
|
var rnd4 = parseInt(Math.floor(Math.random() * nm4.length));
|
|
var rnd5 = parseInt(Math.floor(Math.random() * nm5.length));
|
|
var rnd6 = parseInt(Math.floor(Math.random() * nm6.length));
|
|
var rnd7 = parseInt(Math.floor(Math.random() * nm7.length));
|
|
var rnd8 = parseInt(Math.floor(Math.random() * nm8.length));
|
|
var rnd9 = parseInt(Math.floor(Math.random() * nm9.length));
|
|
var rnd10 = parseInt(Math.floor(Math.random() * nm10.length));
|
|
var rnd11 = parseInt(Math.floor(Math.random() * nm11.length));
|
|
var rnd12 = parseInt(Math.floor(Math.random() * nm12.length));
|
|
var rnd13 = parseInt(Math.floor(Math.random() * nm13.length));
|
|
var rnd14a = parseInt(Math.floor(Math.random() * nm14.length));
|
|
var rnd14b = parseInt(Math.floor(Math.random() * nm14.length));
|
|
var rnd15 = parseInt(Math.floor(Math.random() * nm15.length));
|
|
while (rnd14b === rnd14a) {
|
|
rnd14b = parseInt(Math.floor(Math.random() * nm14.length));
|
|
}
|
|
while (rnd15 === rnd14a || rnd15 === rnd14b) {
|
|
rnd15 = parseInt(Math.floor(Math.random() * nm15.length));
|
|
}
|
|
var rnd16 = parseInt(Math.floor(Math.random() * nm16.length));
|
|
var rnd17 = parseInt(Math.floor(Math.random() * nm17.length));
|
|
var rnd18 = parseInt(Math.floor(Math.random() * nm18.length));
|
|
var name = "Name: " + nm1[rnd1] + " " + nm2[rnd2];
|
|
var name2 = "Possible symptoms:";
|
|
var name3 = "- " + nm3[rnd3a];
|
|
var name4 = "- " + nm3[rnd3b];
|
|
var name5 = "- " + nm3[rnd3c];
|
|
var name6 = "- " + nm3[rnd3d] + " (not in all cases)";
|
|
var name7 = "- " + nm3[rnd3e] + " (uncommon)";
|
|
var name8 = "What to expect: " + nm3[rnd3a] + " and " + nm3[rnd3b] + " " + nm4[rnd4] + ", but " + nm5[rnd5] + ". After the initial onset, " + nm3[rnd3a] + " " + nm6[rnd6] + ". Around this time " + nm3[rnd3c] + " is experienced " + nm7[rnd7] + ".";
|
|
var name9 = "The experience of " + nm3[rnd3c] + " " + nm8[rnd8] + " experience of " + nm3[rnd3b] + ".";
|
|
var name10 = "After a few more days " + nm3[rnd3d] + " is experienced " + nm9[rnd9] + " and is " + nm10[rnd10] + ".";
|
|
var name11 = "Throughout the course of the disease, " + nm3[rnd3e] + " may be experienced, but only " + nm11[rnd11] + " and " + nm12[rnd12] + ".";
|
|
var name12 = "Cause: " + nm13[rnd13] + ".";
|
|
var name13 = "Made worse by: " + nm14[rnd14a] + ". " + nm14[rnd14b] + ". " + nm15[rnd15];
|
|
var name14 = "Treatment: " + nm16[rnd16] + ".";
|
|
var name15 = "Rarity: 1 in " + nm17[rnd17] + " " + nm18[rnd18] + " have " + nm1[rnd1] + " " + nm2[rnd2] + ".";
|
|
var br = [];
|
|
for (i = 0; i < 15; i++) {
|
|
br[i] = document.createElement('br');
|
|
}
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
element.appendChild(document.createTextNode(name));
|
|
element.appendChild(br[0]);
|
|
element.appendChild(document.createTextNode(name2));
|
|
element.appendChild(br[1]);
|
|
element.appendChild(document.createTextNode(name3));
|
|
element.appendChild(br[2]);
|
|
element.appendChild(document.createTextNode(name4));
|
|
element.appendChild(br[3]);
|
|
element.appendChild(document.createTextNode(name5));
|
|
element.appendChild(br[4]);
|
|
element.appendChild(document.createTextNode(name6));
|
|
element.appendChild(br[5]);
|
|
element.appendChild(document.createTextNode(name7));
|
|
element.appendChild(br[6]);
|
|
element.appendChild(br[7]);
|
|
element.appendChild(document.createTextNode(name8));
|
|
element.appendChild(br[8]);
|
|
element.appendChild(document.createTextNode(name9));
|
|
element.appendChild(br[9]);
|
|
element.appendChild(document.createTextNode(name10));
|
|
element.appendChild(br[10]);
|
|
element.appendChild(document.createTextNode(name11));
|
|
element.appendChild(br[11]);
|
|
element.appendChild(document.createTextNode(name12));
|
|
element.appendChild(br[12]);
|
|
element.appendChild(document.createTextNode(name13));
|
|
element.appendChild(br[13]);
|
|
element.appendChild(document.createTextNode(name14));
|
|
element.appendChild(br[14]);
|
|
element.appendChild(document.createTextNode(name15));
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|