>>561
重ね重ねありがとうございます
ですが、スイッチをオンにしてもオフにしても常時属性がついているようなので、前後を書き出してみました
これであっていますか?
ひとまず、スイッチIDは5としました


if (pCounterExtension) {
const _Game_Player_checkEventTriggerThere = Game_Player.prototype.checkEventTriggerThere;
Game_Player.prototype.checkEventTriggerThere = function(triggers) {
_Game_Player_checkEventTriggerThere.apply(this, arguments);
if ($gameSwitches.value(5)) return;
// イベントを起動できる、かつイベントを開始していない。
if (this.canStartLocalEvents() && !$gameMap.isAnyEventStarting()) {
const direction = this.direction();
const x1 = this.x;
const y1 = this.y;