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.
91 lines
16 KiB
JavaScript
91 lines
16 KiB
JavaScript
function nameGen() {
|
|
var nm1 = ["Acacia Wood", "Alder Wood", "Ash Wood", "Aspen Wood", "Baobab Wood", "Basswood", "Baywood", "Beech Wood", "Birch Wood", "Bitterwood", "Blackthorn Wood", "Blackwood", "Buckeye Wood", "Cedar Wood", "Cherry Wood", "Chestnut Wood", "Cycad Wood", "Cypress Wood", "Dogwood", "Ebony Wood", "Elder Wood", "Elm Wood", "Fiddlewood", "Fir Wood", "Firethorn Wood", "Flame Tree Wood", "Hackberry Wood", "Hawthorn Wood", "Hazel Wood", "Hazelnut Wood", "Hemlock Wood", "Hickory Wood", "Holly Wood", "Hornbeam Wood", "Inkwood", "Ironbark Wood", "Ironwood", "Ivy Wood", "Juniper Wood", "Kingwood", "Lancewood", "Larch Wood", "Laurel Wood", "Magnolia Wood", "Mahogany Wood", "Maidenwood", "Mangrove Wood", "Maple Wood", "Medlar Wood", "Oak Wood", "Oleander Wood", "Palm Wood", "Pawpaw Wood", "Pear Wood", "Pine Wood", "Poisonwood", "Poplar Wood", "Redbud Wood", "Redwood", "Reed Wood", "Rosewood", "Rowan Wood", "Sandalwood", "Senna Wood", "Sequoia Wood", "Spruce Wood", "Strongbark Wood", "Sycamore Wood", "Toadwood", "Vine Wood", "Walnut Wood", "Willow Wood", "Yew Wood", "Yucca Wood"];
|
|
var nm2 = ["heavily favors those with a talent for conjuring", "heavily favors those with a talent for dueling", "heavily favors those with a talent for the most powerful magics", "heavily favors those with an affinity for spoken magics", "heavily favors those without even an inkling of an interest in the darker arts", "heavily prefers owners with an affinity for enchantments", "heavily prefers those prone to temptations", "heavily prefers those who are naturally lucky", "heavily prefers those who can resist strong temptations", "heavily prefers those with a burdened past", "heavily prefers those with a loving heart", "mostly prefers those who are heavily in tune with nature", "mostly seeks out those who tend to make the right choice", "often favors protectors and guardians", "often favors those with a talent for healing spells", "often needs an owner with a strong sense of justice", "often prefers an owner with a lot of intuition and instinct", "often prefers the more mysterious owner", "often prefers those with strong family roots", "often seeks out those who are faint of heart", "often seeks out those who are timid or shy", "often seeks out those who will serve a greater purpose", "often seeks out those with a talent for non-verbal magic", "often seeks out those with an interest in transfigurations", "often seeks out travelers and adventurers", "strongly favors an insecure owner", "strongly favors slow learners", "strongly favors those who love to make others smile", "strongly favors those with a lot of pride", "strongly favors those with a talent for mind magic", "strongly prefers the more clumsy owner", "strongly prefers those with a pure heart", "strongly prefers those with a talent for destruction", "strongly prefers those with a wandering mind", "strongly seeks out quick learners", "tend to seek out the well-respected", "tends to favor bookworms", "tends to favor the outcasts, loners and misfits", "tends to favor those interested in the darker arts", "tends to favor those who are energetic", "tends to favor those who love and crave destruction", "tends to favor those who tend to make mistakes", "tends to favor those with a competitive heart", "tends to favor those with a kind heart", "tends to favor those with incredible destinies", "tends to favor those with the darkest hearts and minds", "tends to favor those with the potential to be incredibly powerful", "tends to prefer an owner with big dreams", "tends to prefer quick thinkers as an owner", "tends to prefer those who are destined for a long, successful life", "tends to prefer those with a heart of gold", "tends to prefer those with a vicious mind", "tends to prefer those with an affinity for water", "tends to prefer those with strength and agility", "tends to seek out those with a sharp mind", "tends to seek out those with a talent for defensive spells", "tends to seek out those with an affinity for magical creatures", "usually favors those who have been around death", "usually favors those who think outside of the box", "usually favors those with a brave heart", "usually favors those with a love of all creatures", "usually favors those with a strong sense of righteousness", "usually favors troublemakers", "usually prefer those who lack any magical talent", "usually prefers a rich owner", "usually prefers a very social owner", "usually prefers leader types", "usually prefers public speakers and (future) public figures", "usually prefers those bound by honor and integrity", "usually prefers those who tend to follow instead of lead", "usually prefers those with a dark heart", "usually seeks out those who are bold and daring", "usually seeks out those with a loyal heart", "usually seeks out those with a mischievous mind", "usually seeks out those with selfish magical needs"];
|
|
var nm3 = ["with a talent for conjuring", "with a talent for dueling", "with a talent for the most powerful magics", "with an affinity for spoken magics", "without even an inkling of an interest in the darker arts", "with an affinity for enchantments", "prone to temptations", "who's naturally lucky", "who can resist strong temptations", "with a burdened past", "with a loving heart", "who's heavily in tune with nature", "who tends to make the right choice", "protective and loving", "with a talent for healing spells", "with a strong sense of justice", "with a lot of intuition and instinct", "mysterious", "with strong family roots", "who's faint of heart", "who's timid or shy", "who will serve a greater purpose", "with a talent for non-verbal magic", "with an interest in transfigurations", "with a great sense of adventure", "who's insecure", "who tends to be a slow learner", "who loves to make others smile", "with a lot of pride", "with a talent for mind magic", "clumsy, but who tries hard", "with a pure heart", "with a talent for destruction", "with a wandering mind", "who learns quickly", "well-respected", "with a quick mind", "who's often considered an outcast", "interested in the darker arts", "who's energetic", "who loves and craves destruction", "who tends to make mistakes", "with a competitive heart", "with a kind heart", "with an incredible destiny", "with the darkest heart and mind", "with the potential to be incredibly powerful", "with big dreams", "who loves to study", "who's destined for a long, successful life", "with a heart of gold", "with a vicious mind", "with an affinity for water", "with strength and agility", "with a sharp mind", "with a talent for defensive spells", "with an affinity for magical creatures", "who has been around death", "who thinks outside of the box", "with a brave heart", "with a love of all creatures", "with a strong sense of righteousness", "who tends to get in trouble a lot", "who lacks any magical talent", "rich or powerful", "social and likable", "with the potential to be a great leader", "with the potential to be an important public figure", "bound by honor and integrity", "who tends to follow instead of lead", "with a dark heart", "who's bold and daring", "with a loyal heart", "with a mischievous mind", "with selfish magical needs"];
|
|
var nm4 = ["1 core", "2 cores", "3 cores"];
|
|
var nm5 = ["basilisk claw", "basilisk bone", "centaur hoof shavings", "chimera scale", "chimera hair", "chimera mane hair", "giant's bone", "griffin claw", "hippogriff claw", "basilisk skin", "basilisk tail", "bear hair", "bone", "cat hair", "centaur heartstring", "centaur tail hair", "chimera scale", "crow feather", "demon scale", "demon tail hair", "dog whisker", "dragon bone", "dragon glass", "dragon heartstring", "dragon scale", "dragon tooth", "dragon wing", "dwarf beard hair", "elemental ash", "elf hair", "ent bark", "ent leave", "fairy hair", "fairy wing", "fireflies", "gargoyle dust", "ghost essence", "ghost hair", "giant's hair", "gnome beard hair", "goblin beard hair", "goblin hair", "griffin feather", "harpy hair", "hellhound tail hair", "hippogriff feather", "imp hair", "lion heartstring", "lion mane hair", "mermaid hair", "mermaid scale", "meteor dust", "nymph hair", "obsidian", "owl feather", "pegasus feather", "phoenix feather", "rat hair", "rat tail", "serpent skin", "serpent tail", "spider's silk", "spiderweb", "stardust", "troll hearstring", "troll skin", "troll whisker", "turtle shell", "unicorn hair", "unicorn horn", "unicorn tail hair", "vampire fang", "volcanic ash", "werewolf hair", "werewolf tail hair", "werewolf whisker", "wolf hair", "wolf heartstring", "wolf whisker"];
|
|
var nm6 = ["aids the learning process of magic spells", "aids with casting spells at greater speeds", "aids with the process of conjuring", "can increase the power of spells immensely, but it requires a strong bond with it's owner", "enhances defensive magic spells", "enhances destructive magic spells", "enhances either dark or light spells based on the owner's heart and refuses to cast the other", "enhances healing spells", "enhances mischievous magic spells, but can be mischievous itself", "enhances natural magic spells", "enhances the inherent magic of the wand's wood", "enhances the owner's adaptability in combat", "enhances the owner's courage, especially in dire situations", "enhances the owner's intelligence", "enhances the owner's intuition and instincts", "enhances the owner's strongest characteristic", "enhances the power of dark spells", "enhances the power of invisibility spells", "enhances the power of light spells", "enhances the power of spells, but refuses to aid with destructive spells", "enhances the power of transmutation spells", "enhances whichever aspect its owner needs the most at a specific time", "greatly aids in the process of learning non-verbal versions of many spells", "greatly enhances the owner's senses during duels and battle", "greatly increases magic transmission", "greatly increases the power of spells, but tends to slow the casting speed", "has the ability to calm its owner in dire situations", "helps mitigate the owner's biggest weakness", "increases the bond between owner and wand", "increases the strength of summoning spells", "lacks power in many aspects, except when protection is involved in some way", "only slightly enhances spellpower", "provides a decent all round boost to the owner's abilities", "slightly increases magic transmission", "strengthens the wand and protects against magical damage", "tends to add explosiveness in various forms to spells"];
|
|
var nm7 = ["enhance", "control", "boost", "constrain", "regulate", "augment", "magnify", "amplify"];
|
|
var nm8 = ["9 inches/23 cm", "10 inches/25 cm", "11 inches/28 cm", "12 inches/30 cm", "13 inches/33 cm", "14 inches/36 cm", "15 inches/38 cm"];
|
|
var nm9 = ["has an overall ordinary look", "has intricate carvings on its handle", "has intricate carvings all over", "has a fairly plain look", "has a well crafted look", "has a classy look", "has a gilded handle", "was clearly made by a professional", "has a beautifully crafted look", "has an antique look", "has an elegant look to it", "has a refined look to it", "has a luxurious look to it"];
|
|
var nm10 = ["very common", "quite common", "common", "quite ordinary", "not very common", "quite rare", "very rare", "incredibily rare"];
|
|
var nm11 = ["does add to the overall cost of the wand", "increases the production cost of the wand", "means the wand won't be one of the cheaper types", "increases the price of the wand"];
|
|
var nm12 = ["pricey wand", "wand priced in the high-ranges", "wand exclusively for the rich or fortunate", "fancy wand for an extravagant price", "very valuable wand"];
|
|
var nm12a = " and "
|
|
var nm12b = " as well, "
|
|
var rnd1a = parseInt(Math.floor(Math.random() * nm1.length));
|
|
var rnd1b = parseInt(Math.floor(Math.random() * nm1.length));
|
|
while (rnd1a === rnd1b) {
|
|
rnd1b = parseInt(Math.floor(Math.random() * nm1.length));
|
|
}
|
|
var rnd2a = parseInt(Math.floor(Math.random() * nm2.length));
|
|
var rnd2b = parseInt(Math.floor(Math.random() * nm2.length));
|
|
while (rnd2a === rnd2b) {
|
|
rnd2b = parseInt(Math.floor(Math.random() * nm2.length));
|
|
}
|
|
var rnd3 = parseInt(Math.floor(Math.random() * nm3.length));
|
|
var rnd4 = parseInt(Math.floor(Math.random() * nm4.length));
|
|
var rnd6 = parseInt(Math.floor(Math.random() * nm6.length));
|
|
var rnd7 = parseInt(Math.floor(Math.random() * nm7.length));
|
|
if (rnd4 === 0) {
|
|
rnd5 = parseInt(Math.floor(Math.random() * nm5.length));
|
|
name2b = "A core of " + nm5[rnd5] + " which " + nm6[rnd6] + ".";
|
|
} else if (rnd4 === 1) {
|
|
rnd5 = parseInt(Math.floor(Math.random() * nm5.length));
|
|
rnd5b = parseInt(Math.floor(Math.random() * nm5.length));
|
|
name2b = "A core of " + nm5[rnd5] + " which " + nm6[rnd6] + " and " + nm5[rnd5b] + " is added to " + nm7[rnd7] + " the power of the " + nm5[rnd5] + " core.";
|
|
} else {
|
|
rnd5 = parseInt(Math.floor(Math.random() * nm5.length));
|
|
rnd5b = parseInt(Math.floor(Math.random() * nm5.length));
|
|
rnd5c = parseInt(Math.floor(Math.random() * nm5.length));
|
|
rnd6b = parseInt(Math.floor(Math.random() * nm6.length));
|
|
name2b = "A core of " + nm5[rnd5] + " which " + nm6[rnd6] + " and " + nm5[rnd5b] + " is added to " + nm7[rnd7] + " the power of the " + nm5[rnd5] + " core. Finally, a core of " + nm5[rnd5c] + " is added in small amounts to " + nm6[rnd6b] + ".";
|
|
}
|
|
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));
|
|
if (rnd10 < 4) {
|
|
nm11 = ["reduces the overall cost a fair bit", "lowers the price of the wand", "means the price of the wand won't be too high", "helps reduce the production cost of the wand"];
|
|
}
|
|
var rnd10a = parseInt(Math.floor(Math.random() * nm10.length));
|
|
if (rnd10a < 4) {
|
|
if (rnd10 < 4) {
|
|
nm12a = " and ";
|
|
nm12 = ["very cheap wand", "wand priced in the lower range", "wand available to all", "cheap, but reliable type of wand", "fairly cheap wand"];
|
|
nm12b = " as well, "
|
|
} else {
|
|
nm12a = ", however ";
|
|
nm12 = ["wand priced in the mid-ranges", "great wand for a decent price", "perfect wand for a soft price", "reasonably inexpensive wand"];
|
|
nm12b = ", ";
|
|
}
|
|
} else {
|
|
if (rnd10 < 4) {
|
|
nm12a = ", however, ";
|
|
nm12 = ["wand priced in the mid-ranges", "great wand for a decent price", "perfect wand for a soft price", "reasonably inexpensive wand"];
|
|
nm12b = ", ";
|
|
}
|
|
}
|
|
var rnd11 = parseInt(Math.floor(Math.random() * nm11.length));
|
|
var rnd12 = parseInt(Math.floor(Math.random() * nm12.length));
|
|
var name = "This wand is made out of " + nm1[rnd1a] + ", which " + nm2[rnd2a] + ". The handle is made out of " + nm1[rnd1b] + ", which in turn " + nm2[rnd2b] + ". However, the combination of this strand of " + nm1[rnd1a] + " and " + nm1[rnd1b] + " means the wand will seek out somebody " + nm3[rnd3] + ".";
|
|
var name2 = "A wand usually has 1 or 2 cores, but some have 3, this wand has " + nm4[rnd4] + ". " + name2b;
|
|
var name3 = "The wand measures " + nm8[rnd8] + " and " + nm9[rnd9] + ". The particular strand of " + nm1[rnd1a] + " used in this wand is " + nm10[rnd10] + ", which " + nm11[rnd11] + nm12a + nm5[rnd5] + " is " + nm10[rnd10a] + nm12b + " resulting in a " + nm12[rnd12] + ".";
|
|
var br = [];
|
|
for (i = 0; i < 4; 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(br[1]);
|
|
element.appendChild(document.createTextNode(name2));
|
|
element.appendChild(br[2]);
|
|
element.appendChild(br[3]);
|
|
element.appendChild(document.createTextNode(name3));
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|