RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Script call to identify current map ID?

0 Members and 1 Guest are viewing this topic.

*
Rep: +0/-0Level 81
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)..
« Last Edit: January 29, 2011, 05:34:31 AM by ei8htb1t »

pokeball TDSOffline
***
Rep:
Level 84
-T D S-
Silver - GIAW 11 (Hard)Silver - Game In A Week VII
On VX you can get the id of the map with this.

Code: [Select]
$game_map.map_id

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
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.
it's like a metaphor or something i don't know

*
Rep: +0/-0Level 81
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;)