Elemental Shield

So I created an ability called X shield, where X is the element type. When the spell is cast, it adds a state that absorbs the element type.

How can I make it so after the shield adsorbs 1 spell's damage, it removes itself?
Use this to absorb. https://yanflychannel.wordpress.com/rmvxa/battle-scripts/element-absorb/

To make it disappear, just set remove state(number of absorb state) in the spells notetag.
Use this to absorb. https://yanflychannel.wordpress.com/rmvxa/battle-scripts/element-absorb/

To make it disappear, just set remove state(number of absorb state) in the spells notetag.
Thanks. Like this:

remove state(229) ?

If so, didn't work

-Update-

I managed to just add a remove state of the buff in the skills effects. This is working.

Original thread: https://forums.rpgmakerweb.com/threads/elemental-shield.37074/