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

Status
Not open for further replies.

Little Paw

Veteran
Veteran
Joined
May 5, 2013
Messages
707
Reaction score
294
First Language
English
Primarily Uses


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?
 

Meraki

Veteran
Veteran
Joined
Mar 10, 2013
Messages
69
Reaction score
10
Primarily Uses
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 ^^
 

Little Paw

Veteran
Veteran
Joined
May 5, 2013
Messages
707
Reaction score
294
First Language
English
Primarily Uses
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.
 

xein

A stranger in a strange world
Veteran
Joined
Mar 17, 2012
Messages
307
Reaction score
15
Primarily Uses
have you tried using selfswitch?

switch to other page, parallel process, wait a few second and switch off.
 
Last edited by a moderator:

Little Paw

Veteran
Veteran
Joined
May 5, 2013
Messages
707
Reaction score
294
First Language
English
Primarily Uses
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.
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
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)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
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.
 

Little Paw

Veteran
Veteran
Joined
May 5, 2013
Messages
707
Reaction score
294
First Language
English
Primarily Uses
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?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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?
 

Little Paw

Veteran
Veteran
Joined
May 5, 2013
Messages
707
Reaction score
294
First Language
English
Primarily Uses
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.



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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Little Paw

Veteran
Veteran
Joined
May 5, 2013
Messages
707
Reaction score
294
First Language
English
Primarily Uses
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
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top