Yanfly's Jump Not Working (Resolved)

I watched Yanfly's Tips & Tricks video "Jump," and tried to make a Jump skill. Here's my code for the Jump skill:


// Action Sequences


// Setup: Jump animation.


<Setup Action>


display action


camera focus: user


zoom: 150%


perform start


wait: 60


se: Wind1, 80, 150


float user: 495%, 20


opacity user: 0%, 20


wait for float


</Setup Action>


// Whole: Ensure nothing happens.


<Whole Action>


</Whole Action>


// Target: Flag the target.


<Target Action>


action effect


</Target Action>


// Follow: Apply Jump state to user.


<Follow Action>


add state 61: user


</Follow Action>


// Finish: Without landing.


<Finish Action>


clear battle log


reset camera


reset zoom


wait for camera


wait for zoom


</Finish Action>


Here's my code for the landing skill:


// Action Sequence


// Setup: Setup landing spot.


<Setup Action>


clear battle log


display action


immortal: targets, true


move user: target, base, 1


</Setup Action>


// Whole: Land and deal damage to all targets.


<Whole Action>


camera focus: target


zoom: 150%


wait: 60


motion attack: user


opacity user: 100%, 1


float user: 0, 20


wait: 10


animation 2: targets


action effect


shake screen: 5, 5, 5


wait for animation


</Whole Action>


// Target: Ensure nothing happens.


<Target Action>


</Target Action>


// Follow: Reset everything.


<Follow Action>


reset camera


reset zoom


jump user: 200%, 30


move user: return, 30


wait for movement


</Follow Action>


And, here's my code for the state:


// Selection Control


<Cannot Select: All>


// Buffs & States Core


<Custom Leave Effect>


// Get the landing skill.


var skill = 92;


// Get the last targeted index.


var target = -2;


// Queue the forced action.


BattleManager.queueForceAction(user, skill, target);


</Custom Leave Effect>


And I have ensured that I have all the plugins required. Does anybody see anything wrong with my code?


The tips & tricks video is right here:


http://yanfly.moe/2016/07/02/tips-tricks-jump-final-fantasy-4-rpg-maker-mv/#more-3239
The code looks good. You set up all the skills and the state correctly? And what is your issue exactly?
The code looks good. You set up all the skills and the state correctly? And what is your issue exactly?

Oops, forgot that part. The jumping skill works fine, but after the jump state disappears, the fall skill is never used and so the user is still stuck in the air but can attack and be attacked. Both skills are set as the skill type "Ability," with the target as 1 enemy, and the jump skill has the hit type Certain Hit, and the fall skill is a Physical Attack. The state has the duration set as "Turn End," with the duration as 2 turns, and disappears at battle end, and has the "Cannot Move" restriction.
I set mine up exactly to the video but my game crashes saying "Undefined is not a function".


I watched the video several times and made sure I did everything correctly, from setting the notes correctly to the right skill etc.


It just isn't working no matter what I do.
Oops, forgot that part. The jumping skill works fine, but after the jump state disappears, the fall skill is never used and so the user is still stuck in the air but can attack and be attacked. Both skills are set as the skill type "Ability," with the target as 1 enemy, and the jump skill has the hit type Certain Hit, and the fall skill is a Physical Attack. The state has the duration set as "Turn End," with the duration as 2 turns, and disappears at battle end, and has the "Cannot Move" restriction.

It sounds like your land skill is not being called when the jump state wears off. Double check your skill number to make sure it's the correct one.


Also if you set the land skill type to "None", the land skill is unselectable but still can be referenced and used when the state wears off.

I set mine up exactly to the video but my game crashes saying "Undefined is not a function".


I watched the video several times and made sure I did everything correctly, from setting the notes correctly to the right skill etc.


It just isn't working no matter what I do.

Even without seeing your error console I'm guessing you are missing one or more of the required plugins. You need all of the required plugins up to date.


Battle Engine Core


Action Sequence 1


Action Sequence 2


Action Sequence 3  (note that if you do not want to use the camera effects, they can be removed from code and you do not need this one)


Buffs and States Core


Target Core


Selection Control


If you've got everything up to date and placed correctly, hit F8 and drop a screenshot of your error log here and we'll take a look at it.
It sounds like your land skill is not being called when the jump state wears off. Double check your skill number to make sure it's the correct one.


Also if you set the land skill type to "None", the land skill is unselectable but still can be referenced and used when the state wears off.

I tried setting the land skill type to None, and it still didn't work. And I've double checked that about 13 times now. In fact, I've purposefully set it to the basic attack skill index and it still didn't work.
My next suggestion would be to make sure all of the required plugins are up to date.


Also setting the land skill to the basic attack wouldn't bring the actor back down, they would just do basic attack damage and then become selectable by the enemy again, while still in the air. Is the land skill showing the correct animation and dealing damage correctly when called and the actor just doesn't return to the screen?
My next suggestion would be to make sure all of the required plugins are up to date.


Also setting the land skill to the basic attack wouldn't bring the actor back down, they would just do basic attack damage and then become selectable by the enemy again, while still in the air. Is the land skill showing the correct animation and dealing damage correctly when called and the actor just doesn't return to the screen?

1. I've triple checked that, too.


2. It doesn't show the animation or deal damage, either.
Hmmm. Well it's definately a problem with the leave effect, I'm just not sure what.


Which battle system are you using? ATB,CTB,DTB?
The only other thing I would suggest trying is to create a new project using only the required plugins, recreate the skills and state, and see if that works.
Apparently, the buffs and states core has to be sandwiched below Battle Engine Core and above Target Core, and the battle system has to be DTB.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-jump-not-working-resolved.64657/