HR envelope ,event based,
but not tested ...
posted on request, more or less, didnt check if its working properly after I added some change ( too lazy )
see if its working or if it needs to be modified for your purpose or just ignore it..
its placed inside an ins so you can see how its ment to be triggered