Scripts, Tutorials & Tools This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Ad Content
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old September 3rd, 2017 (1:52 AM).
Marty152's Avatar
Marty152 Marty152 is offline
    Join Date: May 2013
    Location: The Netherlands
    Gender: Male
    Posts: 16
    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!
    Attached Files
    File Type: txt Stairs.txt‎ (1.8 KB, 133 views) (Save to Dropbox)
    Reply With Quote
      #2   Link to this post, but load the entire thread.  
    Old September 3rd, 2017 (1:10 PM).
    Jonas930's Avatar
    Jonas930 Jonas930 is offline
      Join Date: Dec 2013
      Location: Los Angeles
      Gender: Male
      Nature: Lax
      Posts: 27
      That is what i looked for! It works very well in my game. Thanks
      Reply With Quote
        #3   Link to this post, but load the entire thread.  
      Old April 26th, 2018 (1:44 AM).
      Seedonator's Avatar
      Seedonator Seedonator is offline
        Join Date: Apr 2018
        Posts: 66
        it doesnt work... im on version 17 so maybe thats why
        Lookin' for a team to help me with Pokémon Brick Bronze Remake
        Reply With Quote
          #4   Link to this post, but load the entire thread.  
        Old 1 Week Ago (11:53 AM).
        Clackalas27's Avatar
        Clackalas27 Clackalas27 is offline
          Join Date: Jan 2019
          Location: Milky Way Galaxy
          Age: 17
          Gender: Male
          Posts: 1
          It works on 17.2 thanks alot :smile:
          Reply With Quote

          Quick Reply

          Join the conversation!

          Create an account to post a reply in this thread, participate in other discussions, and more!

          Create a PokéCommunity Account
          Ad Content
          Thread Tools

          Posting Rules
          You may not post new threads
          You may not post replies
          You may not post attachments
          You may not edit your posts

          BB code is On
          Smilies are On
          [IMG] code is On
          HTML code is Off

          Forum Jump

          All times are GMT -8. The time now is 6:36 PM.