Edit Event Range

How would you edit an event's range?

I'm trying to make a walkway through a three-tile wall, but I don't want to use multiple events for the same cause.
You can just have one event set to activate an autorun event once a switch is turned on, and have each space turn on that switch when entered (and if needed, have each space adjust things' position to the location of each space before turning on the switch).
Not sure I follow that logic. What is "each space"? In order to activate a switch wherever they go, you still need 3 events.

Put this into a new script slot:

class Game_Event < Game_Character alias shaz_large_event_collision_clear_page_settings clear_page_settings alias shaz_large_event_collision_setup_page_settings setup_page_settings def clear_page_settings shaz_large_event_collision_clear_page_settings @collide_width = 0 @collide_height = 0 end def setup_page_settings shaz_large_event_collision_setup_page_settings @collide_width = 0 @collide_height = 0 list_index = 0 while list_index < @list.size && [108,408].include?(@list[list_index].code) colx, coly = @list[list_index].parameters[0].scan(/<collision: (\d+),(\d+)>/i)[0] @collide_width = colx.nil? ? 0 : (colx.to_i - 1) @collide_height = coly.nil? ? 0 : (coly.to_i - 1) list_index = @list.size if @collide_width != 0 || @collide_height != 0 list_index += 1 end end def pos?(x,y) x.between?(@x, @x + @collide_width) && y.between?(@y - @collide_height, @y) endendPut an event in the lower left corner of the area you want covered (so if you want 2 or 3 tiles wide, put this event on the leftmost tile; if you want 2 or 3 tiles high, put it on the bottom tile). Add a comment to each event page like this:
Code:
<collision: x,y>
where x is the width you want to cover, and y is the height you want to cover.So if you have an archway where the area the player walks is 3 tiles wide, you will put an event on the leftmost tile, and <collision: 3,1> in a comment on each event page.

Any commands you then add to the event will run if the player steps on any of the tiles within the range.
You can just have one event set to activate an autorun event once a switch is turned on, and have each space turn on that switch when entered (and if needed, have each space adjust things' position to the location of each space before turning on the switch).
Thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/edit-event-range.43094/