Hello, I am trying to enable movement along certain tiles (which are normally water tiles that cannot be passed through) when one switch is active, and when that same switch is active I want certain tiles which are normally passable to become collisions. I was thinking this is something I could accomplish with terrain tags but I cannot figure out how to actually control the collisions with a switch. Does this seem possible without plugins, and if not, what plugins could I possibly use?
How to enable collision with terrain tags based on switches?
RPG Maker MZ SupportYou're in luck, this just released a week ago. Edit: It's for MV, but might work for MZ.
forums.rpgmakerweb.com
If that doesn't work, you can get a region passability plugin and edit every instance of
$gameMap.regionId
to
$gameMap.terrainTag
Terrain Tag Passability - PG_TTagPass.js
This plugin gives you the ability to make terrain passable or not by turning switches on or off. Instead of using regions (which are not related to the tiles used) it uses terrain tags. Up to 6 terrain tags may have their passability controlled. It overides the passability of land tiles with...
forums.rpgmakerweb.com
If that doesn't work, you can get a region passability plugin and edit every instance of
$gameMap.regionId
to
$gameMap.terrainTag
That actually seems perfect, I'll test it out now. Thank you!
It didn't end up working since it's for MV, but I'll see if I can find something similar.
There are a number of plugins that will do passability by region but generally aren't toggleable. You would have to either edit one of those plugins to add a switch condition and map refresh, and also change the region references to terrain ones, or do a tileset change to an identical map but with different passabilities on the affected tiles.
Does it not work for MZ as well? I'm not aware of any major changes to the passability function.
Nevermind, I was using it wrong. It works perfectly fine now. Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/how-to-enable-collision-with-terrain-tags-based-on-switches.165211/