RMMZ [SOLVED] javascript for detecting current map tileset id?

Titanor

Veteran
Veteran
Joined
Jul 22, 2013
Messages
31
Reaction score
4
First Language
english
Primarily Uses
N/A
OK, I have a quick question about Tilesets.
can you use JavaScript to detect the Tileset id of the current map.

I have a seed based weather system in my game and I have a event on every map that tell the game whether it is indoors or outdoors, however I would like to change it to a single common event that detects Tileset ID of the current map.

Is that possible?

And if so, what is the script call to do it?
 

Tea's Jams

I'm human
Global Mod
Joined
Mar 28, 2017
Messages
1,181
Reaction score
2,809
First Language
English
Primarily Uses
RMMZ
$dataMap.tilesetId
 

Latest Threads

Latest Posts

Latest Profile Posts

Still alive! Totally did not finish in time for the Jam (boy that's late) but tl;dr of the last half a year is Work term -> Covid Lockdown -> Sick... again -> Full time Employment. Game stuff has been on hiatus but got a new graphics tablet so hopefully updates again soon. =D
Going on hiatus. Won't be back until mid October.:LZSoops:
Just read the English lyrics for Despacito. Ramen aint innocent no more! :kaodes:
Well today was blown away with nothing to show for it. I made a new character to my game who I was going to have a protection mechanic where he protects my main character randomly unless it's a critical, and no matter what, to check if an attack received will be critical, means checking the apply method. This means rewriting the entire method and I refused to do that.

Forum statistics

Threads
115,316
Messages
1,088,888
Members
149,961
Latest member
MrSunshine
Top