Complex Encounter Event Help

Hello everyone. I been working on an On-Field encounter setup that can use a variable to determine the encounter (And keep it between running away and encountering it again.)

Example: Red Slime (Variable 1 Value 1) Red Slimex2 (Variable 1 Value 2) Red Slimex3 (Variable 1 Value 3)

Player encounters 2 Red Slimes but wants to run. Later on, assuming they never left the dungeon, encounters it again, it would still be the same encounter as the 1st.

Well I got it working that way but, adding many encounters across multiple maps, would be extremely confusing and time consuming.

Is there a way to set a variable to randomize between 3~4 randomized encounters with certain 'weights', and persists until map resets?

Script Idealy would end up looking like:

RandEncounter(Var, TroopID1, %Chance, TroopID2, %Chance, TroopID3, %Chance, TroopID4, %Chance)

Var would keep the value chosen until map changes.

Unsure how else to phrase it.
You could store the variables in a Common Event (a page per encounter wanted) and the Condition would determine which encounter you got. You can then randomize the variable so you'd have something like Slime Encounter -= 2 then Green Slime battle starts.

The Variable will remain that number until modified again.
I never used Common Events like that as the encounters at most are used for 2~3 dungeons (The 2nd being less and 3rd being even less but to give the players some weaker creatures as they go through the world.)

I was more of seeking an easier way other than this. I currently have 10 'spawns' that have all the variables they need and get changed per zone as needed to the new creatures / IDs but in larger places (Like mid to end game) There will be 4~10 different variations per enemy (Includes being with other creatures like Fire Elementals and a Lich or 2x Lich and a few undead etc)

Original thread: https://forums.rpgmakerweb.com/threads/complex-encounter-event-help.44909/