MZ Clickable Events

Hello! I was wondering if there was any way to create clickable events for my game. Like when you click on an event it would activate without you having to walk over there. If there isn't a script maybe there is a plugin that can assist me instead? Thank you!
Hmm. For MV, this is one of the big things that TDDP_MouseSystemEx does, but… I don't know if that plugin would be compatible with MZ. It also does some things that are redundant in MZ (because they've become part of the core engine).

If you can't find anything else, perhaps it could be a last-resort choice?
I think there are mouse plugins that you could use, but unfortunately, I'm not familiar with very many MZ plugins. You could search for something like MZ Mouse System. I did see a Mouse System plugin by DK.

However, if you can't find a specific plugin that will work for you, you could do this another way.

MZ comes with a default plugin called ButtonPicture. This allows you to make an image/picture clickable. The plugin calls a Common Event when the image is clicked. You could have the Common Event turn on a switch that activates the Map Event that you want. The Map Event would have that switch as a Condition on page 1. It can even be a self-switch.

I would consider this method to be a work around and probably not the best or more efficient solution if you need to do this many times.

Perhaps someone else will know of a specific plugin that would fit your use case directly.

Good luck!
Here is a small script override for the onMapTouch method for MZ that might work the way you want. Granted, there is no way to check or guarantee compatibility with other plugins (since I usually just test on a new project).

Feel free to use and modify as needed. Save the edit below as a plugin (untested). If you need more, you'll have to check out other plugins.

In your event, just put <click> in the notes field of the event and it should allow you to activate the event without moving to it. If it doesn't have <click>, then it will proceed as normal.
JavaScript:
Scene_Map.prototype.onMapTouch = function() {
    const x = $gameMap.canvasToMapX(TouchInput.x);
    const y = $gameMap.canvasToMapY(TouchInput.y);
    const event = $gameMap.eventsXy(x, y)[0];
    if (event && event.event().meta.click) {
        event.start();
    } else {
        $gameTemp.setDestination(x, y);
    }
};

Original thread: https://forums.rpgmakerweb.com/threads/clickable-events.180533/