Jump to content
×
×
  • Create New...
  • 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 comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  • Premium

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 2

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 0

      Looking for Someone to create the queries etc for armors and weapons

    2. 13

      Official Private Shop Search

    3. 944

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    4. 79

      GUI Teleport System

    5. 0

      inventory slot marking system cant compile

    6. 8

      Inventory Bug

    7. 63

      Metin2 Dev - Changelogs

  • Recently Browsing

    • No registered users viewing this page.

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.