• 0

# Average Damage Roll Probabilities

## Question

Posted (edited)

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

## Recommended Posts

• 0
• VIP

It's simpler than that the percent is added to the damage of your normal, non skill hits.

##### Link to post
• 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
• 1
• 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

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

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

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

1. 69

2. 1

3. 0

4. 0

5. 5

6. 1

7. 0

8. 65

9. 6