Community BBS

Formula Samples

Sample damage formula (basic physical attack)

started by ponApp / 2026-11-06 19:26:27 / replies 1

  1. #1 ponApp Official ID: official
    Sharing the most basic physical damage formula that comes with the tool.

    [Physical damage - basic]
    USER.STR.MAX * 2 - TGT.DEF.MAX

    Meaning:
    - USER.STR.MAX = attacker's STR (max including equipment & states)
    - TGT.DEF.MAX = target's DEF
    - Damage = 2 * attacker STR - target DEF

    [Variation: add randomness]
    USER.STR.MAX * 2 - TGT.DEF.MAX + randi() % 10 - 5

    [Variation: berserk based on HP ratio]
    USER.STR.MAX * (3 - USER.HP.RATE * 2) - TGT.DEF.MAX

    Please share your own formula ideas too!

Post a Reply


* Please wait at least 30 seconds between posts. NG word filter, URL count limit, and IP ban apply.

← Back to Thread List