View Single Post
Old 01-23-2013, 08:34 PM   PM User | #11
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,206
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
But let me make a stab at this, anyway. I'll probably mess up, but w.t.h.

Okay, so you say that:
50 posts means that
EXP = 50 * 50
EXP = 2500
and, yes, I see from your (mildly messed up) table that
if ( EXP == 2500 ) { plevel = 12; }

So then let's look at your first post:
Code:
var xpup = (plevel*xneeded)
var showxp= (xpup-xneeded)
You have asserted that xneeded == 500

SO that means:
Code:
var xpup = 12 * 500 ==>> xpup should be 6000.
var showxp = 6000 - 500 ==>> showxp should be 5500.
I *really* don't see why you are then saying
Quote:
That makes the level 12. [agreed]
The first equation should be outputting 200 according to that. [I get 6000.]
The second should be giving out 2150. [I get 5500]
Care to try to explain?
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is online now   Reply With Quote