How to make it when one status ends, another does too?

Hello, I'm a newbie experimenting with Rpg Maker VX ACE and want to make "Restraining hold" skill that inflicts paralysis, but also paralyzes the user for a few turns, when enough damage is dealt to the user (not the target) or enough turns have elapsed, the status ends and the target's status ends too.

I've only seen something like this done once before, and it's in the Lisa fangame "Hopeful in Joyful" with the "Gripped" and "Gripping" status effects that pretty much do exactly what I described.
Untitled 2023-02-11 16-51-59_Moment (2).jpg

Any help is appreciated
Moved to: RGSS3 Script Requests

Here's one way
Moved to: RGSS3 Script Requests

Here's one way
Ah, thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-it-when-one-status-ends-another-does-too.154896/