MZ looking for a random event plugin

what im looking for is im going to make a side quest wich will put a specific enamy troop into play so lets say train 1 is slimes only but after you start the side quest a switch gets thrown and you will now fight trolls in terain 1 as well

i have tryed to do this with switches and events but i cant get it to work that way the trolls are there at all times even before the switch is turned on and ive tryed making condition troll on in the troop as well nothing is working for me

this is a request for rpg maker mz

so im hopeing someone might have a plugin idea for this i have seen the plugin conditional random encounter for $8.00 but from watching videos it realy gives no detail in what happens
Best to have one written for MZ if possible, but there is this one for MV:
I haven't tested to see if it works in MZ.
there are multiple ways to do this even without plugins - you would have to show us what you tried to see where you went wrong.

the simplest solution is probably a special troop that changes enemies on turn 0
as long as the switch is not turned, it contains only slimes.
but when the switch is turned on, a troop event on turn 0 changes all slimes of the troop to trolls

either by transform command or by appear and escape or something similar.
By default Enemy Transform isn't ideal: Turn 0 processes after emerge messages and if all enemies are hidden at the start then Turn 0 is superceded by the victory phase.

Replacing the default random encounter system with an event would be doable, though.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-random-event-plugin.150067/