Alright, so I have on map encounters with both of my games. Now, when a player escapes, I wanted to give them a grace period where they can't be bumped into an encounter again. I also wanted to make it so that opening a chest or watching a cutscene after avoiding following encounters doesn't create a massive queue behind the player. I figured this plugin was perfect:
www.yanfly.moe
Just hit stopmapmovement and events stop... But....
The problem is that some of these on map encounters use this plugin to chase the player when they're spotted:
www.yanfly.moe
And any event that's in range of the player (screen and a half distance-ish) doesn't stop their player-spotting routines, and if they're already alerted they'll continue to follow the player regardless of stop map movement.
However, this does work:
www.yanfly.moe
When a player is put into stealth, events stop following them. This is fine for escaping, since my original escape event had the player turn semi-transparent anyway, but for cutscenes turning transparent doesn't work. There are script calls that turn off the gauge, and the change in speed, but not the transparency.
TL;DR: Is there a way to call event commands from event chase stealth to get the effect of breaking all events on map chasing the player without the opacity change?
I've been looking through the plug-in's javascript and tried this section out:
By calling it as Game_Event.prototype.stealthClearChaseSettings()
It didn't return an error in the console, but it also didn't do anything. I'm at a bit of a loss.
Edit:
Also you've got:
Which seems to be the function that sets the player's opacity based on the plug-in settings. I wonder if I can't splice in a conditional that requires a switch to be on for the opacity to apply...
Stop Map Movement (YEP) - Yanfly.moe Wiki
The problem is that some of these on map encounters use this plugin to chase the player when they're spotted:
Event Chase Player (YEP) - Yanfly.moe Wiki
However, this does work:
Event Chase Stealth (YEP) - Yanfly.moe Wiki
TL;DR: Is there a way to call event commands from event chase stealth to get the effect of breaking all events on map chasing the player without the opacity change?
I've been looking through the plug-in's javascript and tried this section out:
Code:
Game_Event.prototype.stealthClearChaseSettings = function() {
if (this._chasePlayer) this.endEventChase();
if (this._fleePlayer) this.endEventFlee();
this._alertLock = 0;
this._alertPlayer = false;
};
It didn't return an error in the console, but it also didn't do anything. I'm at a bit of a loss.
Edit:
Also you've got:
Code:
Game_CharacterBase.prototype.opacity = function() {
var opacity = Yanfly.ECS.Game_CharacterBase_opacity.call(this);
if (this.isStealthMode()) opacity *= this.stealthTransparencyRate();
return opacity;
};