Skipping to the end of a skill in Yanfly's action sequences...

Is there any way to skip to the end of a skill in Yanfly's Action Sequences?


For example, I'd like to have the actor refrain from attacking a target if the target has a certain state on them without losing their turn:


<target action>


if target.isStateAffected(21)


<----(what would go here?)


end


</target action>


The problem is that the remainder of the target action includes some other if else statements for handling the attack differently depending upon the target and the state of the target. Ergo, even forcing the actor to perform an instant action via common event that won't consume the turn won't work


Is there any way to simply skip to the end of the sequence?
I think for this you could use "Jump to Label" and "Label". 


For example... 


<target action>


if target.isStateAffected(21)


Jump to Label: End


[Information for using your skill which you're skipping by using the Jump to Label] 


Label: End


end


</target action>


Maybe that would work? 
I think for this you could use "Jump to Label" and "Label". 


For example... 


<target action>


if target.isStateAffected(21)


Jump to Label: End


[Information for using your skill which you're skipping by using the Jump to Label] 


Label: End


end


</target action>


Maybe that would work? 





YES! That was the right verbage for it!


I had tried goto: label but that didn't do it. This works perfectly!


Though, even if I have it skip from setup action to finish action, it's still spending the resource, hmm...


I can cheese it by just having this conditional statement refund the MP, but it'd be nice if I didn't have to worry about that for every conditional.
That's easy to fix, also. 


Before Jump to Label, just add something in to give back the Mana/TP/etc. 

Original thread: https://forums.rpgmakerweb.com/threads/skipping-to-the-end-of-a-skill-in-yanflys-action-sequences.58583/