Trying to make costum skill

I am having trouble with making my skill formula work.

I have states called Seed ( Enemy ) and Seed ( Ally )

When enemy is seeded, and my character uses a skill ( Bubble blast ) It makes the seeds grow

and applies state Poison.

I have no idea how to make the formula work.

I know you can check state Seed ( Enemy ) ID=7

b.state?(7) ? 

But after that how do I remove that state ID=7 and replace it with state ID=2 (Poison)
First of all, what do you want to happen if the skill is used on an enemy and that enemy does not have state 7?  Any sort of 'if' clause needs an 'else'.  Without that information it is more difficult to make a concrete suggestion.

EDIT

Actually, just try this

if b.state?(7); b.remove_state(7); b.add_state(2); else; whatever_you_want_to_happen_here; end
Oh great, thank you so much!

Yes the meaning of skill was

If state (7) remove state (7) add state (2) else do just damage.

Thank you so much once again!

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-costum-skill.41715/