Game Damage Algorithm Division formula (3)

Source: Internet
Author: User

Formula principle: Damage = attack damage * Attack/(attack + target defense)

dmg=atk*atk/(ATK+TARGETDEF)

Use case:

This formula is a World of Warcraft formula, and the damage avoidance rate becomes a dynamic result, which is associated with both the attacking side's attack and defensive defenses.

, the red line represents the function curve of damage on the attack, and the orange color represents the function curve of the damage on the defensive force. From the analysis of these two functions, the damage gain of the curve approaching line is 1 points when the attacking side attack is greater than the defensive defense Force. When the defensive side is smaller than the attacker's attack, the curve is close to the straight line and the damage from each point is reduced to 0.5 points, in general terms. So using this damage formula, when we design character attributes and the growth of attributes, we try to control ATK more than Def, so that the results look good.

Game Damage Algorithm Division formula (3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.