May 28, 2004
Unfay! Unfay!(or in the vulgar, “Fun! Fun!”)
So I now write a bit of code. It is very fun and I’ll probably write some more random fairy tales. In fact I have one more to post. It is really fun to make them and rather fun to read them. Tomorrow is going to be a busy day… I might make a really long and detailed random story generator that would be able to make actual book stories for the Taldan series. But that would probably be a lot of work but it is very fun making these random stories. So here is this one and don’t forget to press the refresh button once you are done reading it.
pickOne = function(listOfThings){
randomNumber = Math.floor(Math.random()*listOfThings.length)
return listOfThings[randomNumber]
}
mainTypeCharacters = new Array(”a prince”, “a knight”, “a stable boy”, “a duke”, “a captain”)
mainTypeCharacter = pickOne(mainTypeCharacters)
MainNames = new Array(”Richard”, “Ronald”, “Henry”, “Aragorn”, “Raltz”, “Daniel”, “John”, “Andrew”)
MainName = pickOne(MainNames)
MainCharacteristics = new Array(”young”, “adventurous”, “handsome”, “fearless”)
MainCharacteristic = pickOne(MainCharacteristics)
MainSkills = new Array(”fencing”, “military strategy”, “hunting”, “ancient lore”, “swallowing giant pickles”)
MainSkill = pickOne(MainSkills)
SecondSkills = new Array(”eating”, “riding”, “singing”, “fighting”)
SecondSkill = pickOne(SecondSkills)
AdjForItems = new Array(”powerful”, “deadly”, “beautiful”, “enchanted”)
AdjForItem = pickOne(AdjForItems)
MainItems = new Array(”banana”, “porcelain cat”, “sword”, “tome”, “golden bell”, “diamond necklace”, “emerald dragon”)
MainItem = pickOne(MainItems)
MainEnds = new Array(”DOOM”, “Delmer”, “Power”, “Terror”, “Terild”, “Anciant Lore”)
MainEnd = pickOne(MainEnds)
MainDescofComps = new Array(”faithful”, “trusted”, “handsome”, “cowardly”, “hungry”, “adventure seeking”)
MainDescOfComp = pickOne(MainDescofComps)
MainComps = new Array(”friend”, “brother”, “horse”, “talking dog”, “pet dragon”, “companion in adventure”)
MainComp = pickOne(MainComps)
CompNames = new Array(”Ralph”, “Waldo”, “Christopher”, “Mark”, “Eric”, “Narcus”, “Ceasur”, “Yulf”)
CompName = pickOne(CompNames)
Travels = new Array(”through valleys”, “over mountians”, “across streams”, “over fields”, “under stars”)
Travel = pickOne(Travels)
Travel2 = pickOne(Travels)
finds = new Array(”nothing”, “a castle”, “a river”, “the sea”, “a well”, “a dragon’s skeleton”)
Find = pickOne(finds)
Feelings = new Array(”Discouraged”, “Encouraged”, “Weary”, “Hungry”, “Tired”, “Hopeful”)
Feeling = pickOne(Feelings)
Places = new Array(”castle”, “cave”, “place”, “oasis”)
Place = pickOne(Places)
hidden = new Array(”hidden”, “placed”, “concealed”, “stored”, “guarded”)
hide = pickOne(hidden)
desc = new Array(”fierce”, “smelly”, “green”, “ugly”)
des = pickOne(desc)
things = new Array(”dragon”, “knight”, “troll”, “creature”)
thing = pickOne(things)
greetings = new Array(”growled”, “attacked”, “screamed”, “ate garlic”, “crunched bones”)
greeting = pickOne(greetings)
actions = new Array(”struck”, “yelled insults at”, “dodged”, “ran away from”, “charged past”)
action = pickOne(actions)
creatures = new Array(”monsters”, “dragons”, “wolves”, “Great Green Globs of Goo”)
cre = pickOne(creatures)
mission = new Array(”quest”, “journey”, “mission”, “seeking”)
mis = pickOne(mission)
Once upon a time there lived document.write(mainTypeCharacter) named document.write(MainName). document.write(MainName) was document.write(MainCharacteristic) and he was highly skilled in document.write(MainSkill) and document.write(SecondSkill) . One day heard of the document.write(AdjForItem) document.write(MainItem) of document.write(MainEnd) and decided to seek it for himself. He set out with his document.write(MainDescOfComp) document.write(MainComp) named document.write(CompName) to find the document.write(AdjForItem) document.write(MainItem) of document.write(MainEnd).
After traveling document.write(Travel) and document.write(Travel2) they found document.write(Find). document.write(Feeling), they went on, until they reached the document.write(Place) where the document.write(AdjForItem) document.write(MainItem) of document.write(MainEnd) was document.write(hide). It was guarded by a document.write(des) document.write(thing) who
document.write(greeting) as they approached.
The travelers attacked and document.write(MainName) document.write(action) the document.write(thing). Then the battle began in earnest and several document.write(cre)
joined the document.write(thing) and document.write(MainName) and document.write(CompName) were hard pressed.
In the end they won their way through to the document.write(AdjForItem) document.write(MainItem) of document.write(MainEnd) and took it. They then returned to their home with the obeject of their document.write(mis) and lived happily ever after.