Front page is nifty and tells me exactly where the problem is; line 2021. the problem is that line 2021 ISN'T the java i changed (basically the contents of the arrays) but a function of the java itself.
I don't know jack shit about javascript, so naturally I'm lost. I've tried the script off of 2 other generators but I still no get it to worky.
code as is follows~ -
<hr>
<hr>function GenNumber (nRange)
{
var iNumGen
iNumGen = Math.round((Math.random() * nRange));
return iNumGen;
}
function GetFrom(aArray)
{
var undefined
var sReturn
sReturn = aArray[GenNumber(aArray.length)];
if (sReturn == undefined)
{
sReturn = GetFrom(aArray)
}
return sReturn
}
function GetArray(sArrayName)
{
var bHold = true
//alert(sArrayName)
for (var intLooper=0;intLooper <aVocab.length;intLooper++)
{
if (aVocab[intLooper][0]==sArrayName) <Problem> -1)
{
iTagStart = sLine.indexOf("<iTagEnd> - 1)
{
sLine = ScanLine(sLine)
}
return sLine;
}
function GenPlot()
{
sLine = GetFrom(GetArray("BASE"));
sLine = ScanLine(sLine)
document.GENFORM.STORY.value = sLine;
}
//-->
The error message says that 'aVocab[...].0' is a null or not an object.
does anyone know the problems?
Edit: -stare- it's misbehaving. that's as good as the code's gonna get i guess-- the furry character gen in seventh sanctum. the particular problem line is such:
If (aVocab[intlooper][0]==sArrayName)