PDA

View Full Version : D&D 3.x Other Nyu Nyu's Monster Table Generator is Down



Altrunchen
2020-03-02, 05:29 PM
Long ago there was a post on this very forum about a monster table generator that was free to use, I used it many times myself. (Original post: https://forums.giantitp.com/showthread.php?69538-d20-Class-Table-Generator)

But now if you follow the link given in the post, it takes you to a dead page: http://pifro.com/dnd/NEW/nyu.php

Does anyone know of any free alternatives to this old, but very helpful website?

Altrunchen
2020-03-04, 08:35 PM
I used WayBackMachine and found the page code to both the class table generator and to the monster table generator. Does anyone here know web-fu? Maybe we can salvage these somehow?


<html><head><script src="//archive.org/includes/analytics.js?v=cf34f82" type="text/javascript"></script>
<script type="text/javascript">window.addEventListener('DOMContentLoaded',functio n(){var v=archive_analytics.values;v.service='wb';v.server _name='wwwb-app31.us.archive.org';v.server_ms=266;archive_anal ytics.send_pageview({});});</script><script type="text/javascript" src="/_static/js/ait-client-rewrite.js" charset="utf-8"></script>
<script type="text/javascript">
WB_wombat_Init("https://web.archive.org/web/", "20190111040534", "pifro.com:80");
</script>
<script type="text/javascript" src="/_static/js/wbhack.js" charset="utf-8"></script>
<script type="text/javascript">
__wbhack.init('https://web.archive.org/web');
</script>
<link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css" />
<link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css" />
<!-- End Wayback Rewrite JS Include -->
<title>Monster Table Generator — Nyu? Nyu &gt;^.~&lt;</title>
<meta name="description" content="A dynamic generator that produces d20 monster tables.">
<meta name="keywords" content="d20,dungeons,dragons,dnd,d&amp;d,dungeons and dragons,d20 modern,gaming,games,tabletop,dice,monster">
<link rel="stylesheet" type="text/css" href="/web/20190111040534cs_/http://pifro.com/dnd/NEW/e/ctg.css">
&lt;<script src="/web/20190111040534js_/http://pifro.com/dnd/NEW/mon.js"></script></head>
<body><!-- BEGIN WAYBACK TOOLBAR INSERT -->
<script type="text/javascript" src="/_static/js/timestamp.js" charset="utf-8"></script>
<script type="text/javascript" src="/_static/js/graph-calc.js" charset="utf-8"></script>
<script type="text/javascript" src="/_static/js/auto-complete.js" charset="utf-8"></script>
<script type="text/javascript" src="/_static/js/toolbar.js" charset="utf-8"></script>
<style type="text/css">
body {
margin-top:0 !important;
padding-top:0 !important;
/*min-width:800px !important;*/
}
.wb-autocomplete-suggestions {
text-align: left; cursor: default; border: 1px solid #ccc; border-top: 0; background: #fff; box-shadow: -1px 1px 3px rgba(0,0,0,.1);
position: absolute; display: none; z-index: 2147483647; max-height: 254px; overflow: hidden; overflow-y: auto; box-sizing: border-box;
}
.wb-autocomplete-suggestion { position: relative; padding: 0 .6em; line-height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02em; color: #333; }
.wb-autocomplete-suggestion b { font-weight: bold; }
.wb-autocomplete-suggestion.selected { background: #f0f0f0; }
</style>
<div id="wm-ipp-base" lang="en" style="display:none;direction:ltr;">
<div id="wm-ipp" style="position:fixed;left:0;top:0;right:0;">
<div id="wm-ipp-inside">
<div style="position:relative;">
<div id="wm-logo" style="float:left;width:130px;padding-top:10px;">
<a href="/web/" title="Wayback Machine home page"><img src="/_static/images/toolbar/wayback-toolbar-logo.png" alt="Wayback Machine" width="110" height="39" border="0" /></a>
</div>
<div class="r" style="float:right;">
<div id="wm-btns" style="text-align:right;height:25px;">
<div id="wm-save-snapshot-success">success</div>
<div id="wm-save-snapshot-fail">fail</div>
<a href="#"
onclick="__wm.saveSnapshot('http://pifro.com/dnd/NEW/nyu.php', '20190111040534')"
title="Share via My Web Archive"
id="wm-save-snapshot-open"
>
<span class="iconochive-web"></span>
</a>
<a href="https://archive.org/account/login.php"
title="Sign In"
id="wm-sign-in"
>
<span class="iconochive-person"></span>
</a>
<span id="wm-save-snapshot-in-progress" class="iconochive-web"></span>
<a href="http://faq.web.archive.org/" title="Get some help using the Wayback Machine" style="top:-6px;"><span class="iconochive-question" style="color:rgb(87,186,244);font-size:160%;"></span></a>
<a id="wm-tb-close" href="#close" onclick="__wm.h(event);return false;" style="top:-2px;" title="Close the toolbar"><span class="iconochive-remove-circle" style="color:#888888;font-size:240%;"></span></a>
</div>
<div id="wm-share">
<a href="/web/20190111040534/http://web.archive.org/screenshot/http://pifro.com/dnd/NEW/nyu.php"
id="wm-screenshot"
title="screenshot">
<span class="wm-icon-screen-shot"></span>
</a>
<a href="#" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=https://web.archive.org/web/20190111040534/http://pifro.com:80/dnd/NEW/nyu.php', '', 'height=400,width=600'); return false;" title="Share on Facebook" style="margin-right:5px;" target="_blank"><span class="iconochive-facebook" style="color:#3b5998;font-size:160%;"></span></a>
<a href="#" onclick="window.open('https://twitter.com/intent/tweet?text=https://web.archive.org/web/20190111040534/http://pifro.com:80/dnd/NEW/nyu.php&amp;via=internetarchive', '', 'height=400,width=600'); return false;" title="Share on Twitter" style="margin-right:5px;" target="_blank"><span class="iconochive-twitter" style="color:#1dcaff;font-size:160%;"></span></a>
</div>
</div>
<table class="c" style="">
<tbody>
<tr>
<td class="u" colspan="2">
<form target="_top" method="get" action="/web/submit" name="wmtb" id="wmtb"><input type="text" name="url" id="wmtbURL" value="http://pifro.com/dnd/NEW/nyu.php" onfocus="this.focus();this.select();" /><input type="hidden" name="type" value="replay" /><input type="hidden" name="date" value="20190111040534" /><input type="submit" value="Go" /></form>
</td>
<td class="n" rowspan="2" style="width:110px;">
<table>
<tbody>
<!-- NEXT/PREV MONTH NAV AND MONTH INDICATOR -->
<tr class="m">
<td class="b" nowrap="nowrap"><a href="https://web.archive.org/web/20181210122440/http://pifro.com:80/dnd/NEW/nyu.php" title="10 Dec 2018"><strong>Dec</strong></a></td>
<td class="c" id="displayMonthEl" title="You are here: 04:05:34 Jan 11, 2019">JAN</td>
<td class="f" nowrap="nowrap"><a href="https://web.archive.org/web/20190226033832/http://pifro.com:80/dnd/NEW/nyu.php" title="26 Feb 2019"><strong>Feb</strong></a></td>
</tr>
<!-- NEXT/PREV CAPTURE NAV AND DAY OF MONTH INDICATOR -->
<tr class="d">
<td class="b" nowrap="nowrap"><a href="https://web.archive.org/web/20181210122440/http://pifro.com:80/dnd/NEW/nyu.php" title="12:24:40 Dec 10, 2018"><img src="/_static/images/toolbar/wm_tb_prv_on.png" alt="Previous capture" width="14" height="16" border="0" /></a></td>
<td class="c" id="displayDayEl" style="width:34px;font-size:24px;white-space:nowrap;" title="You are here: 04:05:34 Jan 11, 2019">11</td>
<td class="f" nowrap="nowrap"><a href="https://web.archive.org/web/20190226033832/http://pifro.com:80/dnd/NEW/nyu.php" title="03:38:32 Feb 26, 2019"><img src="/_static/images/toolbar/wm_tb_nxt_on.png" alt="Next capture" width="14" height="16" border="0" /></a></td>
</tr>
<!-- NEXT/PREV YEAR NAV AND YEAR INDICATOR -->
<tr class="y">
<td class="b" nowrap="nowrap"><a href="https://web.archive.org/web/20171228074326/http://pifro.com:80/dnd/NEW/nyu.php" title="28 Dec 2017"><strong>2017</strong></a></td>
<td class="c" id="displayYearEl" title="You are here: 04:05:34 Jan 11, 2019">2019</td>
<td class="f" nowrap="nowrap">2020</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="s">
<div id="wm-nav-captures">
<a class="t" href="/web/20190111040534*/http://pifro.com/dnd/NEW/nyu.php" title="See a list of every capture for this URL">89 captures</a>
<div class="r" title="Timespan for captures of this URL">10 Mar 2008 - 12 Aug 2019</div>
</div>
</td>
<td class="k">
<a href="" id="wm-graph-anchor">
<div id="wm-ipp-sparkline" title="Explore captures for this URL" style="position: relative">
<canvas id="wm-sparkline-canvas" width="625" height="27" border="0"></canvas>
</div>
</a>
</td>
</tr>
</tbody>
</table>
<div style="position:absolute;bottom:0;right:2px;text-align:right;">
<a id="wm-expand" class="wm-btn wm-closed" href="#expand" onclick="__wm.ex(event);return false;"><span id="wm-expand-icon" class="iconochive-down-solid"></span> <span style="font-size:80%">About this capture</span></a>
</div>
</div>
<div id="wm-capinfo" style="border-top:1px solid #777;display:none; overflow: hidden">
<div style="background-color:#666;color:#fff;font-weight:bold;text-align:center">COLLECTED BY</div>
<div style="padding:3px;position:relative" id="wm-collected-by-content">
<div style="display:inline-block;vertical-align:top;width:50%;">
<span class="c-logo" style="background-image:url(https://archive.org/services/img/alexacrawls);"></span>
Organization: <a style="color:#33f;" href="https://archive.org/details/alexacrawls" target="_new"><span class="wm-title">Alexa Crawls</span></a>
<div style="max-height:75px;overflow:hidden;position:relative;">
<div style="position:absolute;top:0;left:0;width:100%;height:7 5px;background:linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 90%,rgba(255,255,255,255) 100%);"></div>
Starting in 1996, <a href="http://www.alexa.com/">Alexa Internet</a> has been donating their crawl data to the Internet Archive. Flowing in every day, these data are added to the <a href="http://web.archive.org/">Wayback Machine</a> after an embargo period.
</div>
</div>
<div style="display:inline-block;vertical-align:top;width:49%;">
<span class="c-logo" style="background-image:url(https://archive.org/services/img/alexacrawls)"></span>
<div>Collection: <a style="color:#33f;" href="https://archive.org/details/alexacrawls" target="_new"><span class="wm-title">Alexa Crawls</span></a></div>
<div style="max-height:75px;overflow:hidden;position:relative;">
<div style="position:absolute;top:0;left:0;width:100%;height:7 5px;background:linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 90%,rgba(255,255,255,255) 100%);"></div>
Starting in 1996, <a href="http://www.alexa.com/">Alexa Internet</a> has been donating their crawl data to the Internet Archive. Flowing in every day, these data are added to the <a href="http://web.archive.org/">Wayback Machine</a> after an embargo period.
</div>
</div>
</div>
<div style="background-color:#666;color:#fff;font-weight:bold;text-align:center" title="Timestamps for the elements of this page">TIMESTAMPS</div>
<div>
<div id="wm-capresources" style="margin:0 5px 5px 5px;max-height:250px;overflow-y:scroll !important"></div>
<div id="wm-capresources-loading" style="text-align:left;margin:0 20px 5px 5px;display:none"><img src="/_static/images/loading.gif" alt="loading" /></div>
</div>
</div></div></div></div><div id="donato" style="position:relative;width:100%;">
<div id="donato-base">
<iframe id="donato-if" src="https://archive.org/includes/donate.php?as_page=1&amp;transpiled=0&amp;referer=https%3A//web.archive.org/web/20190111040534/http%3A//pifro.com/dnd/NEW/nyu.php"
scrolling="no" frameborder="0" style="width:100%; height:100%">
</iframe>
</div>
</div><script type="text/javascript">
__wm.bt(625,27,25,2,"web","http://pifro.com/dnd/NEW/nyu.php","2019-01-11",1996,"/_static/",['css/banner-styles.css','css/iconochive.css']);
__wm.checkScreenShot("http://pifro.com/dnd/NEW/nyu.php", '20190111040534');
</script>
<!-- END WAYBACK TOOLBAR INSERT -->
<form name="M">
<div class="container">

<div class="topbar">Monster Table Generator</div>
<div class="formatleft">
<b>Formatting</b>&nbsp;<select id="format"><option value="GI">GITP</option><option value="GL">GLEEMAX</option><option value="HT">HTML</option><option value="NO" selected>NORMAL</option><option value="PI">PIFBB</option><option value="WI">WIKI</option></select>
</div>
<div class="formatcenter">
<input type="button" onclick="generateMonster()" value="Generate Monster">
</div>
<div class="formatright">
<input type="button" onclick="generateRandom()" value="Random Monster">
</div>
<div class="input">
<div class="ts300">
Size&nbsp;<select id="size" onchange="aChangeTo();"><option value="0" selected>Fine</option><option value="1">Diminutive</option><option value="2">Tiny</option><option value="3">Small</option><option value="4">Medium</option><option value="5">Large</option><option value="6">Huge</option><option value="7">Gargantuan</option><option value="8">Colossal</option></select>
</div>
<div class="ts300">
Change To&nbsp;<select id="change"><option value="0" selected>Fine</option><option value="1">Diminutive</option><option value="2">Tiny</option><option value="3">Small</option><option value="4">Medium</option><option value="5">Large</option><option value="6">Huge</option><option value="7">Gargantuan</option><option value="8">Colossal</option></select>
</div>
<div class="ts300">
Reach&nbsp;<select id="reach"><option value="0" selected>Tall</option><option value="1">Long</option></select>
</div>

<div class="line"></div>

<div class="ts300" style="clear:left;">&nbsp;</div>
<div class="ts300">
Type&nbsp;<select id="type"><option value="0" selected>Aberration</option><option value="1">Animal</option><option value="2">Construct</option><option value="3">Dire Animal</option><option value="4">Dragon</option><option value="5">Elemental</option><option value="6">Fey</option><option value="7">Giant</option><option value="8">Humanoid</option><option value="9">Magical Beast</option><option value="10">Monstrous Humanoid</option><option value="11">Ooze</option><option value="12">Outsider</option><option value="13">Plant</option><option value="14">Undead</option><option value="15">Vermin</option></select>
</div>
<div class="ts300">&nbsp;</div>

<div class="break"></div>

<div class="ts300" style="clear:left;">
Subtype&nbsp;<select id="sta"><option value="0" selected>None</option><option value="1">Air</option><option value="2">Angel</option><option value="3">Aquatic</option><option value="4">Archon</option><option value="5">Augmented</option><option value="6">Chaotic</option><option value="7">Cold</option><option value="8">Earth</option><option value="9">Evil</option><option value="10">Extraplanar</option><option value="11">Fire</option><option value="12">Goblinoid</option><option value="13">Good</option><option value="14">Incorporeal</option><option value="15">Lawful</option><option value="16">Native</option><option value="17">Reptilian</option><option value="18">Shapechanger</option><option value="19">Swarm</option><option value="20">Water</option></select>
</div>
<div class="ts300">
Subtype&nbsp;<select id="stb"><option value="0" selected>None</option><option value="1">Air</option><option value="2">Angel</option><option value="3">Aquatic</option><option value="4">Archon</option><option value="5">Augmented</option><option value="6">Chaotic</option><option value="7">Cold</option><option value="8">Earth</option><option value="9">Evil</option><option value="10">Extraplanar</option><option value="11">Fire</option><option value="12">Goblinoid</option><option value="13">Good</option><option value="14">Incorporeal</option><option value="15">Lawful</option><option value="16">Native</option><option value="17">Reptilian</option><option value="18">Shapechanger</option><option value="19">Swarm</option><option value="20">Water</option></select>
</div>
<div class="ts300">
Subtype&nbsp;<select id="stc"><option value="0" selected>None</option><option value="1">Air</option><option value="2">Angel</option><option value="3">Aquatic</option><option value="4">Archon</option><option value="5">Augmented</option><option value="6">Chaotic</option><option value="7">Cold</option><option value="8">Earth</option><option value="9">Evil</option><option value="10">Extraplanar</option><option value="11">Fire</option><option value="12">Goblinoid</option><option value="13">Good</option><option value="14">Incorporeal</option><option value="15">Lawful</option><option value="16">Native</option><option value="17">Reptilian</option><option value="18">Shapechanger</option><option value="19">Swarm</option><option value="20">Water</option></select>
</div>

<div class="line"></div>

<div class="ts300" style="clear:left;">
Hit Die&nbsp;<input id="HD" size="4" maxlength="4" value="1" onkeypress="return numfilter(this, event)"> </div>
<div class="ts300">
Base Damage Die&nbsp;<select id="bdd"><option value="1">1d2</option><option value="2">1d3</option><option value="3">1d4</option><option value="4" selected>1d6</option><option value="5">1d8</option><option value="6">2d6</option><option value="7">2d8</option><option value="8">3d6</option><option value="9">3d8</option><option value="10">4d6</option><option value="11">4d8</option><option value="12">6d6</option><option value="13">6d8</option><option value="14">8d6</option><option value="15">8d8</option></select>
</div>

<div class="break"></div>

<div class="ts300" style="clear:left;">
Natural AC&nbsp;<input id="NAC" size="4" maxlength="4" value="0" onkeypress="return numfilter(this, event)"> </div>
<div class="ts300">
Deflection AC&nbsp;<input id="DAC" size="4" maxlength="4" value="0" onkeypress="return numfilter(this, event)"> </div>

<div class="line"></div>

<div class="ts150" style="clear:left;">
Strength&nbsp;<input id="str" size="4" maxlength="4" value="10" onkeypress="return numfilter(this, event)"> </div>
<div class="ts150">
Dexterity&nbsp;<input id="dex" size="4" maxlength="4" value="10" onkeypress="return numfilter(this, event)"> </div>
<div class="ts150">
Constitution&nbsp;<input id="con" size="4" maxlength="4" value="10" onkeypress="return numfilter(this, event)"> </div>
<div class="ts150">
Intelligence&nbsp;<input id="int" size="4" maxlength="4" value="10" onkeypress="return numfilter(this, event)"> </div>
<div class="ts150">
Wisdom&nbsp;<input id="wis" size="4" maxlength="4" value="10" onkeypress="return numfilter(this, event)"> </div>
<div class="ts150">
Charisma&nbsp;<input id="cha" size="4" maxlength="4" value="10" onkeypress="return numfilter(this, event)"> </div>

</div>
<div class="outbar">Output</div>
<div class="output">
<br><br><br><br><br><br> </div>
<div class="adbar">Copyright</div>
<div class="adblock">
<script type="text/javascript">
google_ad_client = "pub-0813591746665381";
google_ad_slot = "6140448537";
google_ad_width = 728;
google_ad_height = 90;
</script>
<script type="text/javascript" src="https://web.archive.org/web/20190111040534js_/http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<div class="copyright">
Web site &copy; 2007-2008 Reina Sweet (reinasweet at pifro dot com)<br>
Name tables borrowed with permission from TSED (<a href="https://web.archive.org/web/20190111040534/http://www.giantitp.com/forums/showthread.php?t=105151">link</a>)<br>
Please report any errors or suggestions to the email address above.<br>
All class tables and reproduced work is subject to either the <a href="/web/20190111040534/http://pifro.com/dnd/OGLv1.0a.rtf">Open Game License</a> or Fair Use.<br>
Site best viewed in 1024 x 768 or higher resolution with <a href="https://web.archive.org/web/20190111040534/http://www.getfirefox.com/">FireFox</a>.
</div>
<div class="copyright">
Jump to the <a href="https://web.archive.org/web/20190111040534/http://pifro.com/dnd/NEW/">Class Table Generator</a>.
</div>

</div>
</form>
</body>
</html><!--
FILE ARCHIVED ON 04:05:34 Jan 11, 2019 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 01:24:52 Mar 05, 2020.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
-->
<!--
playback timings (ms):
captures_list: 129.255
exclusion.robots: 0.261
LoadShardBlock: 99.794 (3)
RedisCDXSource: 11.016
PetaboxLoader3.datanode: 110.563 (4)
exclusion.robots.policy: 0.25
esindex: 0.013
CDXLines.iter: 12.383 (3)
load_resource: 124.641
PetaboxLoader3.resolve: 38.527
-->

Altrunchen
2020-03-04, 08:44 PM
Okay here's the java code for the monster table generator:


function numfilter(w,e){
var i;
var c;
if(window.event){ i=window.event.keyCode; }
else if(e){ i=e.which; }
else{ return true; }
c=String.fromCharCode(i);
if((i==null)||(i==0)||(i==8)||(i==9)||(i==13)||(i= =27)) return true;
else if((("0123456789").indexOf(c)>-1)){ return true; }
return false;
}
function generateMonster(){
c = parseInt(document.getElementById("change").value);
s = parseInt(document.getElementById("size").value);
str = parseInt(document.getElementById("str").value);
dex = parseInt(document.getElementById("dex").value);
con = parseInt(document.getElementById("con").value);
nac = parseInt(document.getElementById("NAC").value);
bdd = parseInt(document.getElementById("bdd").value);
for(;s<c;s++){
switch(s){
case 5:
nac+=1;
case 4:
nac+=2;
con+=2;
str+=4;
case 3:
con+=2;
case 2:
str+=2;
case 1:
str+=2;
case 0:
dex-=2;
break;
case 7:
nac+=1;
case 6:
str+=8;
con+=4;
nac+=4;
}
if(bdd <= 6){
bdd++;
}
else if(bdd < 14){
bdd+=2;
}
}
for(;s>c;s--){//"1d2","1d3","1d4","1d6","1d8","2d6","2d8","3d6","3d8","4d6","4d8","6d6","6d8","8d6","8d8"
switch(s){
case 6:
nac-=1;
case 5:
nac-=2;
con-=2;
str-=4;
case 4:
con-=2;
case 3:
str-=2;
case 2:
str-=2;
case 1:
dex+=2;
break;
case 8:
nac-=1;
case 7:
str-=8;
con-=4;
nac-=4;
}
if(bdd > 6){
bdd-=2;
}
else if(bdd > 1){
bdd--;
}
}
location = "?F=" + document.getElementById("format").value + "&Size=" + c + "&Tall=" + document.getElementById("reach").value + "&Type=" + document.getElementById("type").value + "&STA=" + document.getElementById("sta").value + "&STB=" + document.getElementById("stb").value + "&STC=" + document.getElementById("stc").value + "&HD=" + document.getElementById("HD").value + "&B=" + bdd + "&NAC=" + nac + "&DAC=" + document.getElementById("DAC").value + "&STR=" + str + "&DEX=" + dex + "&CON=" + con + "&INT=" + document.getElementById("int").value + "&WIS=" + document.getElementById("wis").value + "&CHA=" + document.getElementById("cha").value + "&NAM=" + randomNameNum();;
}
function ldice(x,y,a){
for(l=0;l<x;l++){
a+=Math.floor(Math.random()*y);
}
return a;
}
function rstat(stat){
t = Math.floor(Math.random()*9);
if(t==8){
return (stat+ldice(3,8,0));
}
else if((t==1)||(t==2)){
stat-=ldice(t,6,1);
if(stat<1) return 1;
}
return stat;
}
function aChangeTo(){
document.getElementById("change").selectedIndex = document.getElementById("size").value;
}
function subCheck(stA,stB,stC){
if(stA==stB) return 0;
if(stA==stC) return 0;
if(stB==stC) return 0;
if((stA==9)||(stB==9)||(stC==9)){ //if evil...
if((stA==13)||(stB==13)||(stC==13)) return 0; //can't be good
}
if((stA==6)||(stB==6)||(stC==6)){ //if chaotic...
if((stA==15)||(stB==15)||(stC==15)) return 0; //can't be lawful
}
if((stA==10)||(stB==10)||(stC==10)){ //if extraplanar...
if((stA==16)||(stB==16)||(stC==16)) return 0; //can't be native
}
}
function randomNameNum(){
namestr = 'abc';
nameout = '';
while(namestr.length){
temp = Math.floor(Math.random()*401);//407,406,401
if(temp < 10) nameout = nameout + '00' + temp;
else if(temp <100) nameout = nameout + '0' + temp;
else nameout = nameout + '' + temp;
if(namestr.substr(0,1) == 'a'){
if(temp == 1) namestr = namestr + 'c';
else if(temp == 2) namestr = namestr + 'b';
else if(temp == 3) namestr = namestr + 'aa';
else if(temp == 5) namestr = namestr + 'c';
else if(temp == 404) namestr = namestr + 'c';
}
else if(namestr.substr(0,1) == 'b'){
if(temp == 0) namestr = namestr + 'c';
else if(temp == 1) namestr = namestr + 'a';
else if(temp == 2) namestr = namestr + 'bb';
}
else if(namestr.substr(0,1) == 'b'){
if(temp == 0) namestr = namestr + 'cc';
else if(temp == 1) namestr = namestr + 'c';
else if(temp == 2) namestr = namestr + 'c';
else if(temp == 3) namestr = namestr + 'abc';//???
else if(temp == 11) namestr = namestr + 'cc';
else if(temp == 273) namestr = namestr + 'c';
else if(temp == 384) namestr = namestr + 'c';
}
namestr = namestr.substr(1);
}
return nameout;
}
function generateRandom(){
if(confirm("Generate Random Monster?")){//Math.floor(Math.random()*y)
size = Math.floor(Math.random()*9);
if(((size == 0)||(size == 8))&&(Math.round(Math.random(),0))) size = Math.floor(Math.random()*9);// ~1/4 of the time, rerolls tiny or collosal
hitdie = ldice(ldice(1,6,1),ldice(1,(10+(Math.pow(Math.floo r(size/4),2)*2)),1),1);
hdm = Math.ceil(hitdie/5);
ntext = "?F=" + document.getElementById("format").value + "&Size=" + size + "&Tall=" + Math.floor(Math.random()+0.5) + "&Type=" + Math.floor(Math.random()*16);
if(Math.floor(Math.random()+0.4)){
tempsta = (Math.floor(Math.random()*19)+1);
ntext = ntext + "&STA=" + tempsta;
if(Math.floor(Math.random()+0.35)){
do{
tempstb = (Math.floor(Math.random()*19)+1);
} while(subCheck(tempsta,tempstb,0));
ntext = ntext + "&STB=" + tempstb;
if(Math.floor(Math.random()+0.3)){
do{
tempstc = (Math.floor(Math.random()*19)+1);
} while(subCheck(tempsta,tempstb,tempstc));
ntext = ntext + "&STC=" + tempstc;
}
}
}
location = ntext + "&HD=" + hitdie + "&B=" + (ldice(1,2,size)+1) + "&NAC=" + ldice(size,(hdm+2),0) + "&DAC=" + 0 + "&STR=" + rstat(ldice((size+hdm),6,1)) + "&DEX=" + rstat(ldice((11-size+hdm),6,1)) + "&CON=" + rstat(ldice((size+hdm),6,1)) + "&INT=" + rstat(ldice((4+hdm),6,1)) + "&WIS=" + rstat(ldice((4+hdm),6,1)) + "&CHA=" + rstat(ldice((4+hdm),6,1)) + "&NAM=" + randomNameNum();
}
}

And here's the CSS:


div.container,div.ife {
border: 1px solid #708aeb;
width: 900px;
margin: 0px;
}
div.topbar,div.outbar,div.adbar{
height: 20px;
background-image: url(bg.png);
text-align: center;
font-weight: bold;
font-size: 16px;
color: #ffffff;
}
div.outbar {
clear: left;
}
div.formatleft,div.formatcenter,div.formatright {
float: left;
width: 299px;
text-align: center;
}
div.ts450,div.ts300,div.ts225,div.ts180,div.ts150, div.ts100{
float: left;
text-align: center;
line-height: 130%;
}
div.ts450 {
width: 450px;
}
div.ts300 {
width: 300px;
}
div.ts225 {
width: 225px;
}
div.ts180 {
width: 180px;
}
div.ts150 {
width: 150px;
}
div.ts100 {
width: 100px;
}
div.tsHF {
float: left;
width: 75;
text-align: left;
line-height: 130%;
}
div.formatcenter,div.formatright {
border-left: 1px solid #708aeb;
}
div.output {
vertical-align: top;
text-align: left;
margin: 5px;
}
div.break,div.line {
width: 100%;
height: 5px;
clear: left;
}
div.line,div.copyright,div.input,div.adblock {
border-top: 1px solid #708aeb;
}
div.copyright,div.input,div.adblock {
font-size: 13px;
clear: left;
text-align: center;
}
div.buttonclassleft,div.buttonclassright {
width: 140;
text-align: center;
}
div.buttonclassleft {
float: left;
}
div.buttonclassright {
float: right;
}
select,input {
background-color: #d4d9eb;
font-size: 12px;
}
input[type=checkbox] {
height: 11px;
}

#class {
width: 150px;
}
table {
padding: 0px;
border-collapse: collapse;
}
tr {
height: 20px;
}
tr.c {
background-color: #d4d9eb;
}
td {
text-align: center;
}
td.l {
text-align: left;
}
td.r {
text-align: right;
}
td.s {
width: 8px;
}