Forum Topic: experience points

(215 views • 13 replies)

This topic is 1 page long.

<< < > >>
None

teenagegluesniffer

Reply To Post Reply & Quote

Posted at: 2/24/06 10:07 PM

teenagegluesniffer EVIL LEVEL 09

Sign-Up: 02/20/06

Posts: 331

I've been trying to get it so that users will have XP, I've tried many things, looked for tutorials; nothing seems to work. Does anyone know of a tutorial, or can explain something to me here please?
Thank you.


None

bakerrr

Reply To Post Reply & Quote

Posted at: 2/25/06 12:00 AM

bakerrr NEUTRAL LEVEL 21

Sign-Up: 12/07/03

Posts: 1,233

I don't think anyone would ever do a tutorial on that. You just have to log into your account and vote on 5 submissions.

BBS Signature

None

ConAir

Reply To Post Reply & Quote

Posted at: 2/25/06 12:01 AM

ConAir NEUTRAL LEVEL 27

Sign-Up: 04/01/04

Posts: 1,547

At 2/25/06 12:00 AM, Bakerrr wrote: I don't think anyone would ever do a tutorial on that. You just have to log into your account and vote on 5 submissions.

I think he means experience as in "exp. points in a game", which he could probably find somewhere in the AS: Main if he digs around deep enough. Otherwise, I have no other answers for you.

always behind schedule.

BBS Signature

None

Mogly

Reply To Post Reply & Quote

Posted at: 2/25/06 12:02 AM

Mogly LIGHT LEVEL 25

Sign-Up: 09/05/04

Posts: 10,304

explain thee self to a more accurate degree if you would kind sir

~ MogTom ~ Dont fuck around with my dog. All that I can see I steal. ~
NG FFR ~ Automatic for the people.

BBS Signature

None

zuperxtreme

Reply To Post Reply & Quote

Posted at: 2/25/06 12:37 AM

zuperxtreme NEUTRAL LEVEL 07

Sign-Up: 01/02/05

Posts: 987

umm..
cant you just use a simple var??

var xp_guy1:Number = 0;

if(enemie1.hp<=0){
enemie1.dead=true;
xp_guy1+=100;
}

something like that??
ok..
bye...its late..


None

Rammer

Reply To Post Reply & Quote

Posted at: 2/25/06 12:39 AM

Rammer DARK LEVEL 31

Sign-Up: 06/08/03

Posts: 4,314

At 2/25/06 12:37 AM, zuperxtreme wrote: umm..
cant you just use a simple var??

var xp_guy1:Number = 0;

if(enemie1.hp<=0){
enemie1.dead=true;
xp_guy1+=100;
}

something like that??
ok..
bye...its late..

hard-coding is fun. let's not use variables and misspell "enemy".

weee!

{ AMD Athlon 64 X2 5200+ 2.6 GHz - two 320 GB HDDs in RAID 0 - NVIDIA GeForce 8800 GT - Gyration mouse - Razer Tarantula keyboard - 2 GB Corsair RAM }

(:


None

teenagegluesniffer

Reply To Post Reply & Quote

Posted at: 2/25/06 01:08 AM

teenagegluesniffer EVIL LEVEL 09

Sign-Up: 02/20/06

Posts: 331

Sorry, I meant in a game!
My problem with it is like, having levels with it. So once you reach like 200 xp you get to level 2, then once you get to 460 you get to level 3...etc...like that.


None

Johnny

Reply To Post Reply & Quote

Posted at: 2/25/06 02:51 AM

Johnny DARK LEVEL 20

Sign-Up: 04/17/04

Posts: 3,698

Well... you could just do something like...

if(xp >= xpNeeded){
//level up code
}

// That's a REAL simple way to do it.. not the most effective way, but simple. Then just reset their xp and xpNeeded afterwards... keep their actual total in a different variable if you need to display it. If their xpNeeded changes, just change it. Like, if after 5, they need 200 more (instead of 75 or whatever...) just do..

if(level > 5){ xpNeeded = 200}

or create a small formula to do it for you.

xpNeeded = level*100

or something like that.

This is the bare bones, easy to understand way to do it, but not always the best.


None

teenagegluesniffer

Reply To Post Reply & Quote

Posted at: 2/26/06 12:58 AM

teenagegluesniffer EVIL LEVEL 09

Sign-Up: 02/20/06

Posts: 331

Hmmmmm..no.
Anyone else have a suggestion? I see what you are saying with this, but I can't seem to get it working. :\
Any other suggestions?


None

teenagegluesniffer

Reply To Post Reply & Quote

Posted at: 2/26/06 01:44 PM

teenagegluesniffer EVIL LEVEL 09

Sign-Up: 02/20/06

Posts: 331

Hmmmmmm..Anyone gonna be able to help me?


None

Zeel1

Reply To Post Reply & Quote

Posted at: 3/3/06 07:49 AM

Zeel1 NEUTRAL LEVEL 07

Sign-Up: 02/18/06

Posts: 962

At 2/26/06 01:44 PM, teenagegluesniffer wrote: Hmmmmmm..Anyone gonna be able to help me?

Do you know of a place that respawns easy-to-beat creatures?Doing that over-and-over helps.


None

Zeel1

Reply To Post Reply & Quote

Posted at: 3/3/06 07:53 AM

Zeel1 NEUTRAL LEVEL 07

Sign-Up: 02/18/06

Posts: 962

At 2/25/06 01:08 AM, teenagegluesniffer wrote: Sorry, I meant in a game!
My problem with it is like, having levels with it. So once you reach like 200 xp you get to level 2, then once you get to 460 you get to level 3...etc...like that.

Most "LEVEL UP!"games have a pattern with the amount of XP. you need.Like 20 then 40 then 60.Some are more complicated though.Like 999 then 1278 then 2006.It depends.


None

Tantric

Reply To Post Reply & Quote

Posted at: 3/3/06 09:08 AM

Tantric LIGHT LEVEL 10

Sign-Up: 10/29/05

Posts: 473

At 2/26/06 12:58 AM, teenagegluesniffer wrote: Hmmmmm..no.
Anyone else have a suggestion? I see what you are saying with this, but I can't seem to get it working. :\
Any other suggestions?

That's the most simple way possible to do it, if you can't get that working then you will fail miserably on the others.


None

zuperxtreme

Reply To Post Reply & Quote

Posted at: 3/3/06 11:02 AM

zuperxtreme NEUTRAL LEVEL 07

Sign-Up: 01/02/05

Posts: 987

At 2/25/06 12:39 AM, 2k_rammerizkool wrote:
At 2/25/06 12:37 AM, zuperxtreme wrote: umm..
cant you just use a simple var??

var xp_guy1:Number = 0;

if(enemie1.hp<=0){
enemie1.dead=true;
xp_guy1+=100;
}

something like that??
ok..
bye...its late..
hard-coding is fun. let's not use variables and misspell "enemy".

weee!

Ok what did you mean by hard-coding?
you mean by declaring each variable and giving a value to each?
enlighten me..
and I'm sorry I dont have perfect english..


All times are Eastern Standard Time (GMT -5) | Current Time: 12:49 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!