Is it possible to do an If statement for Tilesets?

So I have specific indoor and outdoor tilesets.


What I want to be able to create is a common event that checks the tilesets, if its one of a few tilesets that it will do one specific thing, else it will do another thing.


I want to be able to set up this for various weather conditions is all.


IF Tilesets are x y z


Play Rain (30%)


Else


Play Rain (80%)
you cannot check for tilesets, but you can check for map ID. So make a common event that checks for the map ID.


Or better yet, don't have the common event check anything - make two common events for the two cases, and place an autorun calling the correct one on each map.
Do you switch tilesets on the maps? If not, you could set a variable equal to the Map ID, then use If statements to control what effect is on each map.
Technically you could use $dataMap to check the current map for the tilesetId, if you wanted to.

Code:
◆If:Script:$dataMap.tilesetId == 2 || $dataMap.tilesetId == 3
  ◆Play BGS:Rain (30, 100, 0)
  ◆
:Else
  ◆Play BGS:Rain (80, 100, 0)
  ◆
:End
@BigToastie I see where you're going with that idea, clever.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-do-an-if-statement-for-tilesets.67269/