Repel For On Map Encounters

EclipseVRP

Veteran
Veteran
Joined
Jan 22, 2020
Messages
42
Reaction score
8
First Language
English
Primarily Uses
RMMV
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!
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,180
Reaction score
715
First Language
Dutch
Primarily Uses
RMMV
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
 

EclipseVRP

Veteran
Veteran
Joined
Jan 22, 2020
Messages
42
Reaction score
8
First Language
English
Primarily Uses
RMMV
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?
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,180
Reaction score
715
First Language
Dutch
Primarily Uses
RMMV
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.
 

boikish

Always trying to help :)
Veteran
Joined
Sep 8, 2016
Messages
136
Reaction score
43
First Language
English
Primarily Uses
N/A
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.
 

EclipseVRP

Veteran
Veteran
Joined
Jan 22, 2020
Messages
42
Reaction score
8
First Language
English
Primarily Uses
RMMV
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!
 

EclipseVRP

Veteran
Veteran
Joined
Jan 22, 2020
Messages
42
Reaction score
8
First Language
English
Primarily Uses
RMMV
Update, the better system boikish suggested is the way to go, thanks!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Are the export options for MZ known yet?
I thought they were supposed to be my friends T_T
Anyone else ever feel bad about always needing to ask for help on their game..?
I have ideas but can't put them together...but I will somehow finish a game.
My app store submission for Knight Bewitched 2 got rejected - I forgot that Google's not as fond of scantily clad girls as Steam is. I'll have to replace my cover art...

Forum statistics

Threads
100,642
Messages
978,042
Members
132,258
Latest member
ballsmahoney69420
Top