#sb:region_limit_breaker [field, utility]#==============================================================================# Region Limit Breaker# Version 1.00# By Napoleon## About:# Allows you to assign extra regions to a map up to 127.# Meant for advanced users.## Instructions:# - Place below "▼ Materials" but above "▼ Main Process".# - Edit the Settings part to your needs.# - Optional: use the new "assign_region(x, y, region_id=0)" command.## Requires:# - RPG Maker VX Ace## Terms of Use:# - Attribution 3.0 Unported (CC BY 3.0)# [URL="http://creativecommons.org/licenses/by/3.0/#"]http://creativecommons.org/licenses/by/3.0/#[/URL] - Attribution is not required. This overrules what's stated in the above# license.## Version History:# 1.00 (09 December 2013)# - First Release#-------------------------------------------------------------------------------# Settings# Note: Do NOT add values > 127 or you will get weird values.#-------------------------------------------------------------------------------NAP_MAPS_LB = { 1 => { # 1 will apply this ONLY to the map with map_id == 1 [4,4] => 127, # Will assign region #127 to tile [4,4] [0,0] => 89, # Will assign region #98 to tile [0,0] (most top left tile) }}#-------------------------------------------------------------------------------$imported ||= {}$imported[:region_limit_breaker] = 1.00class Game_Map alias nap_region_lb_setup setup def setup(map_id) nap_region_lb_setup(map_id) return if NAP_MAPS_LB[map_id].nil? NAP_MAPS_LB[map_id].each_pair do |k,v| $game_map.data[k[0], k[1], 3] = v * 256 end end # setupend # Game_Mapclass Game_Interpreter def assign_region(x, y, region_id=0) $game_map.data[x, y, 3] = region_id * 256 endend#===============================================================================## End of File##===============================================================================