Does anyone know the script syntax for identifying the current map the player is on?
I have studied the core scripts and my best guess was something along the lines of:
if $scene == Scene_Map(map_id)
but obviously this is incorrect.
My goal is to create a common event that displays a zoomed out graphical rendition of the current map depending on which map the player is actually on, even if it's as rudimentary as:
if [current map] == "World 1" show picture [World 1 Map Graphic] etc.
Many thanks for any insights or advice you could provide this n00b scripter (or even suggest existing scripts that provide something similar)..
On VX you can get the id of the map with this.
$game_map.map_id
Script isn't really necessary. Unless you have some specific requirement that only script can do, get to control variables and select to make your selected variable "MapID". Then in a conditional branch or whatever, say if you want that a specific procedure can only be executed in a specified map, make it so that the variable must equal the map ID you want, then etc etc on the commands of the event.
Thanks TDS and AngryPacman these are both very helpful solutions.
@ PacMan - more often than not, the answer is right under my nose when it comes to eventing this program, thanks for the help and making it simple for me;)