EventRegionBox ACE

EventRegionBox ACE

by Kyonides
​

Introduction

The present script allows you to restrain the movements of any given event to a very specific region on the map.

If there are multiple areas on the map with the same Region ID, that Event will simply stay in its respective area.

If a given Event's Region ID has never been defined, that Event will move randomly and there is no way to know where it may go next.

Please take a look at the following screenshots because they have been setup in a very specific way.

eventregionboxace01.jpg

eventregionboxace02.jpg

eventregionboxace03.jpg

Script Calls

Set a given Event's Region ID - 3 Options:
Ruby:
this_event.fixed_region_id = Number
$game_map.events[EventID].fixed_region_id = Number
set_events_region_id(RegionID, EventID10, etc.)

Set a given Event's Custom Route and add a Script Call there:
Ruby:
move_same_region


Terms & Conditions

Free for use in any game!
Due credit is mandatory.
Do not repost it anywhere!
That's it! 😛
Exciting Update!​

Ever since version 0.5.0 your Patrollers are able to go through Fixed Region ID events and still hit the player or block its path if ever needed! 😀

And guess what? A demo is now available for any of you to playtest it! 😀

Make a given Event's a Patroller - 3 Options:
Ruby:
this_event.patrol!
# $game_map.events[EventID].patrol!
# set_patrollers(true, EventID10, etc.)

Remove a given Event's Patroller Status - 3 Options:
Ruby:
this_event.dont_patrol!
$game_map.events[EventID].dont_patrol!
set_patrollers(nil, EventID10, etc.)
This Update Will Make You Succumb to Laziness!​

Ever since the release of version 0.6.0 you can skip many script calls and just leave a note in the Event Name's Box to turn any event into a Patroller (Enemy NPC) or a Sheep (Friendly NPC). 😀

Quick Way to Setup Patrollers and Sheep

Enter the following in the Event's Name Box:

For a Patroller
Ruby:
EventName<P>
EventName<p>

For a Sheep - 1 stands for its specific Region ID

Ruby:
EventName<R1>
EventName<r1>

Original thread: https://forums.rpgmakerweb.com/threads/eventregionbox-ace.160202/