Jump to content
  • 0

Average Damage Roll Probabilities


FlyHunter

Question

Hello guys. I have a question I hope somebody can help me about this.

 

How does average damage bonus rolls work? I mean is the probability of rolling %60 average damage is equal to rolling %12 average damage? Or probability of rolling %27 is equal to probability of rolling %-10?

 

When a average damage bonus is rolling, does every number have the same probability with others? Or rolling %10 is easier than %58? If not, can you share te formula?

 

Thanks for your attention! :)

 

 

Edited by FlyHunter
Link to post

2 answers to this question

Recommended Posts

  • 0
  • Developer
Posted (edited)

Skill Damage gets calculated before Average Damage, the latter is based on the result of the first.

 

This is the default formula:

iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);

if (abs(iSkillBonus) <= 20)
    iNormalHitBonus = -2 * iSkillBonus + abs(number(-8, 8) + number(-8, 8)) + number(1, 4);
else
    iNormalHitBonus = -2 * iSkillBonus + number(1, 5);

 

 

de facto, Max Avg Dmg should be 65% and Max Skill Dmg is 30%, but since the default formula weights in favor of skill damage because of that "+ 0.5f" it's basically impossible to get more than 61 Avg Damage, Max Skill Damage is still 30.

 

Obviously, the formula is heavily weighted towards minimum values, so getting 50% Avg. Damage is significantly harder than getting 10% Avg Damage, and obviously the same goes for Skill Damage.

Edited by Syreldar
  • Love 1
  • Good 1

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

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

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.