Sorry I don't use either of these template scripts but when my player gets hit... Im using my.enable_impact=on; my.event=health_stats;

health_stats()
{
remove health here and what to do next;
}

I noticed you have if event_type==event_impact...Im not sure this will work unless its in a seperate function... like
health_stats()
{
if(event_type==event_impact)
{
blah...blah;
}
}