How to make a map automatically transparent

I will explain how to automate tile transparency using the map mask function.
By making full use of the main features of the four plugins, overpasses, hidden passages, buildings, and objects will automatically become transparent when the player steps into specific regions.
All it requires is to set some simple parameters and common events.
Transparency can also be added to events, allowing you to think in a way that is an extension of traditional map production!
1747829046030.png


Plugins Used
PluginCommonBase

A versatile plugin with various functions that comes with MZ.
You can use control characters in plugin commands, and you can add the same tag multiple times to a note.
However, it is meaningless unless the plugin is compatible with PluginCommonBase.

NRP_OverpassTile
An overpass plugin released by Takeshi Sunagawa.
An enhanced version of OverpassTile that comes with MZ, it applies layer 1 and 2 pass judgment when the player is under an overpass, and layer 3 and 4 pass judgment when the player is above an overpass.
You can also specify multiple regions and terrain tags to be used for overpasses.

RegionBase
An efficiency plugin created by Triacontan and included with MZ.
It allows you to execute common events when the player leave the region, step on the region, or move one step on the region.

TileMask
This is a plugin released by Awayamatana that allows you to make tiles partially transparent or filled in.
You can decide the settings for each region.
You can also paste the region settings to any coordinate to apply only the settings without changing the region ID of that square.

Videos

Instructions
Creating events

1. Add Overpass Regions with NRP_OverpassTile.
1747829158436.png


2. Create a common event that masks the region at the current location and a common event that unmasks it.
1747829207991.png

1747829245958.png


3. In RegionBase, set common events to occur when entering and leaving an area.
For the common event "Mask Tiles" select the trigger "Execute only once when entering an area", and for the common event "Unmask Tiles" select the trigger "Execute only once when leaving an area".
Add this for each region.
1747829301533.png


4. Now you're ready to automate everything. Of course, if the player is on the overpass, the tiles will not be transparent.
It might be interesting to try changing the transparency depending on the map ID or region ID.
1747829932674.png

*Tiles with a ☆ on the top half and a 〇 or × on the bottom half, such as trees and streetlamps, will only have the top half transparent, resulting in a strange display.
In such cases, use the CharacterGraphicExtend <CGTile: page,width,height> tag and Priority [Same as characters] to make it an event where the object stands upright.
Finally, add the <tileMask:upper> tag to complete a transparent object that matches the transparency of the upper tiles.
If the image is too transparent, you can adjust the ratio applied using the <tileMaskRatio: ratio> tag.

What? Not enough tile slots to represent both exterior and interior?
Use TilesetEx.
(If you don't care, just ignore this note.)

Creating a map
Just follow the instructions for using NRP_OverpassTile and it will automatically become transparent.

1. Place the ground on layers 1 and 2.
1747829979971.png


2. Place a ceiling (or overpass) on layers 3 and 4.
1747830034783.png


3. Place a region on each part.
1747830046314.png


4. This will make hidden passages and overpasses transparent.
1747830061632.png
It is possible to express not only overpasses and hidden passages, but also the interiors of buildings such as shops and houses.
In the video below, an event is placed at the entrance of a building without using RegionBase.
In addition, TouchMovementFix is introduced to avoid stopping when clicking to move.

It may be difficult to express this in the MZ editor, but I think it will result in an interesting map.
Anyway, it's fun to combine it with various plugins to create synergistic effects.
I'm so glad I found this tutorial! Congratulations on the plugin and the idea!

I was thinking about how to make dozens of secret passages the other day.

My test:

1750301646362.png



1750301554013.png


1750301706168.png

It's a little tricky to do, but it's worth the effort.
I'm working on something right now that I want to add some secret passages to and this looks like it'd work well with what I want to do. My only problem is of the needed plugins you mentioned, you said two don't come with MZ but didn't say where to get them - NRP_OverpassTile and TileMask. Where can I get them please?
I'm working on something right now that I want to add some secret passages to and this looks like it'd work well with what I want to do. My only problem is of the needed plugins you mentioned, you said two don't come with MZ but didn't say where to get them - NRP_OverpassTile and TileMask. Where can I get them please?

Here are the links to the plugins you are looking for:
NRP_OverpassTile and TileMask.
Here are the links to the plugins you are looking for:
NRP_OverpassTile and TileMask.
Thank you very much~

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-map-automatically-transparent.177811/