Make area acessible by vehicle but not on foot.

Hopefully this is a simple one this time. I have been looking on Google for a solution but not finding much.

I got Karberus' land vehicle plugin (no problems with that, everything is working fine)

Basically, I want the road (2) to be ONLY acessible by vehicle, (I have the road accesible on foot only (1) correct by placing MapID as 2 in the vehicle plugin), but vehicle ONLY is proving more difficult. placing the "x" on the tileset passage cuts it off to everything, and having it passable and overlaying the mapID 2 is making it both vehicle and foot. Bascially the overall point is to limit the car to the overworld, and the entrance tiles to the buildings are foot only.

Spoiler: Overworld Map
map.png
Per the rules for Plugin Support (which is where this belongs 😉 ), please provide links to the plugins you're asking for help with.

This plugin does not support what you're asking for - there's even a post in its thread from 8 years ago asking the same question.

You could try using Yanfly's Region Restrictions with its Vehicle Restrictions extension. The land vehicle replaces the boat, so using Yanfly's Boat Restrict notetags might work. Or, since this plugin already checks regions for passability, they might conflict with each other.

That's my best suggestion before getting into someone making an extension/modification of the land vehicle plugin.
Thanks Like I said, I didn't really see the plugin itself as an issue, so I will look into the Region Restiction plugin
Triacontane has a really extensive vehicle passability plugin. It's just in Japanese. If you're using Chrome you could right click the page and tell it to translate it.

Thanks Like I said, I didn't really see the plugin itself as an issue
I mean, you only have land vehicles because of the plugin 😉
I mean, you only have land vehicles because of the plugin 😉
Lol, got me there.

But seriously, this isn't so much about the vehicle (like I said I'm 100% happy with that), it's more about limiting the walking character to the squares marked "1" without making them completely impassable.
But seriously, this isn't so much about the vehicle (like I said I'm 100% happy with that), it's more about limiting the walking character to the squares marked "1" without making them completely impassable.
I understand, but you're looking at it backwards.

Your difficulty isn't in limiting the player. You can do that with tiles of X passability. You can also do it with region restriction plugins like I mentioned above, but by default those make no distinction between "the player character" and "the player character with a vehicle graphic."

If you just use Yanfly's Region Restrictions to limit the player, it will limit them all of the time.

Your question is specifically about granting passability to the land vehicle.

But, like, whatevs...you've been offered solutions to try for your question. If you don't want to believe the people giving them to you, that's your prerogative 😛
I guess you can do it both by granting passage to the player while in vehicle or stopping passage for a player without one. This plugin will do the latter:
JavaScript:
void ((alias) => {
    Game_Player.prototype.isMapPassable = function (x, y, d) {
        if (!this.isInVehicle() && $gameMap.regionId($gameMap.roundXWithDirection(x, d), $gameMap.roundYWithDirection(y, d)) === 2) return false;
        else return alias.call(this, x, y, d);
    }
})(Game_Player.prototype.isMapPassable);
It should stop the player from entering tiles with region id 2, but only if they're not in a vehicle.
I guess you can do it both by granting passage to the player while in vehicle or stopping passage for a player without one. This plugin will do the latter:
JavaScript:
void ((alias) => {
    Game_Player.prototype.isMapPassable = function (x, y, d) {
        if (!this.isInVehicle() && $gameMap.regionId($gameMap.roundXWithDirection(x, d), $gameMap.roundYWithDirection(y, d)) === 2) return false;
        else return alias.call(this, x, y, d);
    }
})(Game_Player.prototype.isMapPassable);
It should stop the player from entering tiles with region id 2, but only if they're not in a vehicle.
Thanks, it worked perfectly 🙂👍

Original thread: https://forums.rpgmakerweb.com/threads/make-area-acessible-by-vehicle-but-not-on-foot.168069/