Page 1 of 1

text number bug or my codes?

PostPosted: Wed Jun 13, 2007 12:47 pm
by J Slayer67
i'm not sure if it's GE or just my codes so what i'm trying to on the game is to make my player gain xp then gain a lvl. the xp worked then i added that if xp.textNumber=xp.textNumber>999; my lvl text number would = 2;

can anyone take a look at my .ged and try and help me?

PS: im keeping a list of who helped me so they will be on the creds thx for your time

PostPosted: Wed Jun 13, 2007 1:10 pm
by makslane
Some fixes:

Instead:

Code: Select all
xp.textNumber=xp.textNumber=0000;


Just use:

Code: Select all
xp.textNumber=0;


Instead:

Code: Select all
if (xp.textNumber=xp.textNumber=1000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=xp.textNumber=0000;
    lvl.textNumber=lvl.textNumber=02;
}


Use:

Code: Select all
if (xp.textNumber >= 1000) //Or > any number you want...
{
    nl.textNumber=1500;
    xp.textNumber=0;
    lvl.textNumber=02;
}

PostPosted: Wed Jun 13, 2007 3:03 pm
by J Slayer67
thanks makslane i thought i had to not take away the 2nd = textnum. thing, but i always get confused so i do __.textNumber=__.textNumber
thx again

PostPosted: Wed Jun 13, 2007 3:08 pm
by J Slayer67
thx it worked exactly as i wanted!!!=> :D