Yanfly Lunatic States Or perhaps another solution?

I am trying to create a jump state, that when it runs out will cast a spell. Because I am also using Yami's ATB with a few of Double x's fix's  and add ons I cannot use Tsukihime's amazing script which appears to do this.

Basically I am wondering can I use some kind of <leave effect: string> to execute a force action or have a specific skill execute as the state ends.

Anyone know if this is possibile? I had one idea of having her jump and then forcing a charged skill but the common event force battle action does not force the charge time on my skills. The idea is a delayed jump with extra damage, yes a complete rip off of FF4 jump. FF4 did this skill the best and most effective, it is clearly not easy to do. Anyone know if there is something I can try? Thanks for the help. Links to relevant scripts below.

Lunatic states
https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-states/
Tsukihimes
http://www.rpgmakervxace.net/topic/6552-skill-casting-time/
Try this:

<leave effect>force_action(skill_id, target_index)BattleManager.force_action(self)</leave effect>If it doesn't work, you may want to try DoubleX RMVXA State Triggers with this:

<remove state trigger: stc1, sta4>Where sta4 is:

def self.sta4(battler) battler.force_action(skill_id, target_index) BattleManager.force_action(battler) endI hope either will work 🙂
Thank you so much! You are seriously so helpful hahaha. I don't know what I would do without DoubleX's help 🙂 I am going to try these out! Your state script is amazing! I don't 100% understand it but its definitely functioning correctly thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-lunatic-states-or-perhaps-another-solution.52950/