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.
305 lines
27 KiB
JavaScript
305 lines
27 KiB
JavaScript
var nm1 = ["Alderblade", "Aldercrown", "Beechfang", "Birchbeard", "Cedarbrow", "Elmtalon", "Firsplint", "Hazeltwig", "Madlimb", "Mapleleaf", "Maplescar", "Mapleskin", "Oakenhowl", "Oakenshade", "Oakflesh", "Oakshadow", "Tenderspur", "Thistlebrush", "Treebellow", "Weepingleaf", "Weepingsprout", "Wildblossom", "Willowbrow", "Willowind", "Yewcopse"];
|
|
var nm2 = [
|
|
[
|
|
["a very young", "a nursling"],
|
|
[" of no more than 5 years", " of only a few years in age", " of perhaps 2 or 3 years", ", at most 4 years old", " of only a handful of springs", ", they had seen maybe 3 or 4 springs"]
|
|
],
|
|
[
|
|
["a young", "a juvenile"],
|
|
[", no older than 15 years", ", barely a decade old", " of perhaps a decade and a half in age", " of a dozen or so springs", ", their second decade had only just begun", "; they would soon see the end of their second decade"]
|
|
],
|
|
[
|
|
["a young adult"],
|
|
[", they had seen a few dozen springs", " of about 30 years", ", roughly 40 years of age", " no older than 50 years", " in the range of half a century of age"]
|
|
],
|
|
[
|
|
["an adult", "a developed", "a mature"],
|
|
["; nearly a century had passed since their birth", "; they had been around long enough to see a human life come and go", " well over half a century old", " of about 70 to 80 years old", ", perhaps 60 to 70 years of age", " in the range of a century in age", "; they were fast approaching a century of age"]
|
|
],
|
|
[
|
|
["an old"],
|
|
[" older than even the eldest of humans", " who had seen over 150 springs", "; a century and more had passed since they sprouted from the earth", ", twice the lifetime of any human"]
|
|
],
|
|
[
|
|
["a very old"],
|
|
["; two centuries had come and gone in their lifetime", " of several hundred years of age", ", at least a quarter millennium old", "; all who had known them at birth were long gone, safe for other treants", "; they had forgotten their age long ago, but it was two centuries at least"]
|
|
],
|
|
[
|
|
["an ancient"],
|
|
[" of over a thousand years", "; they no longer remembered their exact age, but it was at least a millennium ", " a millennium or so of age", " of 1100 years at least", " of an age long forgotten", ", though their exact age had stopped to matter long ago"]
|
|
]
|
|
];
|
|
var nm3 = ["barely a meter tall", "just over a meter tall", "no taller than half a meter", "no taller than a human child", "about as tall as a human infant", "about 2 to 3 meters tall", "about two meters tall", "no taller than 3 meters", "at most 2.5 meters tall", "roughly 2.5 meters tall", "no taller than 4 meters", "almost 5 meters tall", "at about 4.5 meters tall", "at 6 meters tall", "nearly 7 meters tall", "at 10 meters tall", "over 10 meters tall", "nearly 15 meters tall", "a good 12 meters tall", "at just over 11 meters tall", "over 15 meters tall", "at nearly 20 meters tall", "at a massive 25 meters tall", "over 30 meters tall", "well over 25 meters tall"];
|
|
var nm4 = [
|
|
[
|
|
["a crown"],
|
|
["of just a few small twigs", "formed by a handful of twigs", "of a single, lonely twig", "formed by two little twigs", "formed by a bundle of twigs"]
|
|
],
|
|
[
|
|
["a thin crown", "a slim crown", "a small crown", "a slender crown"],
|
|
["of a few large branches", "formed by many smaller branches", "of few, but thick branches", "of many, but slender branches", "formed by many arching branches"]
|
|
],
|
|
[
|
|
["a thick crown", "a large crown", "a wide crown", "a rounded crown", "an elongated crown", "a tall crown"],
|
|
["of thick, forking branches", "of long, thick branches", "of countless branches", "formed by many thick branches", "of arching branches"]
|
|
],
|
|
[
|
|
["a grand crown", "a large crown", "a huge crown", "an imposing crown", "a vast crown", "a broad crown"],
|
|
["of huge, forking branches", "of countless arching branches", "formed by powerful branches", "of immense, forking branches", "formed by a massive web of branches", "formed by countless branches"]
|
|
]
|
|
];
|
|
var nm5 = [
|
|
[
|
|
[" covered in plenty of leaves", " still covered in leaves", " with many leaves still remaining", "; leaves still adorned them", "; a few leaves still lingered"],
|
|
["despite the beginning of autumn", "despite winter's grasp on the land", "though autumn would take them soon", "even after the coming of autumn", "despite fall's approach"]
|
|
],
|
|
[
|
|
[" completely devoid of leaves", " emptied of their leaves", " laid bare to the elements", "; not a single leave remained", "; the last of the leaves would soon fall"],
|
|
["as summer had come to an end", "as autumn had taken hold of the land", "thanks to the coming of autumn a few weeks ago", "as the seasons changed to autumn", "now that even winter was fast approaching"]
|
|
],
|
|
[
|
|
[" covered in crimson leaves", " with leaves in reds and yellows", " covered in drying leaves", " leaves of emerald had turned to ruby", " covered in crimson leaves once viridian"],
|
|
["at the hands of autumn", "ready for autumn to take them away", "as summer came to a close", "awaiting their inevitable fall", "to be released when autumn falls"]
|
|
],
|
|
[
|
|
[" covered in lush leaves", " full of delicate leaves", " with many a blossom spreading their fragrance", " adorned in tiny buds and little leaves", " covered in fragrant blossoms"],
|
|
["with the coming of spring", "now that spring had arrived", "freshly regrown in the warmths of spring", "like a gift of spring itself", "as a mark of the coming of spring"]
|
|
]
|
|
];
|
|
var nm6 = [
|
|
[
|
|
["Young as they may be, they already carried the wounds of being trampled by beasts taller than them", "They were fortunate enough to have had a quiet life so far; steady and healthy growth was important to a young treant", "A careless creature had managed to scratch the young treant early in life; a mark would surely linger for years to come", "Whether by chance or care, the young treant had managed to grow without being trampled or twisted", "The treant was fortunate enough to be growing in a safe spot out of reach of bigger beings"],
|
|
["Small creatures already enjoyed the young treant's company, perhaps one day the treant'd be their home", "Critters and insects alike had already enjoyed the treant's company, though to most it was a matter of survival rather than pleasure", "Many creatures had come and gone, often without taking care not to damage the area around the little treant", "The largest of beasts were often all too careless around the youngest of trees", "Even small creatures could do devastating damage, though the littlest critters seemed careful around the treant as if they knew how special the treant was"]
|
|
],
|
|
[
|
|
["A bird couple had once made their nest in one of their branches, but it has since been left as a mere reminder of past friends", "Many a bird had used them for shelter and rest, though little remained of their visits beyond droppings and a few feathers", "A squirrel had sought refuge from a fox once and they had hidden within the treant's crown; claw marks were still visible at the base of their trunk", "A mouse had made a nest beneath their roots one season, though the mouse hadn't returned one day or ever since", "A woodpecker once inspected the treant, but decided against building a home within the treant's trunk"],
|
|
["Other creatures still enjoyed their company, but few would call the treant their home", "The treant enjoyed the company of others, both creatures and plants, though it'd be a long time yet before the treant would be a caretaker for them", "The treant got to meet few creatures, but they considered those they did meet all the more special because of it", "Many creatures enjoyed the company of the treant, and the treant in return tried to learn as much about them as they could", "The treant would often observe all those who passed by, burrowed under or climber on top of them; there was much to learn"]
|
|
],
|
|
[
|
|
["A squirrel had slept in a hollow of a branch one winter, though they had yet to return for another; nuts and seeds still lingered", "A badger had made their burrow below the treant's roots many autumns ago. Although the treant had moved on since, the scars were still visible", "A family of mice had slept in the hollow of a branch during a mild winter", "A young bear had scratched her back using the treant's branch one spring; fortunately they did no damage", "An owl had used the treant as their favorite dining spot for three seasons"],
|
|
["The treant had made sure they stood still to accommodate them at the time", "The treant had let them despite finding it a mild nuisance", "The treant had enjoyed the learning experience despite the discomfort at times", "It was an experience the treant would never forget, or so they told themselves", "The treant had hoped to see them again for they enjoyed the creature's company"]
|
|
],
|
|
[
|
|
["Many a bird couple had made their nest within the treant's branches; some returned each year", "A squirrel had made use of a hollow in the treant's trunk: nuts were stored here every winter", "An owl made use of a hollow in the treant's trunk; it was a small hollow, but a perfect fit for the little bird", "A boar and her young often bathed in the sun and dust around the treant's trunk; they never seemed to disrupt the roots", "A cuckoo had made a home for herself in of the treant's branches. Annoying as her call was, they were welcome to stay"],
|
|
["Countless other critters and creatures had made the treant their home, some in more destructive ways than others", "The treant was happy to be able to provide shade and shelter to a wide range of creatures across the seasons", "Many returning visitors became life long friends, even if some of them were short indeed", "The treant loved all visitors and sought to learn as much about them as possible", "As caretaker of the forest, the treant made sure to accommodate each creature to the best of their abilities"]
|
|
]
|
|
];
|
|
var nm7 = [
|
|
[
|
|
["still thin trunk", "small and frail trunk", "fragile trunk", "little trunk", "delicate trunk"],
|
|
[" was not suited to be a home to creatures just yet", " was not suited for anything bigger than an insect", " might one day be home to many, but that day was a long way yet", " could at most make home for a small spider", " was suited only as a resting point for the smallest of creatures"],
|
|
[" and there were no nuts or fruits to share just yet", " and they could offer neither shade nor sustenance for now", ", but the young treant didn't mind", "; the young treant looked forward to be a home for many", " and it would be many years before the treant could provide shade on a hot day"]
|
|
],
|
|
[
|
|
["developing trunk", "growing trunk", "meager trunk", "budding trunk", "expanding trunk"],
|
|
[", strong as it may be, was home only to insects for now", " was home to many creatures, though tiny they may be", " had already been home to colonies of insects and bugs", " housed creatures tiny and small", " was home to a variety of insects and critters"],
|
|
["; growing fruits would soon bring many more", "; they in turn attracted bigger critters and birds", "; each sought to possess the treant for themselves", "; it wasn't always a pleasant sight, but that was nature", "; the treant learned from them all the same"]
|
|
],
|
|
[
|
|
["thick trunk", "strong trunk", "dense trunk", "broad trunk", "tall trunk"],
|
|
[" would soon be home to many a creature with the changing of seasons", " was home and refuge to many critters alike", " became a home to bigger and bigger creatures", " provided shade and shelter to a variety of creatures", " was enjoyed as protection by many creatures"],
|
|
["; the fruits made a great bonus", " though they cared little for the treant beyond that", "; the nuts didn't go unappreciated either", ", but many would move on once they had eaten all the fruits", "; perhaps some would become the treant's friends"]
|
|
],
|
|
[
|
|
["massive trunk", "powerful trunk", "enormous trunk", "impressive trunk", "mighty trunk"],
|
|
[" housed countless creatures big and small", " was home to many a family of critters", " had become the home of many creatures big and small", " offered shade, shelter and sustenance to many creatures", " was home to countless creatures of all sizes"],
|
|
[" who enjoyed the treant's company like that of a friend", ", though the treant's wisdom fell on deaf ears", ", many of whom had known the treant for years", " who returned year after year after year", " who returned each season like clockwork"]
|
|
]
|
|
];
|
|
var nm8 = [
|
|
[
|
|
["Two eyes were all the treant had for now", "Their face was no more than eyes coming into being", "A mouth and eyes had barely developed within the bark", "Tiny eyes had started to develop not too long ago and were only just visible", "A seemingly smiling mouth was all the treant had for a face for now"],
|
|
["yet moss already clung to them", "though a patch of moss almost resembled a fuzzy nose", "; it was easy to mistake the treant for a regular tree", "; in treants everything grows slow", ", fortunately life around them could be experienced even without a fully developed face", "; communication was for later in the life of a treant"]
|
|
],
|
|
[
|
|
["A face had grown into the trunk", "Their face had become visible", "A wrinkled face grew inside the trunk", "A knotted face was visible in the wrinkled bark", "A clear face of bark and wood was visible"],
|
|
["; their features were easy to miss", "; it seemed to smile", "; it seemed to be alive", "; it seemed asleep", "; moss covered part of it like fuzzy facial hair", "; a vine had grown across what could be its cheek"]
|
|
],
|
|
[
|
|
["A face was clearly visible", "A wrinkled, knotty face smiled", "There was a knotty visage within the bark", "A rumpled face had emerged from the bark", "A furrowed visage was visible", "A gnarled face looked from just below the crown", "A knotted face was almost hidden within the bark"],
|
|
["; it looked almost carved into the treant's wood itself", "; it seemed to stare at nothing in particular", "; it observed all that was around", "; moss had covered great parts of it as if representing hair", "; a little twig had sprouted out of its nose", "; moss clung to the bottom like a beard to a chin"]
|
|
]
|
|
];
|
|
var nm9 = [
|
|
[
|
|
["Their arms were slim", "Delicate arms had grown already", "Long, thin arms had grown", "Their thin arms grew fast", "Twiggy arms had grown"],
|
|
["and dangled like that of a human teenager", "and rested beside their trunk like branches of a willow", ", though they mostly just swayed in the wind", "and swayed gently in the wind", "and dangled like supple vines"],
|
|
["Their strength had yet to grow and ", "They weren't the strongest by any measure; ", "They were too weak to lift; ", "They were no more than glorified twigs; ", "They longed for the day they'd grow in strength; "],
|
|
["it'd be a while before they could be used for anything", "supporting insects would be all they'd do for now", "they were at the wind's mercy for now", "little insects tickled at times and swatting wasn't an option", "self-defense would come in handy every now and then"]
|
|
],
|
|
[
|
|
["Thick, long arms rested beside their trunk", "Long arms wrapped around their trunk", "Robust arms hung beside their body", "Thick arms swayed gently in the wind", "Steady arms stretched outward"],
|
|
["and were covered in leaves and vines", "and ended in vine-like tendrils", "and moved occasionally without purpose", "and shifted position every now and then", "and shooed the occasional intrusive animal away"],
|
|
["They had grown in strength too; ", "Their strength started to develop more and more; ", "They possessed a good amount of strength; ", "Their power was still blossoming, but significant nonetheless; ", "Though not the mightiest of treants, they possessed a good deal of strength; "],
|
|
["capable of lifting small rocks and fallen branches", "small boulders became less and less of a problem to move and lift", "picking up animals for a closer view had become a new hobby", "they didn't use their strength for anything in particular", "capable of lifting small boulders, though this was nothing yet"]
|
|
],
|
|
[
|
|
["Their arms, powerful yet agile, were", "Strong, long arms hung by their side and were", "Massive, wrinkly arms rested despite hanging in the air and were", "Huge arms of intertwined branches rested along the trunk; they were", "Their branches, thick and stretched outward, were"],
|
|
["capable of lifting boulders as big as a boar", "able to squash creatures should they want it", "able to lift all types of forest creatures should the need arise", "moving about with a surprising grace", "capable of moving with incredible speed"],
|
|
["Their strength was terrifying, ", "Their strength was unlike that of most creatures, ", "Any enemy would best think twice about fighting this treant, ", "They'd make a great protector of the forest against all that wished it harm, ", "It'd take a great deal of strength to harm them, "],
|
|
["fortunately life was peaceful in this part of the world", "though use of force was never needed", "conflict hadn't reached this part of the forest yet", "fortunately it had never come to a conflict for this treant", "but it'd be a long time yet before their strength would be tested"]
|
|
],
|
|
[
|
|
["Hulking arms of dense wood", "Their arms were incredibly thick and", "Twisting arms of vines and branches", "Creaking arms of the densest wood", "Lumbering arms hung beside their trunk and"],
|
|
["had grown to be slower, but all the more powerful", "were capable of throwing boulders", "could crush any creature if they willed it", "moved with calculated precision", "could move incredibly fast if needed"],
|
|
["Their strength was immeasurable; ", "Raw strength was part of their every fibre; ", "An ancient strength ran through them; ", "Their strength knew no bounds; ", "Their strength was perhaps their most surprising asset; "],
|
|
["conflicts had been squashed quickly and smoothly in the past", "scars of past conflicts were minor compared to what they had inflicted upon the enemy", "any confrontations ended quickly and often abruptly", "fortunately this treant had managed to avoid all the conflicts of the past and has never used their full strength because of it", "their full potential had yet to be used, fortunately"]
|
|
]
|
|
];
|
|
var nm10 = [
|
|
[
|
|
["Legs were yet to develop", "Legs hadn't developed yet", "There was no hint of leg growth", "Little bumps hinted at future legs", "The beginning of legs had become visible"],
|
|
["; for now the little treant stayed put", "; they won't grow until at least another decade", "; it'd be a long time yet before they'd be strong enough to walk", "; moving around was but a dream for the little treant", "; growth would kick in first, then strength after"]
|
|
],
|
|
[
|
|
["Short legs had grown in well beneath the treant", "Stumpy legs of gnarled wood grew slow and steady", "Intertwined legs of twisted wood lifted the treant from the ground", "Short, thick legs were capable of carrying the treant", "Surprisingly long legs grew beneath the treant"],
|
|
["though they used them few and far between", "and could carry them a fair distance each day", "though they had yet to test their limits", "and shook the ground with each step", "and left distinct marks in the ground with each step they took"]
|
|
],
|
|
[
|
|
["Legs had grown strong and thick", "Two thick legs were capable of lifting the treant", "Twisted, gnarly legs grew thick and strong among the roots", "Long and agile legs grow stronger by the day", "Thick, trunk-like legs grow broader by the day"],
|
|
[", strong enough to carry the treant wherever it wished", ", though they were hard to see among the other roots", ", but the treant had yet to use them for journeys longer than a short stroll", " and shook the ground heavily with each step", ", they carried the treant great lengths across the vast forest lands"]
|
|
]
|
|
];
|
|
var nm11 = ["The little treant slept most of the time", "Much of the time the treant spent observing their surroundings", "Sleep and observation were the treant's main pastimes", "The little treant enjoyed watching creatures come and go", "Most of the time the treant slept and grew little by little", "Today the treant stood still", "The treant remained in place for now", "They had chosen to grow steadily", "Today the treant remained motionless", "Today the treant slept", "Today the treant was on the march", "The treant was on the move", "Today the treant was on a journey", "Adventure had called and the treant was moving", "Awaken from their slumber, the treant was on the move"];
|
|
var nm12 = [", though dreamt of exploring while doing so", ", but longed for leaving their spot when time allowed it", ", but they longed for the day of lifelong friends among creatures of all types", ", though a sense of travel already rung loudly in their mind", ", but dreams of seeing the world were ever present", " in a sunny spot", " in fertile grounds full of sunshine", " in a spot perfect for their growth", " in a cozy spot of warm air and moist soils", " in a cozy spot not overly crowded", " in a spot that grew more crowded by the day.", " though they slowly grew too big for their spot.", " in a spot that grew less ideal by the day.", " though overgrowth had ruined what was once a perfect spot.", " though it no longer suited their now bigger size.", " in search of a good spot", " to find a new home", " to discover a new place to call home", " in pursuit of a new ideal spot", " to get to know more of the world and find a new home", " purely for the enjoyment of it", " to discover new lands", " to explore and experience the world", " in search of new sights to see", " to explore with a new sense of wonder"];
|
|
var nm13 = [" and eagerly took up as much of it as they could", " they had part in creating", " that had served them well for a long time so far", " that allowed for quick and healthy growth", " they had made their home for the ages", " Soon they'd be on the march for more space", " They'd have no choice but to move or make space soon", " They may have to resort to making space if nothing improves", " Changed would need to be made or perhaps a new spot would suit them better", " It was a matter of little time before they'd have to change their spot", " in which they could grow further", " with new friends to meet", " and new experiences to learn from", " to further their growth and development", " to enrich and be enriched by", " and meet new friends who might last for a lifetime", "; who knows what awaits them around the next corner", " and perhaps find a new home for a while", "; there was so much yet to be experienced", "; even to ancient treants the world was too big to explore in a single lifetime"];
|
|
var nm14 = [""];
|
|
var nm15 = [];
|
|
var nm16 = [];
|
|
var nm17 = [];
|
|
var nm18 = [];
|
|
var nm19 = [];
|
|
var nm20 = [];
|
|
|
|
function nameGen() {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
rnd2 = Math.random() * nm2.length | 0;
|
|
rnd3 = Math.random() * nm2[rnd2][0].length | 0;
|
|
rnd4 = Math.random() * nm2[rnd2][1].length | 0;
|
|
rnd5 = Math.random() * 5 | 0;
|
|
rnd6 = 0
|
|
rnd12 = 0;
|
|
rnd15 = 0;
|
|
rnd18 = 0;
|
|
rnd21 = 0;
|
|
rnd26 = 0;
|
|
rnd31 = Math.random() * nm11.length | 0;
|
|
rnd29 = Math.random() * nm12.length | 0;
|
|
rnd30 = Math.random() * 5 | 0;
|
|
if (rnd2 === 0) {
|
|
while (rnd28 > 4) {
|
|
rnd28 = Math.random() * nm11.length | 0;
|
|
}
|
|
} else if (rnd2 === 1) {
|
|
rnd5 += 5;
|
|
rnd6 = 1;
|
|
rnd12 = 1;
|
|
rnd15 = 1;
|
|
rnd18 = 1;
|
|
rnd21 = 1;
|
|
rnd26 = 1;
|
|
} else if (rnd2 === 2) {
|
|
rnd5 += 10;
|
|
rnd6 = 1;
|
|
rnd12 = 1;
|
|
rnd15 = 1;
|
|
rnd18 = 1;
|
|
rnd21 = 1;
|
|
rnd26 = 1;
|
|
} else if (rnd2 === 3) {
|
|
rnd5 += 15;
|
|
rnd6 = 2;
|
|
rnd12 = 2;
|
|
rnd15 = 2;
|
|
rnd18 = 1;
|
|
rnd21 = 2;
|
|
rnd26 = 1;
|
|
} else if (rnd2 === 4) {
|
|
rnd5 += 20;
|
|
rnd6 = 2;
|
|
rnd12 = 2;
|
|
rnd15 = 2;
|
|
rnd18 = 2;
|
|
rnd21 = 2;
|
|
rnd26 = 2;
|
|
} else if (rnd2 === 5) {
|
|
rnd5 += 20;
|
|
rnd6 = 3;
|
|
rnd12 = 3;
|
|
rnd15 = 3;
|
|
rnd18 = 2;
|
|
rnd21 = 3;
|
|
rnd26 = 2;
|
|
} else {
|
|
rnd5 += 20;
|
|
rnd6 = 3;
|
|
rnd12 = 3;
|
|
rnd15 = 3;
|
|
rnd18 = 2;
|
|
rnd21 = 3;
|
|
rnd26 = 2;
|
|
}
|
|
rnd7 = Math.random() * nm4[rnd6][0].length | 0;
|
|
rnd8 = Math.random() * nm4[rnd6][1].length | 0;
|
|
rnd9 = Math.random() * nm5.length | 0;
|
|
rnd10 = Math.random() * nm5[rnd9][0].length | 0;
|
|
rnd11 = Math.random() * nm5[rnd9][1].length | 0;
|
|
rnd13 = Math.random() * nm6[rnd12][0].length | 0;
|
|
rnd14 = Math.random() * nm6[rnd12][1].length | 0;
|
|
rnd16b = Math.random() * nm7[rnd15][0].length | 0;
|
|
rnd16 = Math.random() * nm7[rnd15][1].length | 0;
|
|
rnd17 = Math.random() * nm7[rnd15][2].length | 0;
|
|
rnd19 = Math.random() * nm8[rnd18][0].length | 0;
|
|
rnd20 = Math.random() * nm8[rnd18][1].length | 0;
|
|
rnd22 = Math.random() * nm9[rnd21][0].length | 0;
|
|
rnd23 = Math.random() * nm9[rnd21][1].length | 0;
|
|
rnd24 = Math.random() * nm9[rnd21][2].length | 0;
|
|
rnd25 = Math.random() * nm9[rnd21][3].length | 0;
|
|
rnd27 = Math.random() * nm10[rnd26][0].length | 0;
|
|
rnd28 = Math.random() * nm10[rnd26][1].length | 0;
|
|
if (rnd31 < 5) {
|
|
while (rnd29 > 4) {
|
|
rnd29 = Math.random() * nm12.length | 0;
|
|
}
|
|
} else if (rnd31 < 10) {
|
|
while (rnd29 < 5 || rnd29 > 14) {
|
|
rnd29 = Math.random() * nm12.length | 0;
|
|
}
|
|
} else {
|
|
while (rnd29 < 15) {
|
|
rnd29 = Math.random() * nm12.length | 0;
|
|
}
|
|
}
|
|
if (rnd29 < 15 && rnd29 > 9) {
|
|
rnd30 += 5;
|
|
} else if (rnd29 < 20) {
|
|
rnd30 += 10;
|
|
} else {
|
|
rnd30 += 15;
|
|
}
|
|
var br = document.createElement('br');
|
|
var br2 = document.createElement('br');
|
|
var br3 = document.createElement('br');
|
|
var br4 = document.createElement('br');
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
names = nm1[rnd] + " was " + nm2[rnd2][0][rnd3] + " treant" + nm2[rnd2][1][rnd4] + ". They stood " + nm3[rnd5] + " and had " + nm4[rnd6][0][rnd7] + " " + nm4[rnd6][1][rnd8] + nm5[rnd9][0][rnd10] + " " + nm5[rnd9][1][rnd11] + ". " + nm6[rnd12][0][rnd13] + ". " + nm6[rnd12][1][rnd14] + ". Their " + nm7[rnd15][0][rnd16b] + nm7[rnd15][1][rnd16] + nm7[rnd15][2][rnd17] + ".";
|
|
names2 = nm8[rnd18][0][rnd19] + nm8[rnd18][1][rnd20] + ". " + nm9[rnd21][0][rnd22] + " " + nm9[rnd21][1][rnd23] + ". " + nm9[rnd21][2][rnd24] + nm9[rnd21][3][rnd25] + ". " + nm10[rnd26][0][rnd27] + nm10[rnd26][1][rnd28] + "."
|
|
if (rnd31 < 5) {
|
|
names3 = nm11[rnd31] + nm12[rnd29] + ".";
|
|
} else {
|
|
names3 = nm11[rnd31] + nm12[rnd29] + nm13[rnd30] + ".";
|
|
}
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
element.appendChild(document.createTextNode(names));
|
|
element.appendChild(br);
|
|
element.appendChild(br2);
|
|
element.appendChild(document.createTextNode(names2));
|
|
element.appendChild(br3);
|
|
element.appendChild(br4);
|
|
element.appendChild(document.createTextNode(names3));
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|