Trouble with Slope movement

Hello, I was trying to develop a slope movement event based on this thread https://forums.rpgmakerweb.com/index.php?threads/stairs-movement-slopes.80761/

I thought I implemented the contents correctly but things aren't working as I thought they would. Every time I pass over a tile I designated as 13 or 14 there is no change in movement.

Spoiler
NZgy8cM.png

I am using MV as my software.
Your image isn't showing up for me.
Your image isn't showing up for me.

I tried fixing the image but if that doesn't work I uploaded it to Imgur here:
show us the map with the ID designations as well
do you keep pressing the buttons or do you only press them per step?
@BlackCatWorks player should be Player on line 2. Otherwise you're not getting the player position correctly, so you don't get the region ID, so...yeah...it all falls apart. Hope it helps! 🙂
@mathmaster74 @BlackCatWorks

Mathmaster spotted the error but not the real cause.
The only way this line could have happened with a lower case is if you had used the SCRIPT line of the control variable command.
But "Map Y of Player" is NOT a script line, it is a predefined line of the game data section.
You must NEVER type that into the control variable command - that will never work and is the reason why it failed.
It needs to be selected in the window of game data selection (the one that defaults to Map ID).
If it is selected there correctly then it will work.
@mathmaster74 @BlackCatWorks

Mathmaster spotted the error but not the real cause.
The only way this line could have happened with a lower case is if you had used the SCRIPT line of the control variable command.
But "Map Y of Player" is NOT a script line, it is a predefined line of the game data section.
You must NEVER type that into the control variable command - that will never work and is the reason why it failed.
It needs to be selected in the window of game data selection (the one that defaults to Map ID).
If it is selected there correctly then it will work.

This fixed it, thank you.
I also notice you are using variables 1 and 2. Be very careful, if you ever use plugins, to check if they use switches/variables, as they often use the very low numbered ones. Make sure you identify any that are used by plugins and give them names in your game (just create a dummy event with Control Variables / Control Switches, and give them names to indicate they're used by the plugin - once you've done that you can just delete the events and the variable/switch names will stay). That way you won't accidentally use them for something else, then be confused when weird things happen.

Original thread: https://forums.rpgmakerweb.com/threads/trouble-with-slope-movement.109572/