Random Encounter Bug

For some reason this event Blocks Random encounters(They Worked when i cut it)
How do i fix this?
indx.jpg

ndex.jpg
What do you mean "when I cut it"? How did you "cut" it?

My initial guess is that you have something else (maybe a plugin) that does something when switch 4 is turned on. Do you have any plugins that adjust random encounters, perhaps based on map notes?

Please use Alt+PrintScreen to take screenshots rather than your phone.
What do you mean "when I cut it"? How did you "cut" it?

Select Everything Right Click,Cut

My initial guess is that you have something else (maybe a plugin) that does something when switch 4 is turned on.
The Only Thing That touches Switch 4 Is This Event That Happnes Right At The Start Of The Game
Zelda test - RPG Maker MV 31_07_2019 08_36_52.png


Do you have any plugins that adjust random encounters, perhaps based on map notes?

Please use Alt+PrintScreen to take screenshots rather than your phone.
Zelda test - RPG Maker MV 31_07_2019 08_31_15.png

This is my plugin list and,as you can probably see,Nothing Interferes With Random Encounters,Just With the Battle Itself
So that's the entire event? Does it NEED to be running constantly? Or do you want those things to only happen when the 'epona' switch is turned on or off? If you only need it to happen when the switch changes, you can set it back to a normal common event and just use the Common Event command when the 'epona' switch is turned on or off. If you need it to be constantly running (and I don't see anything in there that would require it), at least put a Wait 10 Frames at the very top of the common event.

See if changing that had any effect on the random encounters.
So that's the entire event? Does it NEED to be running constantly? Or do you want those things to only happen when the 'epona' switch is turned on or off? If you only need it to happen when the switch changes, you can set it back to a normal common event and just use the Common Event command when the 'epona' switch is turned on or off. If you need it to be constantly running (and I don't see anything in there that would require it), at least put a Wait 10 Frames at the very top of the common event.

See if changing that had any effect on the random encounters.

the Idea Of the common Event(the one In The Original post)is That:
if epona is on And you are in One of the two overworld,Change Sprite
as Soon as you are not in one of the overworld,turn epona off
if epona is off, and you are anywhere, Change Sprite based on What shiel you are using
So,at least the second half Needs To Happen costantly
The First i don't know
If it only needs to be run when you enter or leave the overworlds, or when you change equipment, there are better ways to do it than to have a constantly-running parallel process common event.

I suggest you at least put a Wait 10 frames at the very start, above the first line, and see if it makes any difference. If it does, then we can look at alternative ways to do what you're trying to do. If it doesn't, I'd still look at alternative ways to do it, but there's something else causing the issue.

What is your random encounter frequency set to?
If it only needs to be run when you enter or leave the overworlds, or when you change equipment, there are better ways to do it than to have a constantly-running parallel process common event.

I suggest you at least put a Wait 10 frames at the very start, above the first line, and see if it makes any difference. If it does, then we can look at alternative ways to do what you're trying to do. If it doesn't, I'd still look at alternative ways to do it, but there's something else causing the issue.

I know There are,i just don't know Them

What is your random encounter frequency set to?
overworld 30
other maps 10-15
I know There are,i just don't know Them

You can only know them by a process of elimination. The thing I have suggested you do twice now (add that Wait at the start of the common event) is step 1 in that process.

Have you added the Wait at the start? Did it make a difference?

What switch number is epona?


Other things it could be ...

- have you used the Disable Encounter (tab 3 of event commands) anywhere?
- does any of the armor or equipment or anything else have a Trait for Party > Encounter Half or Party > Encounter None?
- use the Event Search function (little 'screen' with magnifying glass) to search for both of those switches (switch 4 and the 'epona' switch) to see if you're using them anywhere else, and confirm that none of those events have anything weird in them

What is at the end of that common event? It looks like there is more than what is shown on your two original screenshots.
What switch number is epona?
12

What is at the end of that common event? It looks like there is more than what is shown on your two original screenshots.
Just another 2 ends and Bring "map" to MapID

The Sprite You become when "Epona" is on is an horse, so i have a movement route to speed you up when you're a horse and a second one to slow you down
For Both of those "wait" is on as i thought it wouldn't change anything
What i think could be is that movement route that slows you down, because it is always running
i will try to put it after every Shield change

Edit:Yep...that and removing the "wait" fixed it
I'm not sure what you mean by "put it after every Shield change", and I actually suggested ADDING a Wait at the very start of the common event, not removing any. I still think you should do that, as your common event does not need to run 60 times every second, for the entirety of the game, and you will find it causes problems if you get very many parallel process events (common or on map) that don't have Wait commands.

The Wait as part of the movement route would not affect this at all. However, you've somehow managed to get it working, so see how it goes. It wouldn't surprise me if it starts happening again, because I don't think any of the things you said you did would have any impact.
I'm not sure what you mean by "put it after every Shield change"
every time the sprite changes because the equipped shield does
and I actually suggested ADDING a Wait at the very start of the common event
1I was talking about The "wait for completion" in movement ruotes, as they block random encounters
2 i did that
1I was talking about The "wait for completion" in movement ruotes, as they block random encounters

No they don't. All they do is stop the next command in the list from executing until the move route is finished. But since your move route didn't actually have any movement - just a speed change which is instant - it doesn't make a difference whether you have it there or not. However, a move route that gets repeated on every frame (whether there's movement or not) without any break between (by adding a Wait at the top of the event), might cause it. If anything made it work again, I'm pretty sure it was adding the wait at the top of the common event.

As I already explained, parallel process events execute on every frame, so if you don't have a Wait in there in every loop, it's going to start causing problems the more of them you have. This is exactly why I suggested that in my second reply, and my third, and my fourth, and strangely enough, after you did it, it started working.
It wouldn't surprise me if it starts happening again, because I don't think any of the things you said you did would have any impact.
You were right
Happened again as soon as i made a new save
but it worked when i made it wait for 60 frames
So, 1 frame is 1/60th of a second. Just work out how many times a second you want to do the check - if you want it 6 times a second, then use a 10 frame wait. If you want it 4 times a second, use a 15 frame wait.

Obviously you want it to run as soon as you return from the menu after changing equipment, so will it be "weird" if you equip a new shield, exit the menu, and it waits for a second before changing the sprite?

I'd change the wait to 4 or 5 frames, because it would bug me to have the sprite change even one second after closing the menu. Unless you want to explore that other option that doesn't require an always-running common event at all, and only triggers it when one of those things happen (entering/leaving the overworld map/s, or changing equipment).

But if you're happy with it as it is (even reducing the wait time a bit), just keep playing and make sure that really has fixed it, and that it doesn't start happening again a bit later.
Oh and, sorry if it's out of topic, but is there a way to change battleback based on region?
That is another topic, so you should create another thread. You'll need to put that one into Plugin Requests. Or search through plugin lists first, because it would surprise me if there aren't already several out there.
Ok Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/random-encounter-bug.111638/