Jump to content

Need to get the "ABOVE AVERAGE" value, not the divided by one.


Monkuar

Recommended Posts

topic title says it all:

$rpgdata['max_dmg'] = 15;

$rpgdata['min_dmg'] = 3;



$maindamage = ($rpgdata['max_dmg'] / $rpgdata['min_dmg']);

$maindamage will be output of 3.

 

But this is not correct, a user having 3 to 15 min damage, needs to output atleast 10 damage per swing.... how to increase the value of 3 to atleast 7 or more as in this case?

 

 

or wouldn't it be better to do something like?

$maindamage = rand($rpgdata['min_dmg'], $rpgdata['max_dmg']);
 

? Not sure ty

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.