Trying to create visible encounters, but having a small issue.

K56JOl5.png


This is what my event looks like.

This is the script I'm using: https://yanflychannel.wordpress.com/rmvxa/field-scripts/event-chase-player/

I'm using that script to make the enemy chase you more aggressively than the default "Approach" command would.

Problem is, when you escape battle, I want the enemy to be temporarily immobile, and it be temporarily impossible for them to initiate battle or pursue you again. I tried to put this in the event under the escape condition as a Wait command, but from what I can tell, specifying any move route when you have the Chase Player function enabled causes Chase Player to not work.

But if I don't disable the enemy in this way, then they will immediately initiate battle with you again if you escape. I could simply Erase Event upon escape, but I don't want to do that if I don't have to. I'd like the enemy to still be able to chase you after a few moments have passed.

Any idea how I can get this to work?
Try to use Set Move Route... 

Maybe make it turn a few times to make it look dizzy, or just select "Wait" under Move Route 🙂

It's a guess, but logically, it should work ^^
Try to use Set Move Route... 

Maybe make it turn a few times to make it look dizzy, or just select "Wait" under Move Route 🙂

It's a guess, but logically, it should work ^^
Well yeah, that's what I tried to do. But that overrides the Chase Player script.
have you tried using selfswitch?

switch to other page, parallel process, wait a few second and switch off.
have you tried using selfswitch?

switch to other page, parallel process, wait a few second and switch off.
Only partially works. The enemy becomes unable to start combat again until the wait period ends and it switches back to the first page, but the enemy will still try to chase me even when I've set it to Fixed movement on that page.
You're going to need a custom edit of that script then, so that events don't chase you when a specific switch is turned on. (Given by that other page)
Only partially works. The enemy becomes unable to start combat again until the wait period ends and it switches back to the first page, but the enemy will still try to chase me even when I've set it to Fixed movement on that page.
Try this:
On the second page with the wait command, add a script command before the wait to set chase range to zero, and another script command after the wait to set it back to the original value.
Try this:

On the second page with the wait command, add a script command before the wait to set chase range to zero, and another script command after the wait to set it back to the original value.
Nah, that doesn't seem to work =/

Are there any other options then? Anyone know of a script that works similar to this that also handles escapes?
there is one but it's part of another script.

here:

http://forums.rpgmakerweb.com/index.php?/topic/1000-saba-kans-random-dungeon-generator-014
But I don't need the rest of that script...
Only partially works. The enemy becomes unable to start combat again until the wait period ends and it switches back to the first page, but the enemy will still try to chase me even when I've set it to Fixed movement on that page.
Really? That sounds strange to me. Unless you've made mods to scripts that cause move routes to carry over from one page to another, activating the second page should NOT allow it to keep chasing you if you've changed the autonomous movement to Fixed. Are you sure you did the self switch & condition correctly?
Really? That sounds strange to me. Unless you've made mods to scripts that cause move routes to carry over from one page to another, activating the second page should NOT allow it to keep chasing you if you've changed the autonomous movement to Fixed. Are you sure you did the self switch & condition correctly?
I did, but after messing around with this a little I finally got it to work. I don't quite get WHY it works, but after randomly trying a bunch of things, it does.

tseTXCF.png


From what I can gather, I have to turn the chase off by setting it to 0 on page 2, but if I leave it like that, when the enemy begins pursuit again, it moves very slowly, so I have to switch it back on to chase = 4 before it switches back to the first page in order for it to work properly.
Oh - I see. It probably kept chasing before because whatever script you're using that refers to @chase_range and @chase_speed is overriding the move route.


I'd like to see what's in that move route. You MAY have been able to accomplish the same thing by just putting the event code from page 2 into page 1 where the Control Self Switch is, then getting rid of the self switch and second page altogether. I think the secret is resetting those script variables for the wait period, then turning them on again.
Oh - I see. It probably kept chasing before because whatever script you're using that refers to @chase_range and @chase_speed is overriding the move route.

I'd like to see what's in that move route. You MAY have been able to accomplish the same thing by just putting the event code from page 2 into page 1 where the Control Self Switch is, then getting rid of the self switch and second page altogether. I think the secret is resetting those script variables for the wait period, then turning them on again.
This is the entirety of the move route:

Script: chase_range = 4

Script: chase_speed = 4

Script: alert_balloon = 1
Yeah - you probably could combine it all onto the same page. Probably what you missed before (that made it continue chasing it) was the resetting of the chase details, which you've added now.


Anyhow, if what you've got now works, there's not much point changing it, unless you want to experiment.


BUT ... be aware that if you turn on SSA and you've got a 180 frame wait before it turns off again, and you leave the map, when you return to the map it'll do its 'confusion' animation again and wait again before it starts chasing you, because the self switch will still be on. So it MAY be worth experimenting with a single-page solution if you want to avoid that.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-create-visible-encounters-but-having-a-small-issue.22088/