If you don't show us what you did, we can't tell you what you did wrong (if anything). Also not a good idea to change those files directly - better to create a plugin. Unlikely to happen now with MV (unless you're using an older version), but if you ever update the editor and update your project to use the latest version of files, you'd lose all your changes.
I changed it back like this and turn on the switch 25
Game_Player.prototype.checkEventTriggerHere = function(triggers) {
if (this.canStartLocalEvents()&&!$gameSwitches.value(25)) {
this.startMapEvent(this.x, this.y, triggers, false);
}
};
Game_Player.prototype.checkEventTriggerThere = function(triggers) {
if (this.canStartLocalEvents()) {
var direction = this.direction();
var x1 = this.x;
var y1 = this.y;
var x2 = $gameMap.roundXWithDirection(x1, direction);
var y2 = $gameMap.roundYWithDirection(y1, direction);
this.startMapEvent(x2, y2, triggers, true);
if (!$gameMap.isAnyEventStarting() && $gameMap.isCounter(x2, y2)&&!$gameSwitches.value(25)) {
var x3 = $gameMap.roundXWithDirection(x2, direction);
var y3 = $gameMap.roundYWithDirection(y2, direction);
this.startMapEvent(x3, y3, triggers, true);
}
}
};
Game_Player.prototype.triggerAction = function() {
if (this.canMove()) {
if (this.triggerButtonAction()&&!$gameSwitches.value(25)) {
return true;
}
if (this.triggerTouchAction()&&!$gameSwitches.value(25)) {
return true;
}
}
return false;
};