<!-- you can copy this whole page into an html file and play with it. //-->
<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
This is a test of the re-done <b>Statistics System</b> from <b>Crono's Super Mega Practice Arena of Justice with a Cape</b>.<br>
It is pretty much completed, I am now working on the <b>Battle Engine</b>.
<hr>
Profiles
<hr>
<script>
// 10/3/01 4:00AM, SquareSoftWizard (ssjkriccolo@planetcheese.net)
// Stats categories from Chrono Trigger
// Set up environment

// define globals
nay = "Not Yet Implemented...";
// # of characters - 1 (0 = 1, 1 = 2, etc = yaddayaddayadda...)
characters = 8;
GlobalGrowthFactor = 1.75
// Set LIMITS = 0 to disable MAXstat limitations... :)
LIMITS = 1;
MAXlvl = 99;
MAXmhp = 999;
MAXmtp = 99;
MAXatt = 255;
MAXdef = 255;
MAXev = 99;
MAXhit = 99;
MAXpwr = 99;
MAXsta = 99;
MAXmdef = 99;
MAXmag = 99;
MAXspd = 16;

// Set level up needs
toNextLevel = new Array(MAXlvl);
toNextLevel[1] = 0;
toNextLevel[2] = 100;
toNextLevel[3] = 250;
toNextLevel[4] = 1000;
toNextLevel[5] = 4000;
for(i=6; i<=MAXlvl; i++){
	toNextLevel[i] = toNextLevel[i-1] + 1500 * i * .75;
}
toNextLevel[MAXlvl + 1] = "*";

char = new Array(characters);

// Variable	Description
// --------	----------
// weapon	Weapon
// head		Head
// armor	Armor
// accessory	Accessory
//      
// tag		Name
// lvl		Level
// mtype	Magic Type
// hp		Current Hit Points
// mhp		Max Hit Points
// tp		Current Tech Points
// mtp		Max Tech Points
// att		Attack
// def		Defense
// ev		Evade
// hit		Hit
// pwr		Power
// sta		Stamina
// mdef		Magic Defense
// mag		Magic
// exp		Experience
// nlvl		Next Level

// // Limit Values
// // This is the power(exponent) to which growth affects enhanced stats.
// // BE CAREFUL!
// //
// // EG: HP recalculation -
// // A level 14 character with a growth potential of 3.0 at GlobalGrowthFactor of 1.75
// // a base value of 50 (Level 1's value) would follow this calculation:
// // 	Maximum HP = Base HP + HP Growth Factor * (Level - 1) ^ GlobalGrowthFactor
// // 		or
// // 	317.0 = 50 + 3.0 * (14 - 1) ^ 1.75
// // The final value is then rounded to 317 Hit Points.
// // 
// // In case you are wondering, even level 1 stats would equal their base under
// // this equation:
// // 50 = 50 + 3.0 * (1 - 1) ^ 1.75
// //
// // NOTE: ^ (caret) is symbol for exponent
// //
	


function restoreHP(chr) { char[chr].hp = char[chr].mhp; }
function restoreTP(chr) { char[chr].tp = char[chr].mtp; }
function healParty() { for(i=0; i<=characters; i++){ restoreHP(i); restoreTP(i); } }
function genStats(chr) {
	for(var i=1; i<=MAXlvl; i++){
		if(char[chr].exp < toNextLevel[i]){ char[chr].lvl = i - 1; break; }
	}

	factor = Math.pow((char[chr].lvl - 1), GlobalGrowthFactor);
	char[chr].mhp = Math.round(char[chr].bmhp + char[chr].gmhp * factor);
	char[chr].mtp = Math.round(char[chr].bmtp + char[chr].gmtp * factor);
	char[chr].att = Math.round(char[chr].batt + char[chr].gatt * factor);
	char[chr].def = Math.round(char[chr].bdef + char[chr].gdef * factor);
	char[chr].ev = Math.round(char[chr].bev + char[chr].gev * factor);
	char[chr].hit = Math.round(char[chr].bhit + char[chr].ghit * factor);
	char[chr].pwr = Math.round(char[chr].bpwr + char[chr].gpwr * factor);
	char[chr].sta = Math.round(char[chr].bsta + char[chr].gsta * factor);
	char[chr].mdef = Math.round(char[chr].bmdef + char[chr].gmdef * factor);
	char[chr].mag = Math.round(char[chr].bmag + char[chr].gmag * factor);
	char[chr].spd = Math.round(char[chr].bspd + char[chr].gspd * factor);
	if(char[chr].lvl < MAXlvl){
		char[chr].nlvl = toNextLevel[char[chr].lvl + 1] - char[chr].exp;
	} else {
		char[chr].nlvl = 0;
	}
	i = chr;
	eval(itemWeapon[char[chr].weapon].script);
	eval(itemArmor[char[chr].armor].script);
	eval(itemHead[char[chr].head].script);
	eval(itemAccessory[char[chr].accessory].script);
	
	if(LIMITS = 1){
		if(char[chr].spd > MAXspd){ char[chr].spd = MAXspd; }
		if(char[chr].mag > MAXmag){ char[chr].mag = MAXmag; }
		if(char[chr].mdef > MAXmdef){ char[chr].mdef = MAXmdef; }
		if(char[chr].sta > MAXsta){ char[chr].sta = MAXsta; }
		if(char[chr].pwr > MAXpwr){ char[chr].pwr = MAXpwr; }
		if(char[chr].hit > MAXhit){ char[chr].hit = MAXhit; }
		if(char[chr].ev > MAXev){ char[chr].ev = MAXev; }
		if(char[chr].def > MAXdef){ char[chr].def = MAXdef; }
		if(char[chr].att > MAXatt){ char[chr].att = MAXatt; }
		if(char[chr].mtp > MAXmtp){ char[chr].mtp = MAXmtp; }
		if(char[chr].mhp > MAXmhp){ char[chr].mhp = MAXmhp; }
	}
	
}       
        
function displayStats(chr) {
	tmpstr="";
	tmpstr+="<TABLE>\n";
	tmpstr+="<TR><TD COLSPAN=2><FONT CLASS=Title>" + char[chr].tag + "</FONT></TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Job</TD><TD>" + char[chr].job + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Bio</TD><TD>" + char[chr].bio + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'></TD><TD></TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Weapon</TD><TD>" + itemWeapon[char[chr].weapon].name + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'> Description</TD><TD> " + itemWeapon[char[chr].weapon].description + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Head</TD><TD>" + itemHead[char[chr].head].name + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'> Description</TD><TD> " + itemHead[char[chr].head].description + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Armor</TD><TD>" + itemArmor[char[chr].armor].name + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'> Description</TD><TD> " + itemArmor[char[chr].armor].description + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Accessory</TD><TD>" + itemAccessory[char[chr].accessory].name + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'> Description</TD><TD> " + itemAccessory[char[chr].accessory].description + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'></TD><TD></TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Level</TD><TD>" + char[chr].lvl + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Magic Type</TD><TD>" + char[chr].mtype + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>HP</TD><TD>" + char[chr].hp + "/" + char[chr].mhp + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>TP</TD><TD>" + char[chr].tp + "/" + char[chr].mtp + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Attack</TD><TD>" + char[chr].att + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Defense</TD><TD>" + char[chr].def + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Power</TD><TD>" + char[chr].pwr + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Hit</TD><TD>" + char[chr].hit + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Stamina</TD><TD>" + char[chr].sta + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Speed</TD><TD>" + char[chr].spd + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Evade</TD><TD>" + char[chr].ev + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Magic</TD><TD>" + char[chr].mag + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Magic Defense</TD><TD>" + char[chr].mdef + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Experience</TD><TD>" + char[chr].exp + "</TD></TR>\n";
	tmpstr+="<TR><TD CLASS='Stat'>Next Level</TD><TD>" + char[chr].nlvl + "</TD></TR>\n";
	tmpstr+="</TABLE>\n";
	tmpstr+="\n";
	document.write(tmpstr);
}

function setLevel(chr) {
	if(char[chr].lvl > 0){ char[chr].exp = toNextLevel[char[chr].lvl] }
}

// 10/3/01 3:52AM
// Initialize Characters and Stats

// Clear all the Stats
char[0] = {
	tag: "Template",
	lvl: 1,	// Internal
	mtype: nay,
	weapon: 1,
	head: 3,
	armor: 1,
	accessory: 2,
	hp: 0,	// Internal
	mhp: 0,		bmhp: 50,	gmhp: 1.25,
	tp: 0,	// Internal
	mtp: 0,		bmtp: 10,	gmtp: .14,
	att: 0,		batt: 20,	gatt: .05,
	def: 0,		bdef: 10,	gdef: .05,
	ev: 0,		bev: 10,	gev: .02,
	hit: 0,		bhit: 30,	ghit: .03,
	pwr: 0,		bpwr: 20,	gpwr: .08,
	sta: 0,		bsta: 10,	gsta: .07,
	mdef: 0,	bmdef: 10,	gmdef: .05,
	mag: 0,		bmag: 12,	gmag: .04,
	spd: 0,		bspd: 8,	gspd: .005,
	exp: 0,
	nlvl: 0	// Internal
}

MAXitems = 10;
itemArmor = new Array(MAXitems);
itemWeapon = new Array(MAXitems);
itemHead = new Array(MAXitems);
itemAccessory = new Array(MAXitems);
// Clear items
for(var i=0; i<=MAXitems; i++){
	itemArmor[i] = {name: "", description: "", script: ""}
	itemWeapon[i] = {name: "", description: "", script: ""}
	itemHead[i] = {name: "", description: "", script: ""}
	itemAccessory[i] = {name: "", description: "", script: ""}
}




itemArmor[0] = {
 name: "Bare",
 description: "I'm naked!",
 script: '\
char[chr].def += 8;'
}
itemArmor[1] = {
 name: "Sweater",
 description: "It\'s a sweater!",
 script: '\
char[chr].def += 12;'
}
itemArmor[2] = {
 name: "Bad Man Shirt",
 description: "\"That one\'s for free...\"",
 script: '\
char[chr].def += 12;'
}
itemArmor[3] = {
 name: "8 Ball Jacket",
 description: "\"Speak to the 8 Ball.\"",
 script: '\
char[chr].def += 12;\
char[chr].mag += 1;'
}
itemArmor[4] = {
 name: "Shirt",
 description: "It\'s quite lovely.",
 script: '\
char[chr].def += 8;'
}
itemArmor[5] = {
 name: "Square Pants",
 description: "Behold my pants for they are square.",
 script: '\
char[chr].def += 25;\
char[chr].spd += 5;'
}
itemArmor[6] = {
 name: "Grimy Old Robe",
 description: "What IS that smell?!",
 script: '\
char[chr].def += 50;\
char[chr].mag += 10;'
}
itemArmor[7] = {
 name: "Small Furry Robe",
 description: "It is quite furry, yet uncomfortable. Evokes the ability of defense from the the Keebler Pimp\'s Ltd. Janitorial Combat Champion. Part 3 of 4 of the pimpin\' gear.",
 script: '\
char[chr].def = 75;'
}

itemHead[0] = {
 name: "Bare",
 description: "Full cranial nudity.",
 script: '\
char[chr].def += 3;'
}
itemHead[1] = {
 name: "Beanie",
 description: "It goes round and round and round and round...",
 script: '\
char[chr].def += 2; char[chr].spd += 1;'
}
itemHead[2] = {
 name: "Cowboy Hat",
 description: "Hey look at me! I\'m a cowboy! Howdy, howdy, howdy....",
 script: '\
char[chr].def += 2; char[chr].spd += 2;'
}
itemHead[3] = {
 name: "Cap",
 description: "It has a big \'M\' on the front.",
 script: '\
char[chr].def += 3;'
}
itemHead[4] = {
 name: "Haste Helm",
 description: "ZIP!!!!!!!!!",
 script: '\
char[chr].spd += char[chr].bspd * 2'
}
itemHead[5] = {
 name: "Small Feathered Hat",
 description: "It is quite pink. Evokes the wisdom of the Keebler Pimp Godfather. Part 2 of 4 of the pimpin\' gear.",
 script: '\
char[chr].mag = 50;'
}

itemWeapon[0] = {
 name: "Fist",
 description: "Fists of fury.",
 script: '\
char[chr].att += 10;'
}
itemWeapon[1] = {
 name: "Bat",
 description: "Tell me, you didn\'t pay money for this?",
 script: '\
char[chr].att += 14;'
}
itemWeapon[2] = {
 name: "Rainbow",
 description: "Hmm... Apparently there is blood at the end of this rainbow...",
 script: '\
char[chr].att += 125;'
}
itemWeapon[3] = {
 name: "Pen",
 description: "I really don\'t think/believe the guy/gal with the sword/blade thinks/ponders/accepts/yoinkenfrauhagens this is mightier/tougher/nastier than his/her weapon/tool. Zoink/gahoi/glavin.",
 script: '\
char[chr].att += 10;'
}
itemWeapon[4] = {
 name: "Plankton",
 description: "It\'s plankton with a nail.",
 script: '\
char[chr].att += 4; char[chr].spd += -1;'
}
itemWeapon[5] = {
 name: "Light Saber",
 description: "It glows in the dark.",
 script: '\
char[chr].att += 110;'
}
itemWeapon[6] = {
 name: "Golden Cane of Smallness",
 description: "It is quite small for someone who is quite large. Evokes power of the Keebler Pimp Grand Master. Part 1 of 4 of the pimpin\' gear.",
 script: '\
char[chr].pwr = 75;\
char[chr].att += 70;'
}

itemAccessory[0] = {
 name: "Nothing",
 description: "\"I need to accessorize.\"",
 script: '\
char[chr].spd += 1;'
}
itemAccessory[1] = {
 name: "Hairy Eyeball",
 description: "<marquee speed=100>\"<font color=\'#ff0000\'>He\'s going to tell!</font> <font color=\'#00ff00\'>He\'s going to tell!</font> <font color=\'#0000ff\'>He\'s going to tell!</font> <font color=\'#ffff00\'>He\'s going to tell!</font>\"</marquee>",
 script: '\
char[chr].spd += 2; char[chr].ev += 5;'
}
itemAccessory[2] = {
 name: "Head Spoiler",
 description: "Varooooooooom!",
 script: '\
char[chr].spd += 1;'
}
itemAccessory[3] = {
 name: "Bounty",
 description: "The quicker picker upper.",
 script: '\
char[chr].spd += 2;'
}
itemAccessory[4] = {
 name: "Old Jedi Walking Stick",
 description: "It\'s a collectors item!",
 script: '\
char[chr].spd += 10;\
char[chr].ev += 15;'
}
itemAccessory[5] = {
 name: "Fuzzy Dice Earrings",
 description: "It\'s soft and fuzzy. Evoke the base speed of the legendary Caffienated Keebler Pimp. Part 4 of 4 of the pimpin\' gear.",
 script: '\
char[chr].spd = 10;'
}

char[0] = {
 tag: "Wedge",
 job: "Ace Pilot",
 bio: "Friend of Biggs",
 lvl: 1,
 mtype: nay,
 weapon: 1,
 head: 3,
 armor: 1,
 accessory: 2,
 hp: 0,
 mhp: 0,
 bmhp: 50,
 gmhp: 1.25,
 tp: 0,
 mtp: 0,
 bmtp: 10,
 gmtp: 0.14,
 att: 0,
 batt: 20,
 gatt: 0.05,
 def: 0,
 bdef: 10,
 gdef: 0.05,
 ev: 0,
 bev: 10,
 gev: 0.02,
 hit: 0,
 bhit: 30,
 ghit: 0.03,
 pwr: 0,
 bpwr: 20,
 gpwr: 0.08,
 sta: 0,
 bsta: 10,
 gsta: 0.07,
 mdef: 0,
 bmdef: 10,
 gmdef: 0.05,
 mag: 0,
 bmag: 12,
 gmag: 0.04,
 spd: 0,
 bspd: 8,
 gspd: 0.005,
 exp: 0,
 nlvl: 0
}
char[1] = {
 tag: "Biggs",
 job: "Joker Pilot",
 bio: "Friend of Wedge",
 lvl: 1,
 mtype: nay,
 weapon: 3,
 head: 1,
 armor: 4,
 accessory: 1,
 hp: 0,
 mhp: 0,
 bmhp: 50,
 gmhp: 1.25,
 tp: 0,
 mtp: 0,
 bmtp: 10,
 gmtp: 0.14,
 att: 0,
 batt: 20,
 gatt: 0.05,
 def: 0,
 bdef: 10,
 gdef: 0.05,
 ev: 0,
 bev: 10,
 gev: 0.02,
 hit: 0,
 bhit: 30,
 ghit: 0.03,
 pwr: 0,
 bpwr: 20,
 gpwr: 0.08,
 sta: 0,
 bsta: 10,
 gsta: 0.07,
 mdef: 0,
 bmdef: 10,
 gmdef: 0.05,
 mag: 0,
 bmag: 12,
 gmag: 0.04,
 spd: 0,
 bspd: 8,
 gspd: 0.005,
 exp: 0,
 nlvl: 0
}
char[2] = {
 tag: "Putty",
 job: "Mechanic",
 bio: "...",
 lvl: 7,
 mtype: nay,
 weapon: 2,
 head: 3,
 armor: 2,
 accessory: 2,
 hp: 0,
 mhp: 0,
 bmhp: 50,
 gmhp: 1.25,
 tp: 0,
 mtp: 0,
 bmtp: 10,
 gmtp: 0.14,
 att: 0,
 batt: 20,
 gatt: 0.05,
 def: 0,
 bdef: 10,
 gdef: 0.05,
 ev: 0,
 bev: 10,
 gev: 0.02,
 hit: 0,
 bhit: 30,
 ghit: 0.03,
 pwr: 0,
 bpwr: 20,
 gpwr: 0.08,
 sta: 0,
 bsta: 10,
 gsta: 0.07,
 mdef: 0,
 bmdef: 10,
 gmdef: 0.05,
 mag: 0,
 bmag: 12,
 gmag: 0.04,
 spd: 0,
 bspd: 8,
 gspd: 0.005,
 exp: 0,
 nlvl: 0
}
char[3] = {
 tag: "Vegeta",
 job: "Unsatiated Saiya-Jin",
 bio: "...",
 lvl: 14,
 mtype: nay,
 weapon: 3,
 head: 1,
 armor: 2,
 accessory: 1,
 hp: 0,
 mhp: 0,
 bmhp: 50,
 gmhp: 1.25,
 tp: 0,
 mtp: 0,
 bmtp: 10,
 gmtp: 0.14,
 att: 0,
 batt: 20,
 gatt: 0.05,
 def: 0,
 bdef: 10,
 gdef: 0.05,
 ev: 0,
 bev: 10,
 gev: 0.02,
 hit: 0,
 bhit: 30,
 ghit: 0.03,
 pwr: 0,
 bpwr: 20,
 gpwr: 0.1,
 sta: 0,
 bsta: 10,
 gsta: 0.07,
 mdef: 0,
 bmdef: 10,
 gmdef: 0.05,
 mag: 0,
 bmag: 12,
 gmag: 0.04,
 spd: 0,
 bspd: 8,
 gspd: 0.008,
 exp: 0,
 nlvl: 0
}
char[4] = {
 tag: "Sponge Bob",
 job: "Underwater Freak",
 bio: "Spongy",
 lvl: 3,
 mtype: nay,
 weapon: 4,
 head: 0,
 armor: 5,
 accessory: 3,
 hp: 0,
 mhp: 0,
 bmhp: 50,
 gmhp: 1.25,
 tp: 0,
 mtp: 0,
 bmtp: 10,
 gmtp: 0.14,
 att: 0,
 batt: 20,
 gatt: 0.05,
 def: 0,
 bdef: 10,
 gdef: 0.05,
 ev: 0,
 bev: 10,
 gev: 0.02,
 hit: 0,
 bhit: 30,
 ghit: 0.03,
 pwr: 0,
 bpwr: 20,
 gpwr: 0.08,
 sta: 0,
 bsta: 10,
 gsta: 0.07,
 mdef: 0,
 bmdef: 10,
 gmdef: 0.05,
 mag: 0,
 bmag: 12,
 gmag: 0.04,
 spd: 0,
 bspd: 8,
 gspd: 0.007,
 exp: 0,
 nlvl: 0
}
char[5] = {
 tag: "Yoda",
 job: "Jedi Monkey Thing",
 bio: "\"I bent my Wookie...\"",
 lvl: 45,
 mtype: nay,
 weapon: 5,
 head: 0,
 armor: 6,
 accessory: 4,
 hp: 0,
 mhp: 0,
 bmhp: 50,
 gmhp: 1.25,
 tp: 0,
 mtp: 0,
 bmtp: 10,
 gmtp: 0.14,
 att: 0,
 batt: 20,
 gatt: 0.05,
 def: 0,
 bdef: 10,
 gdef: 0.05,
 ev: 0,
 bev: 10,
 gev: 0.02,
 hit: 0,
 bhit: 30,
 ghit: 0.03,
 pwr: 0,
 bpwr: 20,
 gpwr: 0.08,
 sta: 0,
 bsta: 10,
 gsta: 0.07,
 mdef: 0,
 bmdef: 10,
 gmdef: 0.05,
 mag: 0,
 bmag: 12,
 gmag: 0.04,
 spd: 0,
 bspd: 8,
 gspd: 0.005,
 exp: 0,
 nlvl: 0
}
char[6] = {
 tag: "Bob Newhart",
 job: "Human",
 bio: "Uh... um... you... should... yeah... ok...",
 lvl: 18,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 50,
 gmhp: 1.25,
 tp: 0,
 mtp: 0,
 bmtp: 10,
 gmtp: 0.14,
 att: 0,
 batt: 20,
 gatt: 0.05,
 def: 0,
 bdef: 10,
 gdef: 0.05,
 ev: 0,
 bev: 10,
 gev: 0.02,
 hit: 0,
 bhit: 30,
 ghit: 0.03,
 pwr: 0,
 bpwr: 20,
 gpwr: 0.08,
 sta: 0,
 bsta: 10,
 gsta: 0.07,
 mdef: 0,
 bmdef: 10,
 gmdef: 0.05,
 mag: 0,
 bmag: 12,
 gmag: 0.04,
 spd: 0,
 bspd: 8,
 gspd: 0.005,
 exp: 0,
 nlvl: 0
}
char[7] = {
 tag: "George Costanza",
 job: "Liar",
 bio: "Coooooostanza!",
 lvl: 39,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 50,
 gmhp: 1.25,
 tp: 0,
 mtp: 0,
 bmtp: 10,
 gmtp: 0.14,
 att: 0,
 batt: 20,
 gatt: 0.05,
 def: 0,
 bdef: 10,
 gdef: 0.05,
 ev: 0,
 bev: 10,
 gev: 0.02,
 hit: 0,
 bhit: 30,
 ghit: 0.03,
 pwr: 0,
 bpwr: 20,
 gpwr: 0.08,
 sta: 0,
 bsta: 10,
 gsta: 0.07,
 mdef: 0,
 bmdef: 10,
 gmdef: 0.05,
 mag: 0,
 bmag: 12,
 gmag: 0.04,
 spd: 0,
 bspd: 8,
 gspd: 0.005,
 exp: 0,
 nlvl: 0
}
char[8] = {
 tag: "Groncho the Elf",
 job: "Keebler Pimp",
 bio: "He is the pimpin\' apprentice of Bruce \"the Pimpster\" Peppy of the Mossy-nal-da Kingdom.",
 lvl: 80,
 mtype: nay,
 weapon: 6,
 head: 5,
 armor: 7,
 accessory: 5,
 hp: 0,
 mhp: 0,
 bmhp: 0,
 gmhp: 0,
 tp: 0,
 mtp: 0,
 bmtp: 0,
 gmtp: 0,
 att: 0,
 batt: 0,
 gatt: 0,
 def: 0,
 bdef: 0,
 gdef: 0,
 ev: 0,
 bev: 0,
 gev: 0,
 hit: 0,
 bhit: 0,
 ghit: 0,
 pwr: 0,
 bpwr: 0,
 gpwr: 0,
 sta: 0,
 bsta: 0,
 gsta: 0,
 mdef: 0,
 bmdef: 0,
 gmdef: 0,
 mag: 0,
 bmag: 0,
 gmag: 0,
 spd: 0,
 bspd: 0,
 gspd: 0,
 exp: 0,
 nlvl: 0
}
char[9] = {
 tag: "",
 job: "",
 bio: "",
 lvl: 0,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 0,
 gmhp: 0,
 tp: 0,
 mtp: 0,
 bmtp: 0,
 gmtp: 0,
 att: 0,
 batt: 0,
 gatt: 0,
 def: 0,
 bdef: 0,
 gdef: 0,
 ev: 0,
 bev: 0,
 gev: 0,
 hit: 0,
 bhit: 0,
 ghit: 0,
 pwr: 0,
 bpwr: 0,
 gpwr: 0,
 sta: 0,
 bsta: 0,
 gsta: 0,
 mdef: 0,
 bmdef: 0,
 gmdef: 0,
 mag: 0,
 bmag: 0,
 gmag: 0,
 spd: 0,
 bspd: 0,
 gspd: 0,
 exp: 0,
 nlvl: 0
}
char[10] = {
 tag: "",
 job: "",
 bio: "",
 lvl: 0,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 0,
 gmhp: 0,
 tp: 0,
 mtp: 0,
 bmtp: 0,
 gmtp: 0,
 att: 0,
 batt: 0,
 gatt: 0,
 def: 0,
 bdef: 0,
 gdef: 0,
 ev: 0,
 bev: 0,
 gev: 0,
 hit: 0,
 bhit: 0,
 ghit: 0,
 pwr: 0,
 bpwr: 0,
 gpwr: 0,
 sta: 0,
 bsta: 0,
 gsta: 0,
 mdef: 0,
 bmdef: 0,
 gmdef: 0,
 mag: 0,
 bmag: 0,
 gmag: 0,
 spd: 0,
 bspd: 0,
 gspd: 0,
 exp: 0,
 nlvl: 0
}
char[11] = {
 tag: "",
 job: "",
 bio: "",
 lvl: 0,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 0,
 gmhp: 0,
 tp: 0,
 mtp: 0,
 bmtp: 0,
 gmtp: 0,
 att: 0,
 batt: 0,
 gatt: 0,
 def: 0,
 bdef: 0,
 gdef: 0,
 ev: 0,
 bev: 0,
 gev: 0,
 hit: 0,
 bhit: 0,
 ghit: 0,
 pwr: 0,
 bpwr: 0,
 gpwr: 0,
 sta: 0,
 bsta: 0,
 gsta: 0,
 mdef: 0,
 bmdef: 0,
 gmdef: 0,
 mag: 0,
 bmag: 0,
 gmag: 0,
 spd: 0,
 bspd: 0,
 gspd: 0,
 exp: 0,
 nlvl: 0
}
char[12] = {
 tag: "",
 job: "",
 bio: "",
 lvl: 0,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 0,
 gmhp: 0,
 tp: 0,
 mtp: 0,
 bmtp: 0,
 gmtp: 0,
 att: 0,
 batt: 0,
 gatt: 0,
 def: 0,
 bdef: 0,
 gdef: 0,
 ev: 0,
 bev: 0,
 gev: 0,
 hit: 0,
 bhit: 0,
 ghit: 0,
 pwr: 0,
 bpwr: 0,
 gpwr: 0,
 sta: 0,
 bsta: 0,
 gsta: 0,
 mdef: 0,
 bmdef: 0,
 gmdef: 0,
 mag: 0,
 bmag: 0,
 gmag: 0,
 spd: 0,
 bspd: 0,
 gspd: 0,
 exp: 0,
 nlvl: 0
}
char[13] = {
 tag: "",
 job: "",
 bio: "",
 lvl: 0,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 0,
 gmhp: 0,
 tp: 0,
 mtp: 0,
 bmtp: 0,
 gmtp: 0,
 att: 0,
 batt: 0,
 gatt: 0,
 def: 0,
 bdef: 0,
 gdef: 0,
 ev: 0,
 bev: 0,
 gev: 0,
 hit: 0,
 bhit: 0,
 ghit: 0,
 pwr: 0,
 bpwr: 0,
 gpwr: 0,
 sta: 0,
 bsta: 0,
 gsta: 0,
 mdef: 0,
 bmdef: 0,
 gmdef: 0,
 mag: 0,
 bmag: 0,
 gmag: 0,
 spd: 0,
 bspd: 0,
 gspd: 0,
 exp: 0,
 nlvl: 0
}
char[14] = {
 tag: "",
 job: "",
 bio: "",
 lvl: 0,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 0,
 gmhp: 0,
 tp: 0,
 mtp: 0,
 bmtp: 0,
 gmtp: 0,
 att: 0,
 batt: 0,
 gatt: 0,
 def: 0,
 bdef: 0,
 gdef: 0,
 ev: 0,
 bev: 0,
 gev: 0,
 hit: 0,
 bhit: 0,
 ghit: 0,
 pwr: 0,
 bpwr: 0,
 gpwr: 0,
 sta: 0,
 bsta: 0,
 gsta: 0,
 mdef: 0,
 bmdef: 0,
 gmdef: 0,
 mag: 0,
 bmag: 0,
 gmag: 0,
 spd: 0,
 bspd: 0,
 gspd: 0,
 exp: 0,
 nlvl: 0
}
char[15] = {
 tag: "",
 job: "",
 bio: "",
 lvl: 0,
 mtype: nay,
 weapon: 0,
 head: 0,
 armor: 0,
 accessory: 0,
 hp: 0,
 mhp: 0,
 bmhp: 0,
 gmhp: 0,
 tp: 0,
 mtp: 0,
 bmtp: 0,
 gmtp: 0,
 att: 0,
 batt: 0,
 gatt: 0,
 def: 0,
 bdef: 0,
 gdef: 0,
 ev: 0,
 bev: 0,
 gev: 0,
 hit: 0,
 bhit: 0,
 ghit: 0,
 pwr: 0,
 bpwr: 0,
 gpwr: 0,
 sta: 0,
 bsta: 0,
 gsta: 0,
 mdef: 0,
 bmdef: 0,
 gmdef: 0,
 mag: 0,
 bmag: 0,
 gmag: 0,
 spd: 0,
 bspd: 0,
 gspd: 0,
 exp: 0,
 nlvl: 0
}

</script>
<script>
for(var i=0; i<=characters; i++){ setLevel(i); }
for(var i=0; i<=characters; i++){ genStats(i); }
healParty();
for(var i=0; i<=characters; i++){ document.write("<HR>"); displayStats(i); }
</script>

</BODY>
</HTML>