A question about setting up randomized movement for an event in the boundaries of specific "region"s

Hello o/~

I have been playing around with ace lite and wanted to experiment a bit with the region ID feature.

First, I placed region ID tags in one part of the map to draw the lines of movement for the event (in this case, a cat)

Spoiler
vyw8i9.jpg
Then I set up the variables to get the location info and properly added forced movement commands to make the event return to the region 1 once it moves out of it.  It worked totally fine but when I tried to add a show text command to make the cat stop and "talk" when I click it, it didn't go as I expected. The cat stops and waits for me to click it, then the text pops up and the cat moves one tile and stops again.

So I thought of seperating the movement and the show text sequence.

This is what I came up with:

Spoiler
2luwhi0.jpg
Spoiler
2lcl64x.jpg
Now it seems to work. The cat stops when I click it, show text pops up then when the window is gone, it starts its random movement again (or forced depending on where it stands at the moment) but I am wondering if this is the most proper way to do this with default script. Any thoughts? Thanks in advance.
there is an easier way to do this...


Use this script to set up the barriers:


http://yanflychannel.wordpress.com/rmvxa/field-scripts/move-restrict-region/


then use random autonomous movement inside the barrier area (the area between the sprite and the content of the event, where it currently says "fixed")


And you can use the action button on a single event page without any move command to react to the player.


This is also better for the CPU - if you make every NPC in a town use parallel process for move routes (instead of autonomous movement), then you're risking a lot of lag...


EDIT: If you don't need to restrict the movement, then you can do this by custom autonomous movement instead of set move route, without using any script...
Thanks Andar, I know of that script. I am just experimenting with default script and I was actually wondering if I could do this in a single event instead of two ^^
He can't use scripts in Lite, either.
Bump! So is there a way to do this in a single event with default script?

Original thread: https://forums.rpgmakerweb.com/threads/a-question-about-setting-up-randomized-movement-for-an-event-in-the-boundaries-of-specific-region-s.24247/