Repel For On Map Encounters

So, within the RPG I'm designing, I've added On Map Encounters using YanFly's Event Chase Player Plugin, rather than having a Random Encounter based on Steps.
Monster On Map Encounter.PNG

Before I added this feature, I had used the default Random Step Encounter. Along with the Default Encounter System, I had an Item called Repel, credit going to Echo607 (Great Item!), that would Disable Encounters for x Steps.

Repel.PNG


Repel Common Event 1.PNG


Repel Common Event 2.PNG


Of course, with this new System of On Map Enemies, Repel isn't going to work anymore. And so, I was wondering if anyone has come up with a solution to have a Repel Item with the On Map Encounters? Thanks!
best way (i think) is to use variable that is set to 0,
and count variable up every step till 100, if its over, reset variable 9 to 0
best way (i think) is to use variable that is set to 0,
and count variable up every step till 100, if its over, reset variable 9 to 0
If you don't mind, can you explain how that would work?
Control Variables 001 steps = Steps
Control Variables 002 StepCalc = Steps
Control Variables 002 StepCalc -= Variable 001 Steps
Conditional Branch: Variable 002 StepsCalc > 100
do stuff
else
do other stuff
end

around this part

Var 1 = steps
var 2 = steps (as well)
var 2 = -var 1 steps

and it should work nicely hopefully. (I can be mistaken or miss something though)
but your answer needs at least 2 variables, 1 can be possible if you do the calculations
correctly, but 2 is saver and better (in my opinion.
Are you asking for functionality? Or for a solution for a better system?

If you're looking for a better system, you could clone the event page, have a switch condition for "Repel in Use" and change the this._chaseRange/this._chaseSpeed to this._fleeRange/this._fleeSpeed to make enemies run away from you while repel is on.
Are you asking for functionality? Or for a solution for a better system?

If you're looking for a better system, you could clone the event page, have a switch condition for "Repel in Use" and change the this._chaseRange/this._chaseSpeed to this._fleeRange/this._fleeSpeed to make enemies run away from you while repel is on.
I'm going to be honest here, I turned off my laptop and was going straight to bed since I've been up since 3am, and as I was heading to bed, I literally thought of your solution. I was like, "Wait, can't I just do this?" But then I questioned my theory, but your suggestion just confirms it, so I thank you!
Update, the better system boikish suggested is the way to go, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/repel-for-on-map-encounters.121061/