Combat mechanics - a study
Posted: Wed Jul 07, 2021 3:25 pm
For a player attacking a monster
Roll chance to dodge (some cap possibly) (monster dodge * .9)
If success -> dodged, end
if fail -> Roll acc vs AC
if success -> miss, end
if hit -> roll crit
if success -> roll critical damage
if fail -> roll damage
if damage <= dr -> hit glances, end
if damage > dr -> hit is damage -dr
for a monster attacking a player
Roll acc vs ac
if success -> missed, end
if fail -> roll acc vs dodge
if success -> dodged, end
if fail -> roll damage
if damage <= DR -> hit glances, end
if damage > dr -> hit is damage -dr
Roll chance to dodge (some cap possibly) (monster dodge * .9)
If success -> dodged, end
if fail -> Roll acc vs AC
if success -> miss, end
if hit -> roll crit
if success -> roll critical damage
if fail -> roll damage
if damage <= dr -> hit glances, end
if damage > dr -> hit is damage -dr
for a monster attacking a player
Roll acc vs ac
if success -> missed, end
if fail -> roll acc vs dodge
if success -> dodged, end
if fail -> roll damage
if damage <= DR -> hit glances, end
if damage > dr -> hit is damage -dr