I have never experimented with this before, but if you want to make it so the effect only lasts for a limited time perhaps you would use some sort of parallel process or timer to automatically turn it off? I’m not too sure, unfortunately.
(Hm, so maybe connecting the event to a parallel process switch or something? Okay, I'll give that a shot. Thanks for replying!)