I think you could do it with a rule like:
"Every time a creature is attacked by an enemy, affected by an enemy spell, or forced to make a saving throw from enemy, she gains 5 points of damage reduction for future attacks. These points stack, but expire when it is the creature's turn to act."...