MZ Request script call for map tile set ID.

Hello, I'm trying to add options to my map room like turf indicators which highlight and area a colour to a faction.
So far I've accomplished this by having two tile set ID's with the same configurations except ID#1 has a colour overlay.

The option I want to give the player for map clarity is to be able to toggle on turf highlights through an event command via conditional branch but there is no option for checking if the map is currently using a tileset ID #.

If above isn't enough information, this screen cap may help get my point across.
Map075.png


If anyone can help me out ASAP i'd really appreciate the help.
if ($gameMap.tileset().id == 1) {
$gameMap.changeTileset(2);
}
Just realized something, much like enemies and actor ID's there exists index number 0.

Does this also apply to map IDs?
no, id 0 is null

1669971773537.png
Just realized something, much like enemies and actor ID's there exists index number 0.

Does this also apply to map IDs?
Just to clarify, none of those have index number 0.

Index 0 for all of those categories will give you an undefined result (or null or some such) - data starts at entry 1, so that the index always matches the ID you see in the database.
Thanks for the help everyone!

Original thread: https://forums.rpgmakerweb.com/threads/request-script-call-for-map-tile-set-id.153055/