text number bug or my codes?

Non-platform specific questions.

text number bug or my codes?

Postby J Slayer67 » Wed Jun 13, 2007 12:47 pm

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
Attachments
rpg.zip
here is my rpg test...the textnum. are killing me!!!!!!:'(
(82.38 KiB) Downloaded 102 times
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby makslane » Wed Jun 13, 2007 1:10 pm

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;
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby J Slayer67 » Wed Jun 13, 2007 3:03 pm

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
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby J Slayer67 » Wed Jun 13, 2007 3:08 pm

thx it worked exactly as i wanted!!!=> :D
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest