MV Events only jump to move on a specific map

Hello! I hope this is the correct place to put this.

I am using the srpg group of plugins to have a tactical style rpg. What I want is for on specific maps, events to be set to move by jumping instead of the typical walking. Since this is free movement I can't use the movement options on the event itself. I'm not familiar enough with Javascript to edit this, but I did manage to find the below on the forums. Does anyone know the best way to go about accomplishing this for events on a single map?

Spoiler: Code geared towards doing this with an actor
= function(d) {
this.setMovementSuccess(this.canPass(this._x, this._y, d));
if (this.isMovementSucceeded()) {
switch (d) {
case 2: return this.jump( 0, 1);
case 4: return this.jump(-1, 0);
case 6: return this.jump( 1, 0);
case 8: return this.jump( 0, -1);
}
}
};
Can you post the complete code function or a link to where you found it? It's hard to suggest modifications without knowing where in the code this will go.
Can you post the complete code function or a link to where you found it? It's hard to suggest modifications without knowing where in the code this will go.
Certainly, I found it here, and it appears to be for actors only.

I'm going to try to comb through srpg_core to determine where exactly it's setting event movement, maybe I can affect something there.
Wow, that thread is...wow.

So if I understand your request correctly, it should be a simple combination of the modified function from caethyril with the default code.

Code:
Game_CharacterBase.prototype.moveStraight = function(d) {
  this.setMovementSuccess(this.canPass(this._x, this._y, d));
  if (this.isMovementSucceeded()) {
    if ($gameSwitches.value(14)) // Change this number as desired
    {
      switch (d) {
        case 2: return this.jump( 0,  1);
        case 4: return this.jump(-1,  0);
        case 6: return this.jump( 1,  0);
        case 8: return this.jump( 0, -1);
      }
    }
   else
   {
        this.setDirection(d);
        this._x = $gameMap.roundXWithDirection(this._x, d);
        this._y = $gameMap.roundYWithDirection(this._y, d);
        this._realX = $gameMap.xWithDirection(this._x, this.reverseDir(d));
        this._realY = $gameMap.yWithDirection(this._y, this.reverseDir(d));
        this.increaseSteps();
   }
  }
 else {
        this.setDirection(d);
        this.checkEventTriggerTouchFront(d);
    }
};

If this works the way you want, you would simply turn on switch 14 (I marked the line for you to change to whichever switch you like) and it'll make everything hop. Turning the switch back off returns to normal movement.
Yes it was quite a thread haha. Thank you! I'll give this a shot tonight!

Original thread: https://forums.rpgmakerweb.com/threads/events-only-jump-to-move-on-a-specific-map.155166/