Jump to content
MakeWebGames

Recommended Posts

Posted

Ok, iv been trying this for a good few hours now and, well i got a headache!!

Im trying to find a good formula for exp gains.

Iv tried just a random (2,20) idea, but when a user becomes a higher level, this formula sucks, it will take to long to level up, even by gaining the max 20 exp.

any ideas or help would be welcomed.

thanks

Posted

Re: exp help

Maybe you could use percentages, but that means it would be probably the same difficulty to level up if you were a level 1 or a level 100.

What exactly do you want though? You want a new way that users gain experience?

Posted

Re: exp help

Time's that per level?

$forumala = ($ir['level'] * 250/ (rand(2,20) * rand(1,5)) + $ir['level']);

If they are level 2 the formula would be like:

rand 1 = 5

rand 2 = 3

2 X 250 = 500

5 X 3 = 15

500 / 15 = 33

33 + 2 = 35.

Now as for a level 100:

rand 1 = 8

rand 2 = 2

100 X 250 = 25 000

8 x 2 = 16

25 000 / 16 = 1562

1562 + 100 = 1662

 

Of course you can change the variable's tho. :wink:

Posted

Re: exp help

Iv tried both and still not happy :-P im a hard person to please!!

i want it so no matter the level they can only gain 20%exp max

['level']*$r['level']*$r['level'];

so lets say they were level 1:

['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2)

17.6 exp

i want them to gain a max of 20% (3.52) for each attack.

but a level 9:

['exp_needed']=(int) (($ir['level']+1)*($ir['level']+1)*($ir['level']+1)*2.2);

need 2200 exp

but i still want them to gain a max of 20% (440)

i just cant figure out the formula to give them a max of 20% of what they need for their level.

its most likely something really simple, but as i say iv been at it for hours and now im brain dead!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...