Alert State Change Threshold

I am having an issue creating a threshold alert. I get the critical alert when a threshold is reached and the OK state when the value goes above it. My issue is I need to trigger the OK state change at a different value than the threshold.
I am trying to create a threshold alert but set a different value for the state change to OK.
Example:
My widget is at 100%
Trigger Critical alert when widget % drops to 80%
Trigger OK state when widget percent returns to 100%

Can you share your TICKscript, please?