Page 1 of 1

rpg textNumber probs again LOL

PostPosted: Wed Jun 13, 2007 6:45 pm
by J Slayer67
hi...i hate to bug u guys again with my rpg but already :cry: another problem came up. when my charecter has enough xp to become lvl 3, the xp textNum. resets but the other textNumbers stay the same here (again) is my ged file p[lease help if u can :) thx

PostPosted: Wed Jun 13, 2007 10:44 pm
by Oman
Sry dude... but u forgot to put ur .ttf file in the data folder..

PostPosted: Thu Jun 14, 2007 2:40 pm
by J Slayer67
wat one?

PostPosted: Thu Jun 14, 2007 2:48 pm
by J Slayer67
here an rpgtestg is the file that I have the lvl 3 bug the other doesn't have the codes for lvl 3 once again please help if possible

PostPosted: Thu Jun 14, 2007 2:50 pm
by Sgt. Sparky
there is not data folder and no font. :(
(I will see what I can do, I know a way around this.)

PostPosted: Thu Jun 14, 2007 2:58 pm
by Sgt. Sparky
Code: Select all
if (xp.textNumber==1000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber=02;
}

is the code you must use instead of,
Code: Select all
if (xp.textNumber=xp.textNumber=1000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=xp.textNumber=0000;
    lvl.textNumber=lvl.textNumber=02;
}

:D
you must use == for if.
also:
you can't do so and so.textnumber = soandso.textNumber = 0; :(
(so and so.textNumber = 0; is correct. :D)

PostPosted: Thu Jun 14, 2007 3:23 pm
by J Slayer67
wat code do i use? did u look at rpgtestg or just rpgtest?

PostPosted: Thu Jun 14, 2007 3:28 pm
by Sgt. Sparky
just rpg test,
I suspected rpg testG has the same problem.


(I'm happy :D if I have helped, sad :( if I have not)

if you need further help let me know. :D

PostPosted: Thu Jun 14, 2007 3:35 pm
by J Slayer67
ok i tried it and the same thing happened.(IM NOT MAD AT U BUT THIS BUG *caps again aarrgghh!!!*) :evil: :cry: :cry: it's so annoying! >:-o<scream!!!> the next lvl text number didn't go up to 2000! :cry: and the lvl text number didn't go up to 3 AAAAARRRRRGGGGGHHHHH!!!!!!!!!!

Eassy

PostPosted: Fri Jun 15, 2007 7:17 am
by kyensoftware
Easy.
Code: Select all
if (yourlevel.textNumber == 1)
{
if (xp.textNumber==1000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber= 2;
}
}
if (yourlevel.textNumber == 2)
if (xp.textNumber==2000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber= 3;
}
}
// And so on.

EDIT: Cleaner code, speeds up around 2 fpm (frames per minute) which is good for shooters.
Code: Select all
// Put the ones that make you higher levels than 3 here!
if (yourlevel.textNumber == 1)
if (xp.textNumber==2000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber= 2;
}
}
if (yourlevel.textNumber == 2)
if (xp.textNumber==2000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber= 3;
}
}
// And so on.

:D

PostPosted: Fri Jun 15, 2007 12:49 pm
by J Slayer67
ok i tried it but it said error line 16: expected ; so i put on there just to see wat would happen. then it said
Code: Select all
error line 16: expected ;
                                                             error line 17: expected ;

i don't know what to do :?:

PostPosted: Sat Jun 16, 2007 11:35 am
by kyensoftware
Ooops!
forgot that. you have to put a ; on every line other than an if statement.
cant type the code again on this stoopid nintendo ds browser!

Re: rpg textNumber probs again LOL

PostPosted: Sat Mar 01, 2008 3:18 pm
by thunderios
I got kind of the same problem,
When I got testsplee (which is money XD ) >= to 20 I can buy something and I lose 20 testsplee
But now when I buy it it becomes -15, and when I earn 20 money I get 4...
Code: Select all
if(testsplee.textNumber == testsplee.textNumber >= 0020);
{
Speed = Speed = 5;
    CreateActor("Buydisable", "House1", "skateboard.x", "skateboard.x", 0, 0, false);
    ChangeZDepth("Buydisable", .99);
testsplee.textNumber = testsplee.textNumber = testsplee.textNumber - 020 ;
}

plz help me

Re: rpg textNumber probs again LOL

PostPosted: Mon Mar 03, 2008 12:05 am
by DilloDude
try this:
Code: Select all
if(testsplee.textNumber >= 20);
{
    Speed += 5;
    CreateActor("Buydisable", "House1", "skateboard.x", "skateboard.x", 0, 0, false);
    ChangeZDepth("Buydisable", .99);
    testsplee.textNumber -= 20 ;
}