Not perfectly certain how it works, but there is a creature event called "healthchange", you could try something like this:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
if (creature:getStorageValue(1000) == 1) then)
return...