How do I get an event to change based on a percentage chance?

What I am trying to do is have a certain enemy spawn in the overworld. The enemy is a rare variety of a common enemy and I have sprites made for each one. What I want to do is to have the game roll a low percentage to change that common enemy sprite into the rare variety, so that the player knows to engage it without having to go into the battle.

I have already created overworld enemies that respawn after a few seconds. I want to create a scenario where the player can defeat that enemy and when the enemy respawns, there is, lets say, a 20% chance that it is the rare version instead. Thanks
I'm very novice at this, but within your spawn event, you could try making a conditional branch based off of a random variable? Create a variable that is a randomly generated number between 1 and 5 (Control Variable -> Random, 1~5), and if the variable == 1, then spawn the rare creature, else spawn the regular one.

I'm not sure exactly how to get that to happen only after they've defeated a non-special enemy once, but you could probably incorporate a switch somehow?

I apologize if this is insultingly obvious, but I hope it's helpful, instead! =)
Show us your event - how are you respawning it?
The way I do it is with variables. I have something similar for "chest rolls" in my "Thief" mechanic.

It's just a variable I assign to the chest roll (it works on every single chest of this type in the game).

Create your monsters as a series of pages that use a variable number to be displayed (final page could be blank, for no monster existing, and have a timer on it for respawning as well as the next step to roll the variable for you).
"Control Variables: Rare Monster Appear. Set Variable. Random 1 through 5"

One of your pages then needs to essentially say:
"If Variable Rare Monster Appear is Less Than or Equal to 1, display this page of the event" (under conditions on the left hand side).

You just need to have your blank page with no monster on it do the rolling of the variable each time and do it by timer to respawn. It's fairly simple to execute.
Your suggestions worked for me! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-an-event-to-change-based-on-a-percentage-chance.119292/