MZ [Visustella Skills & States Core] Help writing a couple of codes.

Using Visustella Skills & States Core I want to do two things that I'm having a bit of difficulty figuring out. So for one when a state is removed I want to add a formula that will damage the target that removed the state using this notetag:
Spoiler
<JS On Erase State>
code
code
</JS On Erase State>

Then for another formula that adds another state when it expires using this notetag:
Spoiler
<JS On Expire State>
code
code
</JS On Expire State>

Could anyone help me out on this?
Hey @Uzuki can you post in this thread instead. Thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/visustella-skills-states-core-help-writing-a-couple-of-codes.125875/