Jump to content
MakeWebGames

help with this formula


jcrocker801

Recommended Posts

i need help getting this formula to work right for the game ...ok so i dont wnt peoepl to lvl to fast for the game..they are hitting each other and gaining ground to fast,,,i can tkeep up with the cities or the stuff for them..lvl 15 poeple are hitting poeple lvl 90 or higher with much higher stats to catch up to them when they are not equipped. this is the formula i am using ...can someone help me please

$expgain=rand($qe/50,$ge/50 ) is the original

//this is tfor a max of 75

$expgain=rand*$qe/2,$qe);

im using the second formula the first one is the original.

rand is set at a value for example if i were to say rand(1,100) one would be the lowest you can have and 100 the max), so if you take that apply it to the variables you can see how this code works. the $qe varlaible is the quantiny of experience inolved in the comparison later coded as the diference between the two players in the attack

Link to comment
Share on other sites

  • 3 weeks later...

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...