Region Events

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English



This script allows you to create “Region Events”. Basically, it allows you to turn an entire region into an event based on an existing event on your map.


For example, suppose you have some Region 1 tiles. Using this script, you can connect Region 1 to an event on the map. The result is called “Region Event 1″, and when you activate Region Event 1, it will run the event it is connected to.


Region events obey all event rules. They do not have a graphic, because they are simply regions on your map. Region events are useful when you want multiple tiles to all run the same event.


Get it at Hime Works!
 
Last edited by a moderator:

Misaki

Pikalyze
Veteran
Joined
Apr 21, 2013
Messages
156
Reaction score
26
First Language
English
Primarily Uses
RMMV
Handy. There was a script that I saw awhile back that did something similar to this. In fact, now that I think about it, there are a lot of region-based scripts if you think about it. Well, this is the most simpler to use :)
 

Marcio

Roadrunner for Lighnting and Strike Detonator
Veteran
Joined
Jan 2, 2013
Messages
63
Reaction score
2
First Language
German
Primarily Uses
This is insane for making cutscene triggers! :D

So you basically have to make one Event and not two or more if your zone is greater then 1 Tile. ;) Well, thank you, this is really awesome! ^^
 

Galenmereth

Retired
Veteran
Joined
May 15, 2013
Messages
2,248
Reaction score
2,158
First Language
English
Primarily Uses
N/A
This is really nice, Hime! Now I can get rid of all those duplicate events I have spread around~
 

DarthVollis

Moogle Master
Veteran
Joined
May 5, 2012
Messages
409
Reaction score
85
First Language
English
Primarily Uses
I just ran across a script that breaks the limits of the regions. Will your Region Events work with it? By the way here is that script.

Code:
#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##===============================================================================
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
It should. My script doesn't cache map regions, so everytime you check a tile, it will perform an extra check to see if there are any region events there based on region ID.


Would be a different story if I assumed regions don't change, but I decided that was a bad assumption.


EDIT: I just tested it and it works.


 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top