leech seed tip and trick from yanfly

I just saw this vid

http://yanfly.moe/2016/04/06/tips-tricks-leech-seed-rpg-maker-mv/

but I have one doubt.

I need to use that lunatic script on common event page or in the leech seed status note page ?

If is on common event, how do I link one thing to another ? I didn't see in the script any mention to state, I think the effect will keep going on and on even after the state runs out.

Did I understand something wrong ?
You put the lunatic script code in the leech seed state itself.
Thanks @Fernyfer775

Original thread: https://forums.rpgmakerweb.com/threads/leech-seed-tip-and-trick-from-yanfly.93939/