How does RPG handle shield, parry, dodge?

I broke it down here Delay in dealing damage from enemy to player