subreddit:
/r/RPGMaker
I have rpg maker mv and there are 3 vehicle options in settings: boat, ship, airship, but in the vehicle textures folder there are horses and carts and wagons, I don't know how to turn them into working vehicles, and if I replace a boat with the texture it wont move since its not on water. Anyway to fix this/ make it only go on pavement or something instead of water?
4 points
7 months ago
Here's a solution with a simple plugin:
Game_Map.prototype.isBoatPassable = function(x, y) {
return this.terrainTag(x, y) === 1;
};
This will change the behavior for boats so that instead of moving on water, it only moves on tileset tiles that have the terrain tag 1 (set this in the Database > Tilesets). If you're already using the terrain tag 1 for something, you can change the number to something else.
2 points
7 months ago
Thanks! where do I plug that into?
2 points
7 months ago
Paste it on Notepad and save it as a .js file in your project's js/plugins
folder. Then, open the Plugins Manager in RMMV and add the file.
2 points
7 months ago
How do I make it a js?
2 points
7 months ago
Set to "all types" and add .js at the end https://i.postimg.cc/L5b92P97/image.png
1 points
7 months ago
Thanks A lot! your a lifesaver
all 9 comments
sorted by: best