Map Regions

mapRegions1

This script allows you to separate your map into separate “map regions”.

Each region can be treated as a separate section of the map, with their own names, music, and battlebacks.

When you move from one region to another, the new region’s name will be
used and the new region’s music will be played.

Download

Script: download here

Installation

In the script editor, install this script below Materisls and above Main

Usage

To create a map region, note-tag the map with

<map region: REGION_ID>
    name: REGION NAME
  bback1: FILENAME
  bback2: FILENAME
     bgm: FILENAME VOLUME PITCH
     bgs: FILENAME VOLUME PITCH
    fade: DURATION
common_event: ID
</map region>  

The following options are available. You do not need to include all of them.

  name - the name of the region
bback1 - name of the file for the floor battleback
bback2 - name of the file for the wall battleback
  bgm  - the BGM to play when you move into this region
  bgs  - the BGS to play when you move into this region
  fade - the fade duration for the previous BGM in milliseconds
common_event - the ID of the common event to run

When a region name is specified, the name of the map is changed to the region name. The map name window will also be shown automatically when you move into a new region.

To enable region battlebacks, you need to first check the “specify battleback”
box for the map.

You can specify the volume and pitch of the music files if needed. These are specified as percentages, where 100 means 100% volume/pitch, and 50 means 50% volume/pitch.

The fade duration is specified in milliseconds. Therefore, if you want the music to fade out for a second, you would write 1000.

For the common event, if you need access to the map region data via script calls, you can use

$game_player.region_id      - the current region
$game_player.last_region_id - the previous region

Example

Here’s map region 10 with the name “Grassland”, using Theme1 as the BGM, and a
Storm BGS with a lowered volume:

<map region: 10>
name: Grassland
bgm: Theme1
bgs: Storm 50
</map region>

You may also like...

41 Responses

  1. Hairstyles says:

    Magnificent goods from you, man. I’ve be aware your stuff prior to and you are simply too excellent. I actually like what you’ve obtained right here, certainly like what you’re stating and the best way wherein you are saying it. You make it enjoyable and you still care for to keep it smart. I cant wait to read much more from you. This is actually a terrific website.

  2. Hairstyles says:

    Thanks a lot for sharing this with all of us you really recognize what you are talking about! Bookmarked. Please additionally visit my website =). We may have a link trade agreement between us!

  3. Fglfuq says:

    buy retrovir 300 mg pills – buy glycomet 500mg sale brand allopurinol 100mg

  4. Ukvyuk says:

    where to buy clozapine without a prescription – purchase accupril generic famotidine over the counter

  5. Unhxfd says:

    buy glucophage without prescription – buy lincocin generic order lincomycin 500mg generic

  6. Dgkoxb says:

    furosemide 100mg tablet – tacrolimus 1mg pill captopril 25 mg ca

  7. Cgtlwp says:

    buy flagyl sale – buy flagyl 400mg sale order zithromax 250mg pills

  8. Ljfybl says:

    ampicillin online buy penicillin generic cheap amoxil generic

  9. Rdcdwu says:

    order valtrex pill – brand nateglinide acyclovir without prescription

  10. Thanks for another informative site. Where else could I get that kind of info written in such a perfect way? I have a project that I am just now working on, and I’ve been on the look out for such info.

  11. Utqlmy says:

    stromectol 12mg – ciplox order order generic sumycin

  12. Wmyqms says:

    stromectol tablets buy online – purchase aczone pills order sumycin without prescription

  13. Xfynts says:

    order flagyl 200mg for sale – buy cefaclor 500mg online zithromax brand

  14. KAYSWELL says:

    Thanks for the post, is there any way I can receive an update sent in an email every time you publish a new post?

  15. KAYSWELL says:

    I抣l immediately grasp your rss feed as I can not in finding your email subscription link or newsletter service. Do you’ve any? Please permit me realize so that I could subscribe. Thanks.

  16. Hairstyles says:

    I have been browsing online more than 3 hours today, yet I never found any interesting article like yours. It抯 pretty worth enough for me. In my view, if all website owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

  17. Rtxqpr says:

    ciplox us – purchase erythromycin for sale generic erythromycin 250mg

  18. KAYSWELL says:

    In my opinion that a foreclosures can have a major effect on the applicant’s life. Mortgage foreclosures can have a Six to 10 years negative relation to a client’s credit report. The borrower who have applied for a mortgage or any kind of loans for example, knows that the actual worse credit rating is definitely, the more challenging it is to secure a decent bank loan. In addition, it could possibly affect any borrower’s capacity to find a really good place to let or hire, if that becomes the alternative homes solution. Interesting blog post.

  19. Hairstyles says:

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why waste your intelligence on just posting videos to your site when you could be giving us something enlightening to read?

  20. KAYSWELL says:

    Spot on with this write-up, I actually assume this web site wants much more consideration. I抣l most likely be once more to learn far more, thanks for that info.

  21. Cjvisu says:

    cipro 500mg sale – bactrim for sale online clavulanate cheap

  22. Eglxnu says:

    ciprofloxacin 500mg brand – ethambutol 600mg without prescription buy augmentin generic

  23. Ezrjmr says:

    order lipitor 20mg generic order atorvastatin 20mg for sale buy lipitor 80mg online

  24. Hairstyles says:

    You’ve been great to me. Thank you!

  25. Andy says:

    Hi, I’ve installed the script and included a region but whenever I enter a new region (in this case region id 11) it only displays the name of the entire map and not the unique name. Can you think of anything that might cause this?

    • Anonymous says:

      The same thing happens with your example in the script. If I remove the display name for the map then it shows nothing. I hope you can help.

  26. Marc says:

    Hi Hime

    Excellent script, exactly what I needed. I can’t seem to get it to work correctly though. Will it only work with a specific RPG maker?

  27. Sjmorgan says:

    Great script. I’m using it to eliminate event copy and paste for exiting towns. I’m having a small issue though. The first town of my game is unexitable, and had copy pasted events that have the second party member tell the first to sneak out through the well so they aren’t caught.

    I eliminated 80 copies of that by using your script, however; triggering the text with your script and a step backwards results in the BGM shutting itself off. if I have the script replay the same BGM, it starts the song over and has an awkward second pause. I just want to use the region to trigger my common event, I don’t want to force the music to change or go silent. In every other scenario that’s fine since it’s a map transition, but here it isn’t.

    Is there a way to still call the common event by region stepping, but not have it automatically end the playing music?

    • Hime says:

      I’ve updated the script so that if the new region has the same music name, it does not restart the BGM. See if that solves the problem.

  28. Xenius says:

    Hey Hime!
    This is such great script, thanks!
    But I have a question:
    Can you tell me how to add an "Script call"-option
    Because I'm using a weather fx script and it should change the weather when entering another region

    I would be glad if you helped me :]

    • Hime says:

      I've added the option to call a common event, which allows you to use script calls (and any event commands).

  1. June 15, 2014

    […] is an update for the Map Regions script. When you go from one region to another, you can have a common event automatically run. It […]

  2. February 24, 2024

    … [Trackback]

    […] Info on that Topic: himeworks.com/2014/02/map-regions/ […]

  3. March 19, 2024

    … [Trackback]

    […] Read More Information here on that Topic: himeworks.com/2014/02/map-regions/ […]

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *