Skill that can only be used after a certain skill?

I've been trying to make a skill that can only be used after a certain skill, so let's say skill A can only be after skill B, how do i do that?
Make skill A add a state to the user.


Add a condition on skill B that it can only be used when the state is applied.


The conditioning can be achieved using a script such as this.
Alternatively, if you'd rather avoid scripting, add an effect to skill A: "Add State" - let's call it "B-skill".
Then add a state called B-skill, which adds the Skill B. This state must remove itself at end of combat, obviously.

Then, optionally, skill B has the Effect of removing state B-Skill to clean it up.

I *think* that should work, at least...

If skill A is a skill which targets a monster, of course, you'll instead want to create a Common Event which gives State B-skill to the relevant party member.
Ah i see, i got it working thank you both!

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-can-only-be-used-after-a-certain-skill.33123/