MV Tiles A drawn above the player when marked with region 255

I'm using RPG Maker MV (actually, also RPG Maker MZ) and I’d like some help with the following:

I want tiles from group A (A1 to A5) to be drawn above the player only when they are marked with a specific region, in this case region 255.

I’ve already managed to make the passability work, but what I’m trying now is to make those same tiles appear graphically above the hero, as if they were on an upper layer, even though they’re from group A.

I tried adapting this using AI-generated plugins in all sorts of ways, but it didn’t work. Below is my current code, which only handles passability.


Spoiler
JavaScript:
/*:
 * @plugindesc Libera passabilidade para tiles A marcados com uma Região específica. (Apenas função de passagem)
 * @author ChatGPT
 * @param RegionID
 * @type number
 * @default 255
 * @desc Região que ativa a passagem livre.
 */

(function() {
    const parameters = PluginManager.parameters('FixWithRegion'); // Nome deve ser o mesmo do arquivo .js
    const REGION_ID = Number(parameters.RegionID || 255);

    // Permite passagem onde houver a Região definida
    const _Game_Map_checkPassage = Game_Map.prototype.checkPassage;
    Game_Map.prototype.checkPassage = function(x, y, bit) {
        if (this.regionId(x, y) === REGION_ID) {
            return true;
        }
        return _Game_Map_checkPassage.call(this, x, y, bit);
    };
})();
use AI to make plugins, your on your own as we don't help you.
AI generate code, and cannot make code to be inspected to work.

if you need a plugin, its best to request one as human coding is
far better as AI doesn't know the core.

also specify what engine you use, so they can make it for you.

so good luck.
I'm using RPG Maker MV (actually, also RPG Maker MZ) and I’d like some help with the following:

I want tiles from group A (A1 to A5) to be drawn above the player only when they are marked with a specific region, in this case region 255.

I’ve already managed to make the passability work, but what I’m trying now is to make those same tiles appear graphically above the hero, as if they were on an upper layer, even though they’re from group A.

I tried adapting this using AI-generated plugins in all sorts of ways, but it didn’t work. Below is my current code, which only handles passability.

Why don't you ask your AI how to do it?
  1. I tried to make the plugin using AI because I'm not a programmer — I just need a quick solution.
  2. If I'm here, it's because the AI was too incompetent, to the point where I had to come here for support. I don't care if everything needs to be rewritten — I just need the plugin to work.
  3. If you don’t want to help me just because the base code was made by AI, just say so and we’ll end the support right here, end of story.
  1. I tried to make the plugin using AI because I'm not a programmer — I just need a quick solution.
  2. If I'm here, it's because the AI was too incompetent, to the point where I had to come here for support. I don't care if everything needs to be rewritten — I just need the plugin to work.
This is the crux of the problem. If you couldn't do it on your own, your first stop should've been here or another support oriented place. No one wants to be the backup for when ChatGPT screws up, as it makes them feel like you don't respect them.

That said, your attitude is really poor here, so I don't know if anyone is gonna want to take the time to help now.
If you don’t want to help create the plugin, just lock the thread and I’ll leave the forum for good, that’s it.

I don’t want to argue unnecessarily since the goal was simply to get the plugin working. It doesn’t matter if it came flawed from an AI or not — I just needed the system to work.

Ever heard the saying “the customer is always right”? After this, what kind of impression do you think I’ll have of this forum? I’ll simply leave and won’t recommend it to anyone, ever.

Think about that.
Guys don't be rude to customers. They'll cut our salary.
EDIT: Seems like they edited their post.
Look, it's clear we're not understanding each other here.
Continuing this discussion isn't going to get us anywhere and is turning into a waste of time.
Could the staff please lock/delete/etc. the thread?



I feel generous, so: The OverpassTile.js plugin that comes with your copy of MV does what you want.

This was my first impression of the forum, and sadly, it hasn’t been a good one.

We can see when you joined (2019) and we can see what you've posted, you've clearly interacted with more than enough people on this site that this isn't your "first impression". And mods can change back any edits you do to cover yourself up. Checkmate.

This thread is being closed as requested.

Original thread: https://forums.rpgmakerweb.com/threads/tiles-a-drawn-above-the-player-when-marked-with-region-255.179341/