Raised This Month: $51 Target: $400
 12% 

Having a Little problem with calculations


Post New Thread Reply   
 
Thread Tools Display Modes
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-01-2011 , 18:25   Re: Having a Little problem with calculations
Reply With Quote #31

That is because with the current method it will be 70 * ( 2 ^ 15 ) = 2 293 760

while(player_experience[id] >= (70 * power(2, player_level[id] - 1)))

It doubles every time, starting at 70, if you look at an exponential graph of the function, it is going to be an EXTREMELY large slope when you get to numbers like 15-16. (close to undefined slope). It would be better if you just made an array with the xp that you want for each level, and then checked using that array whether they should level up.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Krle
Senior Member
Join Date: Jul 2011
Location: Serbia, Nis
Old 09-01-2011 , 19:59   Re: Having a Little problem with calculations
Reply With Quote #32

I did, but it wouldn't work... Anyway this is good, too, like
1Lvl=70
2Lvl=140
3Lvl=210

Its not too fast, not too slow... But i would like if it Doubles each level, like
1Lvl=70
2Lvl=140
3Lvl=280

I wont set levelratio to 35, i will set it to 10-15 or sumthing -.-
__________________

Sorry about my BAD English
Krle is offline
Send a message via MSN to Krle
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode