Map Editing With Script?

● ARCHIVED · READ-ONLY
Started by Arithon 16 posts View original ↗
  1. Is it possible to edit the map through a script? As in adding, removing, changing tiles with code.
  2. I've moved this thread to Script Requests. Thank you.

  3. slimmmeiske2 said:
    [move]Script Requests[/move]
    I didn't post it in requests because I wasn't requesting a script, I was asking if it was possible.
  4. Well the forum where you posted this (RGGS3 Scripts) is for posting your completed scripts, not questions about scripting. I guess I'll move this to Learning Ruby then.
  5. slimmmeiske2 said:
    Well the forum where you posted this (RGGS3 Scripts) is for posting your completed scripts, not questions about scripting. I guess I'll move this to Learning Ruby then.
    Never mind, I wont bother using the program at all. I wasn't asking for a script, or trying to learn scripting. I was asking if that was possible to do in RPG Maker. If you ask a car dealer if you can play CDs in a car do they send you to the factory...
  6. it is possible, but you'll need a script - it is not a simple command to change the map.
    There are already three such scripts in existance, from Tsukihime, Vlue and Fomar.
    Each of those scripts has different advantages and disadvantages, which one is best depends on what exactly you want to do.
  7. I guess it would be possible, but why would you do that? If I recall correctly the way the maps are render in game is by reading a huge array which contains tons of integers, each being a tile in the map editor. Not 100% sure since I've never messed with it.
  8. Andar said:
    it is possible, but you'll need a script - it is not a simple command to change the map.
    There are already three such scripts in existance, from Tsukihime, Vlue and Fomar.
    Each of those scripts has different advantages and disadvantages, which one is best depends on what exactly you want to do.
    Thank you. I can figure out how to do it, but if it wasn't possible at all then there is no point to trying to do it, I'd just be wasting my time.
    I'll check out those other scripts sometime to get some ideas about it.
  9. MushroomCake28 said:
    I guess it would be possible, but why would you do that? If I recall correctly the way the maps are render in game is by reading a huge array which contains tons of integers, each being a tile in the map editor. Not 100% sure since I've never messed with it.
    I wanted to make a dungeon with a randomized layout. Not a full map like I saw in some other threads, just a dungeon. If I have to design the dungeon myself or make multiple dungeons and randomize the entry to them then it wouldn't really be random.
  10. keep in mind that a "random" dungeon is anything but random - you'll need to restrict the options for each tile based on what is already there. That is the reason why most existing random dungeon generators work with partial maps that are just shuffled together, and for that vlue's script would be the best basis.

    completely random would be something like a tree growing in the middle of an ocean or a water tile next to a lava tile and so on.
  11. Andar said:
    keep in mind that a "random" dungeon is anything but random - you'll need to restrict the options for each tile based on what is already there. That is the reason why most existing random dungeon generators work with partial maps that are just shuffled together, and for that vlue's script would be the best basis.

    completely random would be something like a tree growing in the middle of an ocean or a water tile next to a lava tile and so on.
    Oh I know that, I was planning on starting at one point and choosing a random tile based off of possible ones, then moving to the next tile and choosing while comparing it to the previous tile and so on then moving to a new row below the first one and comparing not only to what was behind it but above it as well. It would be random but still work, rather than just a mess of random tiles.
  12. You just need to reverse engineering the Tilemap structure which I still have no idea up to this day. But theoretically it's possible. If you managed to break it down, I'd happy to learn as well.

    Edit:
    Arithon said:
    Never mind, I wont bother using the program at all. I wasn't asking for a script, or trying to learn scripting. I was asking if that was possible to do in RPG Maker.
    You're asking if it's possible in RM which technically learning rgssx.
  13. TheoAllen said:
    You just need to reverse engineering the Tilemap structure which I still have no idea up to this day. But theoretically it's possible. If you managed to break it down, I'd happy to learn as well.

    Edit:

    You're asking if it's possible in RM which technically learning rgssx.
    Not quite, if I had asked "How do you do this?" then it would be suitable for learning, but I only asked if it was possible. I didn't want to waste time looking into scripting if it wasn't even possible to do it. For example there are things you can do in C# that cant be done in Unity even though you are using C# because Unity itself doesn't allow it. So I had to check if it was possible first since the usual way would be to design the maps in the editor.
  14. The problem is, there is not much available subforum for your kind of question. It doesn't belong to editor support, you're not requesting script, nor this is a "how to" question. But you created a new thread anyway. Your best bet would be in Ruby/RGSSx Question That Doesn't Deserve Their Own Thread (but it might also limit the visibility of your question). Why felt so offended?

    But anyway, you already have your question answered.
  15. TheoAllen said:
    The problem is, there is not much available subforum for your kind of question. It doesn't belong to editor support, you're not requesting script, nor this is a "how to" question. But you created a new thread anyway. Your best bet would be in Ruby/RGSSx Question That Doesn't Deserve Their Own Thread (but it might also limit the visibility of your question). Why felt so offended?

    But anyway, you already have your question answered.
    It just annoyed me that they moved it to a request forum when it said "Is it possible?" not "Is there a script for this?" I posted in a forum for scripts because it was a question about scripts.
    But yeah it is answered now.
  16. Arithon said:
    I posted in a forum for scripts because it was a question about scripts.
    You originally posted in a forum for presenting finished scripts, not in a forum where questions about scripts can be asked - that forum is for presentation only, nothing else, so that everyone looking for an existing and finished script knows where to look and doesn't have to scroll through hundreds of questions.