SilverySoul

Licensed
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About SilverySoul

  • Rank
    Fledgling

MMORPGKIT

  • Specialty
    Level Design
    Interface
  1. Have I miss understood something or is the document outdated info about how accuracy, evasion and hit chance is calculated? This is what DefaultGameplayRule script says: (line 101 ->) float hitChance = 2f; if (attackerAcc != 0 && dmgReceiverEva != 0) hitChance *= (attackerAcc / (attackerAcc + dmgReceiverEva)); if (attackerLvl != 0 && dmgReceiverLvl != 0) hitChance *= ((float)attackerLvl / (float)(attackerLvl + dmgReceiverLvl)); Document says: Hit chance = 2 * (10 / (10 + 30)) = 0.5 Default game play rules is modifying hit change with acc vs eva and level difference, so the documentation should say something like: Hit chance = 2 *(attackerAcc / (attackerAcc + dmgReceiverEva)) *(attackerLvl / (attackerLvl + dmgReceiverLvl)) Example: attackerAcc = 10 dmgReceiverEva = 30 attackerLvl = 10 dmgReceiverLvl = 10 Hit chance: 2 * (10 / (10 + 30) * (10 / (10 + 10) = 0.25 Then second character will receives damage if random result from 0 to 1 <= 0.25