Conditional branch with map ID?

Geoff Moore

Composer for Hire
Veteran
Joined
Jun 12, 2014
Messages
1,399
Reaction score
731
First Language
English
Primarily Uses
N/A
I'm sure I'm missing something obvious here, sorry if I am. I want to make a conditional branch that checks if the player is on a certain map. Thanks for reading!
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
Well, you could set a variable to Game Data > Map ID, and then reference that variable in a conditional branch. Or you could go into the Script area of a conditional branch and put : '$game_map.map_id == x' Where x is the ID of the map.
 

Geoff Moore

Composer for Hire
Veteran
Joined
Jun 12, 2014
Messages
1,399
Reaction score
731
First Language
English
Primarily Uses
N/A
Nice! I went with your second solution, it worked perfectly. For anyone else reading this don't forget to leave the preceding 0 off your map ID (if it has one) or the interpreter will throw an error. Thanks Exhydra! :D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top