Region Map Loader


By Fomar0153
Last Updated: 06 May 2012 (Version 1.0)
Download Link: http://pastebin.com/raw.php?i=rk4LMF66

This script allows you to load sections of your map (defined by regions) from another map and control it with switches. My main use for this is that I wanted player actions to affect their home town.

Anyhow this is how to set it up. First you need to notetag the Map the format is:
<regionmap regiondid,mapid,switchid> and you can include additional region maps by separating them with a semi-colon e.g.
<regionmap 1,2,1;2,2,2>
mapid refers to the map you’re copying from.

Next you need to make your map:

A couple of points, this script doesn’t copy events so they will need to on this map, I have them show up using the same switch as the region map. Next you need to set up the regions for the script to use.

Remember to put the region where the shadows go as well. Next copy the map and make whatever changes you want to the areas (this can be done multiple times e.g. if you wanted a plot of land to have two potential outcomes). Then make your edits.

Then in game turn the switch on. If you do this when you are on the map you will need to call:
$game_map.refresh
Anyway have fun!

9
  

2 comments

  1. Digger says:

    Would there be a way to update this to allow for if/then type situations?
    I mean if switch 30 is on it would normally put a house but if switch 31 was also on it would put in a different house?
    if there are multiple things true than it should load up the last one or the one with the most true conditions..