var theButton = document.getElementById("anothergame");
theButton.onclick = anothergame;
var tNoun = ["Quest for", "Tale of", "Saga of", "Dream of", "Story of", "Nightmare of", "Adventures for"];
var tGoal = ["Good","Evil","Loot", "Glory", "Conquest", "Self-improvement"];
var tAdj = ["", "Forgotten", "Illusionary", "Amazing", "Epic", "Glorious", "Greatest", "Perilous", "Final", "Foolish", "Longest", "Mysterious", "Rediculous", "Fantastic", "Terrible","Endless"];
var tChar = ["King","Mage","Paladin","Bard","Ninja","Samurai"];
var tCharS = tChar.slice();
var tCharAdj = ["","Mighty","Noble"];
var tMap = [];
tMap.tNoun = tNoun;
tMap.tGoal = tGoal;
tMap.tAdj = tAdj;
tMap.tChar = tChar;
tMap.tCharS = tCharS;
tMap.tCharAdj = tCharAdj;
var gType = ["action adventure", "FPS", "RPG", "RTS", "TBS", "TCG", "rhythm game","flight-sim", "puzzle", "tower defence", "dating simuator"];
var gAdj = ["","economic","philosophical", "sandbox", "roguelite", "fast-paced","minimalistic","emergent"];
var pChar = ["a mercenary", "an adventurer","a peasant", "a former soldier", "a vampire", "a felon","a japanese schoolgirl", "a mentally handicapped person", "an ordinary office worker", "a scientist", "a detective", "a caveman", "a tribesman", "a pirate"];
var pMotive = ["has new employer, which","to complete his revenge","to save his village","seeks fame and therefore","has to pass a trial, and","has to survive in the apocaliptic event, and","in search of hedonistic pleasures","to return to his home world", "to lift the curse","in pursuit of greater good","without any clear motivation","out of shear madness","to solve the mystery","to restory his memory"];
var pGoal = ["retrieve an ancient artifact","visit some far away location","defeat N rats in a cellar","obtain N items of stale dog feces", "defeat an invincible villain", "solve a puzzle", "build an economic empire", "write a book", "prove that P=NP", "wander aimlessly"];
for(i=0; i < tCharS.length; i++) {
tCharS[i] = tCharS[i] +...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.