Keybind''Shift'' for jumping, need to prevent jumping on impassable tiles. Help plz

So basically, when the player gets a specific item, common event,> if player has item, >if button''shift'' pressed >
if player faces up,down,left,right,> and set movement''jump'' selecting ''skip movement if lands you on impassable tile not working the same as it did in rpgmaker2k3.

i have Elibook plugin and Eli jumpsystem plugin loaded in game but ive never used any .js plugin files before.
if anyone knows anyway i can get the .js elibook jumpsystem working without getting errors that would be great,

Or without any .js plugins, and simply use region id or terrain tag to prevent the jump from happening if the player is standing on specific region(1-255) , It would be nice if i could simply setup a numbered region around all areas i dont want to permit a jump to prevent the player from jumping up and down buildings/walls/edge of maps.

The Elibook plugin works and allows the game to testplay, but as soon as i turn on the Eli jumpsystem, i get ''str.replaceALL,is not a function 'error' and/or some other Error, this jumpsystem plugin sounds like the perfect solution, but i cant seem to get it to work, perhaps im not setting it up properly to use?

Ive Wasted alot of time trying to figure this out on my own, if anyone has any solutions on how to set a region # to a common event to prevent a jump action when player is standing on the numbered region tile, so i can simply add region# tiles everywhere i dont want to permit a jump that would cause a landing on impassable tile.
Any Help would be greatly appreciated.
either fix for the plugin or another solution.
Thank you.
I'm not familiar with the jump system plugin, but you can achieve a jump with a common event that is always checking for your Shift input. If you want it to not land on an impassable tile, you'll need to do a bit more than just have the player character jump in the direction they are facing.

Here's an example of what you need to do in order to check if the tile you are going to land on is passable or not. Here, I've done it with a Region ID check but you can also do it with a Terrain Tag using the same "Get Location Info..." command. Using Region IDs will be more flexible, but Terrain Tags will be easier. Here, the value "252" is my "impassable Region ID."

1711971877868.png


That example shows what you'd do for Right and Left jumps, all you need is the Up and Down ones added to that using the Y coordinate instead of the X coordinate and you're good to go!

Note that this doesn't take into account other events, however, at least in RPG Maker MV (which functions almost exactly the same as MZ in most circumstances) if your player character lands in the space of an event, they will be able to move out of it freely.

Happy jumping 🙂
I'm not familiar with the jump system plugin, but you can achieve a jump with a common event that is always checking for your Shift input. If you want it to not land on an impassable tile, you'll need to do a bit more than just have the player character jump in the direction they are facing.

Here's an example of what you need to do in order to check if the tile you are going to land on is passable or not. Here, I've done it with a Region ID check but you can also do it with a Terrain Tag using the same "Get Location Info..." command. Using Region IDs will be more flexible, but Terrain Tags will be easier. Here, the value "252" is my "impassable Region ID."

View attachment 300465

That example shows what you'd do for Right and Left jumps, all you need is the Up and Down ones added to that using the Y coordinate instead of the X coordinate and you're good to go!

Note that this doesn't take into account other events, however, at least in RPG Maker MV (which functions almost exactly the same as MZ in most circumstances) if your player character lands in the space of an event, they will be able to move out of it freely.

Happy jumping 🙂
I Can totally See how this will work, but im currently trying to imitate and do what you did, im not 100% professional on variables/region Ids , i really like to be able to understand how just one of the jump directions work the way your showing, and i can figure out the other 3 by that example , once i understand it a bit more, i think i can figure this out from here, if i have any trouble i will ask for more help regarding you example.
Thank you so much
Sure, I can try to walk you through it a little bit.

The first part is detecting if the Shift button is pushed. If it is, then the rest of the processing can continue. If it's not, then nothing happens.

Next, the Player X and Player Y variables need to be set to their respective values in the Control Variables command. This will help you track where the player is at all times and it's honestly useful to do just in general for a lot of different things.

Then you need to use a Conditional Branch to also see what direction the player character is facing. The end of this branch is where you'll do the next direction, and so on.

After that, you want to either add to or subtract from the variable for the axis of the direction the character is facing. That value is going to be the same exact thing you set for your jump setting in the Movement Route. The reason why we do this is for the next step.

This part is the one where we use the Get Location Info command. Store this value in a separate variable, this one I've called "Region ID Variable" but you can call it whatever you want. Whether you are using Terrain Tags or Region IDs just make sure you stay consistent and know what's going on. You then plug in the variables for Player X and Player Y. With the Right facing direction, assuming the character is jumping 2 tiles to the right, we have added 2 to the variable so this is where the code finds out if that is a tile we are allowed to jump on!

Now for the Conditional Branch, we take that same "Region ID Variable" variable, or whatever you have decided to call it, and check if its value is one that we don't want the player character to be able to jump onto. In my case, "252" is considered an impassable tile. If you're using terrain tags, you may have set it to "2" or maybe your Region ID is "23." Like I said, just remain consistent with it! If it isn't that value, then it will let the player jump freely.

I hope that helps a little bit! I'm not sure what else I could add to help you understand. If you still find it a little hard to wrap your head around, it might be worth looking up some tutorials on variables and conditional branches as well as learning how the Get Location Info command works!
I Feel like im so close, but i still cant get this to work, 🙁
could you please try and explain another way? its driving me nuts

rpgmakerpic.png

this is where im at....

then id just like to use the layer 4 (coloured squares) to place everywhere the player shouldnt be able to jump to, or am i suppose to do this a different way?

What you writing and the way your explaining, sounds perfect and makes sense to me, idk what im doing wrong , but the 'shift button' wont jump at all anymore regardless if i use layer 4 to put block'7' around building edges and places i dont want someone to jump to

1712095653702.png

like this? to prevent someone from jumping on the building walls...
i feel like im so close to solving this, and im doing something thats probably very simply to fix, and i cant figure it out, ive tried so many different ways. and i always end up not being able to jump entirely

OMG...... I figured it out.. the event that i thought was giving me 'jumping boots' said
''you recieved jumping boots'' but in fact i had the actual item change adding the boots removed.
so everytime i was trying to test this out, it wasnt working because i didnt have the dam item i needed to jump, lmfao,
Thank you so much for you help, im extremely grateful.
Also, theres another thing i didnt even notice until today,

holding down Shift makes the hero run faster?''dashing''?
Is there a way to remove that?
when you click to move your always dashing,
id really like to slow the hero down while clicking to move, and maybe require a item to increase the movement speed if anything,
but always dashing when clicking to move around seems to be 2 fast. there a simple way to slow his assdown? lol
Now that i got jump to work, i have to use the region #7 Tile to highlight everywhere on the map i dont want the hero to be able to jump, i think the best way for this to work for me would be using terrain tags, so as i build maps its ready to work ,instead of having to highlight every possible ''no jump'' spot.
Double-post notice: @PalCheen8
You have your down and up directions reversed, by the way. Up is positive, down is negative, on the Y axis. On the X axis, right is positive and left is negative.

You also don't need to nest all of the directions in "Else" conditions. For the directions, you don't need them at all. Just check for one direction after the other. That will help your event page look cleaner.

Then, your Shift button may not have been working because you were checking if Page Up was pressed, not Shift.

You can prevent dashing on any map by pressing the "Disable Dashing" checkbox in the map properties.

This is more of a game design choice, but I would heavily recommend not showing up a text box every time the player wants to jump somewhere they aren't allowed to. It would get annoying very quickly. If you really want an indicator you can play a sound instead, but honestly I don't think you have to do anything. Most players will understand that they can't jump if the jump button isn't working.
You have your down and up directions reversed, by the way. Up is positive, down is negative, on the Y axis. On the X axis, right is positive and left is negative.

You also don't need to nest all of the directions in "Else" conditions. For the directions, you don't need them at all. Just check for one direction after the other. That will help your event page look cleaner.

Then, your Shift button may not have been working because you were checking if Page Up was pressed, not Shift.

You can prevent dashing on any map by pressing the "Disable Dashing" checkbox in the map properties.

This is more of a game design choice, but I would heavily recommend not showing up a text box every time the player wants to jump somewhere they aren't allowed to. It would get annoying very quickly. If you really want an indicator you can play a sound instead, but honestly I don't think you have to do anything. Most players will understand that they can't jump if the jump button isn't working.
Good call with sound effect instead of msg display for not being able to jump, also, i did fix the directions and cleaned up event page, and i never noticed disable dashing in the map properties,.
thank you so much for all your time n help replying to this, much appreciated!

Original thread: https://forums.rpgmakerweb.com/threads/keybindshift-for-jumping-need-to-prevent-jumping-on-impassable-tiles-help-plz.167371/