I need help with a script

I need help with a script that should have the health regeneration real high. Here is the script I used but doesn’t work.

Trigger: when a unit enters a region
if (triggering region) = (region name)
then do (set regeneration of health) as 999

Do a script where Hp regen is another attribute so every second hp goes up by that attributes number