- 16
- Posts
- 11
- Years
- The Netherlands
- Seen Mar 2, 2025
Hey all!
I've seen a lot of games implementing sideways stairs lately using events that will check for player input on the tiles and then move accordingly(I had this myself until a few days ago) and I thought that there should be an easier way, since the events may also hinder the complete overview in RPG Maker.
So I thought of a way to create terrain tags for sideways stairs with specific movements, so that these stair tiles won't need events anymore. I created this in Essentials version 16.1 and haven't tested it in any other. At the moment, I have no interest in trying to make this for Essentials version 17, but it shouldn't be much different, so you can still try if that works.
First, you'll want to create 2 new terrain tags. For this, in the Scripts part of RPG Maker, go to PBTerrain and create 2 new terrain tags there(in a clean copy this should be done after Bridge = 15, otherwise add them after your last terrain tag). Lets call the first StairsLeftUp and the second StairsRightUp and remember the numbers of the tags. In my case, StairsLeftUp has tag 24 and StairsRightUp has tag 25.
Lets assign these tags to the correct tiles now. First, close RPG Maker as the tags may not be saved correctly when it's open. Now, you want to run Editor.exe in your project's root folder and find Set Terrain Tags. Go the the correct tileset and find your stair tiles.
Now put the terrain tags as on the picture here. Since I had tag 24 for StairsLeftUp, I put 24 on the stairs where the left-side is up. You should change the 24 and 25 to your own tags accordingly.
Now there's just 1 thing left to do and that is to change to movement of the player when the player is on one of those tiles. For this, open RPG Maker XP and go the Scripts part and then to Game_Player.
In this, find move_left using CTRL+F or just scroll to line 90(or something close to that) and replace the method with the move_left method found in the attachment and do the same for the move_right method.
In these methods, the terrain tag numbers are used again, so if you didn't use 24 and 25 as terrain tags, you'll need to change these accordingly.(These are only found in the if- and elsif-statements of the code)
Right now the stairs should be working correctly, so I recommend you test them to make sure they are working for you.
I hope this works out for you guys and if you have any questions, just ask them here or PM me!
I've seen a lot of games implementing sideways stairs lately using events that will check for player input on the tiles and then move accordingly(I had this myself until a few days ago) and I thought that there should be an easier way, since the events may also hinder the complete overview in RPG Maker.
So I thought of a way to create terrain tags for sideways stairs with specific movements, so that these stair tiles won't need events anymore. I created this in Essentials version 16.1 and haven't tested it in any other. At the moment, I have no interest in trying to make this for Essentials version 17, but it shouldn't be much different, so you can still try if that works.
First, you'll want to create 2 new terrain tags. For this, in the Scripts part of RPG Maker, go to PBTerrain and create 2 new terrain tags there(in a clean copy this should be done after Bridge = 15, otherwise add them after your last terrain tag). Lets call the first StairsLeftUp and the second StairsRightUp and remember the numbers of the tags. In my case, StairsLeftUp has tag 24 and StairsRightUp has tag 25.
Lets assign these tags to the correct tiles now. First, close RPG Maker as the tags may not be saved correctly when it's open. Now, you want to run Editor.exe in your project's root folder and find Set Terrain Tags. Go the the correct tileset and find your stair tiles.
Spoiler:
![[PokeCommunity.com] Sideways Stairs without using events [PokeCommunity.com] Sideways Stairs without using events](https://i.imgur.com/dVwRAaP.png)
Now put the terrain tags as on the picture here. Since I had tag 24 for StairsLeftUp, I put 24 on the stairs where the left-side is up. You should change the 24 and 25 to your own tags accordingly.
Now there's just 1 thing left to do and that is to change to movement of the player when the player is on one of those tiles. For this, open RPG Maker XP and go the Scripts part and then to Game_Player.
In this, find move_left using CTRL+F or just scroll to line 90(or something close to that) and replace the method with the move_left method found in the attachment and do the same for the move_right method.
In these methods, the terrain tag numbers are used again, so if you didn't use 24 and 25 as terrain tags, you'll need to change these accordingly.(These are only found in the if- and elsif-statements of the code)
Right now the stairs should be working correctly, so I recommend you test them to make sure they are working for you.
I hope this works out for you guys and if you have any questions, just ask them here or PM me!