MV How do I make a SEs and Sprites appear when there are random encounters?

So I have some sprites and sound effects I want to play. In my game, there is a creature that pops from underneath the ground, and under the "player".

I want these effects to appear when a "random encounter" is successful. Like, right before the battle commences.
I believe I would need to use some form of changing Actor Images, but I haven't figured out how to implement the sprites to appear upon a successful random encounter.


How do I do that?
Still new to rpg maker myself, but I believe that would be by using the common event system whenever a random encounter happened to play those effects you want, and make a switch in your enemies troop triggering it when it comes up. I know its not an answer but those are the tools you could use
I'm totally against random encounters, but if You insist on having them, then do them via events, this way you have more control what's going on map.

1. Create Parallel event on Map and use script command and type as in image - https://prnt.sc/wgb7cw
2. Next, use wait command to delay battle start - https://prnt.sc/wgbcb0 (I used also script to override MV limitation) - in this case wait 5 minutes.
3. Now, by checking in conditional branches init encounter with one of troops from database - https://prnt.sc/wgbaiy
4. And continue putting these branches as many as you fit to your project.

That's my way, but you can check other ideas
Moved to: JS Plugin Requests

Random encounters are controlled entirely in the core scripts, and not by events or event commands. Any changes you want to make to them will require plugins.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-ses-and-sprites-appear-when-there-are-random-encounters.131822/