Save-Point
EventRegionBox - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: EventRegionBox (/thread-8794.html)



EventRegionBox - kyonides - 08-11-2023

EventRegionBox
ACE


For Patrollers and Friendly NPC's

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.

Map Setup

Script Calls

Set a given Event's Region ID - 3 Options:
Code:
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:
Code:
move_same_region


Terms & Conditions

Free for use in any game! Gamer
Due credit is mandatory.
Do not repost it anywhere!
That's it! Tongue sticking out


RE: EventRegionBox - kyonides - 08-12-2023

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! Grinning

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

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

Remove a given Event's Patroller Status - 3 Options:
Code:
this_event.dont_patrol!
$game_map.events[EventID].dont_patrol!
set_patrollers(nil, EventID10, etc.)



RE: EventRegionBox - kyonides - 08-14-2023

This Update Will Make You Succumb to Laziness! Shocked

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). Two Thumbs Up!

Quick Way to Setup Patrollers and Sheep

Enter the following in the Event's Name Box:

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

For a Sheep - 1 stands for its specific Region ID

Code:
EventName<R1>
EventName<r1>