warrior Stats Help

hey I took another look a my warrior stats and decided to make them enum now I am getting errors when I
try to setup my BaseStats and Vitals. Here is my new code for my warrior can someone help me with the setup of
my Vitals and BaseStats?

var name : String;
var level : int;
var curExp : int;
var maxExp : int;
var buff : int;



function Update() {
	
	name = String.Empty;
	level = 1;
	maxExp = 100;
	buff = 0;
	AddEXP();
	LevelUp();
	SetBaseStats();
	SetVitals();

}
// These are his stats for the game
enum BaseStats
{
	
	
	Might, 
	Defense, 
	Magic, 
	MagDef,
	Luck 

	
}

// These are his Vitals
enum Vitals
{
	Health,
	Energy

}
// exp to add to this class 
function AddEXP()
{

	var exp : int = 0;
	curExp += exp;

}

// to level up the player
function LevelUp()
{
	if(curExp >= maxExp)
	{
		level++;
		maxExp += 10;
		
		Might += 4;
		Defense += 5;
		Magic += 2;
		MagDef += 3;
		Luck += 2;
		
		curExp = 0;
	
	}

}

function SetBaseStats()
{
	
}

function SetVitals()
{
	

}

I just need to setup this. I am going to make another script for showing the Players Health.

You can’t have them as enumerators if you plan to modify them, enumerators can only contain constants and aren’t meant to be used in this way. It was better beforehand.

ok Thanks for the tip

here is my character creation script I am having trouble Tell me what I need to change

var Char1 : Warrior;

var buttonHeight : int = 25;
var buttonWidth : int = 50;

var windowHeight : int = 500;
var windowWidth : int = 200;

Char1 = GetComponent(Warrior);



function Start()
{
	
	
}

function Update () {
	
	

}

function OnGUI()
{
	GUI.Label(Rect(300,2,35,25),"Name");
	GUI.TextField(Rect(360,2,100,25),String.Empty);
	GUI.Box(Rect(25,10,windowWidth,windowHeight),"Character");
	WarriorButton();
	MageButton();
	ClaricButton();

}
// This is the button to press to call the Warrior Script
function WarriorButton()
{	
	if(GUI.Button(Rect(35,80,buttonWidth,buttonHeight),"Warrior"))
	{
		
		
	
	
	}
	
	
}
// to call the Mage script
function MageButton()
{
	GUI.Button(Rect(35,120,buttonWidth,buttonHeight),"Mage");

}

function ClaricButton()
{
	GUI.Button(Rect(35,180,buttonWidth,buttonHeight),"Claric");

}

well my problum is the name.The Player has to type in a name like in world of warcraft right now you can’t type
in the text field I made. I was wondering how to go about doing this? and when I try and make name equals an empty
string I get an error.

Oh I redid my warrior script back to the way it was.