KJA plot generator
Posted: 17 Sep 2009 20:10
Modified from Maddox's Tom Clancy plot generator. It's code, so hopefully someone knows what to do with it all. I'm no programmer Hope it works!
Also, feel free to change the nouns if you feel they could be replaced for more comedic value.
Also, feel free to change the nouns if you feel they could be replaced for more comedic value.
Code: Select all
<P>
<FONT COLOR=#FFFFFF><U>Kevin J. Anderson Plot Generator:</U></FONT>
<P>
<FORM NAME=KJA>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=2>
<TR>
<TD CLASS=h3>
Bad guys:
</TD>
<TD CLASS=h3>
Diabolical scheme:
</TD>
<TD CLASS=h3>
Third party:
</TD>
</TR>
<TR>
<TD CLASS=h3>
<SELECT NAME=badguys onchange=results(1)>
<Option VALUE="blank" selected>Select one:
<Option VALUE="Tleilaxu">Tleilaxu
<Option VALUE="Independent robots">Independent robots
<Option VALUE="Rogue Imperial officers">Rogue Imperial officers
<Option VALUE="Talifans">Talifans
</SELECT>
</TD>
<TD CLASS=h3>
<SELECT NAME=diabolical onchange=results(1)>
<Option VALUE="blank" selected>Select one:
<Option VALUE="d1">build a ridiculously overblown superweapon
<Option VALUE="d2">take over the galaxy
<Option VALUE="d3">act really, really dark
<Option VALUE="d4">write mean reviews on Amazon
</SELECT>
</TD>
<TD CLASS=h3>
<SELECT NAME=third_party onchange=results(1)>
<Option VALUE="blank" selected>Select one:
<Option VALUE="tp1">corrupt New Republic senators
<Option VALUE="tp2">corrupt Parks and Recreation officials
<Option VALUE="tp3">corrupt Spacing Guild officials
<Option VALUE="tp4">fans of the old books
</SELECT>
</TD>
</TR>
<TR>
<TD CLASS=h3>
Increased stake:
</TD>
<TD CLASS=h3 COLSPAN=2>
Hero:
</TD>
</TR>
<TR>
<TD CLASS=h3>
<SELECT NAME=increased_stake onchange=results(1)>
<Option VALUE="blank" selected>Select one:
<Option VALUE="is1">freighter full of ultraspice
<Option VALUE="is2">some really good hiking trails
<Option VALUE="is3">laregly ignored internet forum
<Option VALUE="is4">string of bestsellers
</SELECT>
</TD>
<TD CLASS=h3 COLSPAN=2>
<SELECT NAME=hero onchange=results(1)>
<Option VALUE="blank" selected>Select one:
<Option VALUE="h1">washed-up forum administrator
<Option VALUE="h2">self-avowed literary genius
<Option VALUE="h3">plucky squad of teen Jedi
<Option VALUE="h4">seemingly inexplicable superbeing from another time/novel
</SELECT>
</TD>
</TR>
<TR>
<TD CLASS=h3 COLSPAN=2>
Conclusion:
</TD>
</TR>
<TR>
<TD CLASS=h3 COLSPAN=3>
<SELECT NAME=conclusion onchange=results(1)>
<Option VALUE="blank" selected>Select one:
<Option VALUE="c1">Another satisfying tale of political intrigue and personal redemption closes, and we all walk away from this book a little wiser.
</SELECT>
</TD>
</TR>
</TABLE>
<P>
Your plot:
<P>
<TEXTAREA NAME=plot COLS=110 ROWS=7 READONLY>[Select one item from each category above to create your plot]</TEXTAREA>
</FORM>
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
// Copyright 2004 by Maddox, used here as a fair-use parody
function results(s_option)
{
with (document.forms["KJA"])
{
//var plot_tot = "";
if (badguys.value != 'blank')
{
plot.value = badguys.value + " devise a scheme to ";
if (diabolical.value != 'blank')
{
if (diabolical.value == 'd1')
plot.value = plot.value + "build a ridiculously overblown superweapon ";
else if (diabolical.value == 'd2')
plot.value = plot.value + "take over the galaxy ";
else if (diabolical.value == 'd3')
plot.value = plot.value + "act really, really dark ";
else if (diabolical.value == 'd4')
plot.value = plot.value + "write mean reviews on Amazon while claiming to be merely ";
if (third_party != 'blank')
{
if (third_party.value == 'tp1')
plot.value = plot.value + "Tleilaxu. The plot twists when the ";
else if (third_party.value == 'tp2')
plot.value = plot.value + "Independent robots. The plot twists when the ";
else if (third_party.value == 'tp3')
plot.value = plot.value + "Rogue Imperial officers. The plot twists when the ";
else if (third_party.value == 'tp4')
plot.value = plot.value + "Talifans. The plot twists when the ";
if (increased_stake != 'blank')
{
if (increased_stake.value == 'is1')
plot.value = plot.value + badguys.value + "hijack a shipment of ultraspice even after their demands are met, unless ";
else if (increased_stake.value == 'is2')
plot.value = plot.value + badguys.value + "threaten to close some really good hiking trails. Hundreds of dictating hours are at stake unless ";
else if (increased_stake.value == 'is3')
plot.value = plot.value + badguys.value + "abandon and mock a largely ignored internet forum, unless ";
else if (increased_stake.value == 'is4')
plot.value = plot.value + badguys.value + "threaten to disrupt an unbroken string of national bestsellers, unless ";
if (hero.value != 'blank')
{
if (hero.value == 'h1')
plot.value = plot.value + "washed-up forum administrator " + badguys.value + " once and for all. ";
else if (hero.value == 'h2')
plot.value = plot.value + "self-avowed literary genius " + badguys.value + " once and for all. ";
else if (hero.value == 'h3')
plot.value = plot.value + "plucky squad of teen Jedi can gain the courage to stop the " + badguys.value + " once and for all. ";
else if (hero.value == 'h4')
plot.value = plot.value + "seemingly inexplicable superbeing from another time/novel appears just in time to save humanity and stop the " + badguys.value + " once and for all. ";
if (conclusion.value != 'blank')
if (conclusion.value == 'c1')
plot.value = plot.value + "The book ends with a mildly comical and/or ironic scene in which the " + badguys.value + " blow up or get sent to another dimension. Another satisfying tale of political intrigue and personal redemption closes, and we all walk away from this book a little wiser.";
} // if (hero.value != 'blank')
} // if (increased_stake != 'blank')
} // if (third_party != 'blank')
} // if (diabolical.value != 'blank')
} // if (badguys.value != 'blank')
} // with (document.forms["KJA"])
} // function results(s_option)
</SCRIPT>
<P>