hajmyis said:
u should make a file for me to downlaod were it is just a blank ocean map the is a huge map...8)
Just save to desktop as a .html file and use your browser.
My
javascript_foo would not allow me to handle the radio buttons I wanted to do, so you have to type things out yourself. Sorry.
---
<html>
<head>
<script language=javascript>
function Create_Summary()
{
document.test.history.value = "";
for (var j=0; j < document.test.y_coord.value; j++)
{
for (var i=0; i < document.test.x_coord.value; i++)
{
var block = "BeginPlot\n\t" + "x=" + i + ",y=" + j + "\n\tTerrainType=";
block += document.test.terrain.value + "\n\tPlotType=";
block += document.test.pl_type.value + "\nEndPlot\n";
document.test.history.value += block;
}
}
}
</script>
</head>
<body>
<form name="test">
<table>
<tr>
<td align=right>Width: </td>
<td>
<input type=text name="x_coord" size=4 maxlength=4 onblur='Create_Summary();'>
</td>
</tr>
<tr>
<td align=right>Height: </td>
<td>
<input type=text name=y_coord size=4 maxlength=4 onblur='Create_Summary();'>
</td>
</tr>
<tr>
<td align=right valign=top>Terrain: </td>
<td>
<input type=text name=terrain size=20 maxlength=20 onblur='Create_Summary();'><br>
examples include TERRAIN_OCEAN
</td>
</tr>
<tr>
<td align=right valign=top>Terrain: </td>
<td>
<input type=text name=pl_type size=1 maxlength=1 onblur='Create_Summary();'><br>
0=>mountain<br>
1=>hilly<br>
2=>flat<br>
3=>below sea level<br>
</td>
</tr>
<tr>
<td colspan=2> </td>
</tr>
<tr>
<td colspan=2 align=center>
<textarea name="history" cols=40 rows=21 wrap></textarea>
</td>
</tr>
</table>
<INPUT TYPE="button" NAME=".defaults" VALUE="CLEAR" onclick="document.test.history.value='';">
</form>
</body>
</html>