Disabling "Click Movement" in MZ?

I'm building a mystery game, so being able to choose what questions to ask or what answers to give is important. I want players to be able to click question/answer options, but something really annoying keeps happening: Whenever I click an option, the character also moves across the screen. Is there a way to disable "Click Movement" in the game?

I tried looking up plugins (for MZ), but the only plugin I found disabled the mouse ENTIRELY, which isn't what I need. I just need the mouse to not move the character when the screen is clicked. Is there any way I can do this?

(Also, I don't have the ability to edit my js codes, so coding isn't what I'm looking for either.)
This plugin might help with your problem ---> DisableTouchInput.js
Yeah, that was the plugin I found that disabled the mouse altogether so I couldn't click the question/answer options. I couldn't even click "start game". 😅

I want it so the mouse is not able to control the character's movement, but still able to click the menu and question/answer options.
This?
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Disable touch movement on map.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/173375/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Override - never set move destination.
Game_Temp.prototype.setDestination = function() {};
Yeah, that was the plugin I found that disabled the mouse altogether so I couldn't click the question/answer options. I couldn't even click the "start game" option. =/
I don't think you can do this without code. I have a solution tho. Try to find rpg_objects.js inside of the js folder in your game's files. 41st column should have a code like this:
Game_Temp.prototype.setDestination = function(x, y) {
this._destinationX = x;
this._destinationY = y;
};
add return on top of this._destinationX. It should look like this:
Game_Temp.prototype.setDestination = function(x, y) {
return;
this._destinationX = x;
this._destinationY = y;
};
that worked for me and the game didn't disable the click function entirely.
"Disable touch movement on map." is exactly what I need!

Would messing with the .js files in text format work though? Because when I click edit, it opens in a .txt document.

How do I apply it?
This?
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Disable touch movement on map.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/173375/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Override - never set move destination.
Game_Temp.prototype.setDestination = function() {};
Try to find rpg_objects.js inside of the js folder in your game's files. 41st column should have a code like this:
add return on top of this._destinationX. It should look like this:
This is bad practice/not good advice. Changes to the code should always be made as a plugin.

So you would copy the entire modified function from xraler's post, paste it into a text editor, save it as a *.js file, and include that as a plugin (or use the version caethyril provided).

Also, this thread is about RPG Maker MZ so there is no rpg_objects.js file.

@rainbowgems Can you explain the setup as a whole? When I do the Show Choices event command and click one of the choices, my character does not move.
I'm using this character creation plugin:

When the option pop up on screen, clicking them makes the character move. I figure if I can disable touch movement on the map altogether, that would fix the problem.

This is bad practice/not good advice. Changes to the code should always be made as a plugin.

So you would copy the entire modified function from xraler's post, paste it into a text editor, save it as a *.js file, and include that as a plugin.

@rainbowgems Can you explain the setup as a whole? When I do the Show Choices event command and click one of the choices, my character does not move.
I'm using this character creation plugin:

When the option pop up on screen, clicking them makes the character move. I figure if I can disable touch movement on the map altogether, that would fix the problem.
I think that is a very drastic step to take in order to accommodate an incorrectly-coded plugin.

I've tried other code written by that author and it was also incorrectly written - I generally recommend against their products.

Of course, you should reach out to them to fix the bug, if they know how.

It's pretty easy to event a character selection menu, there's even a tutorial on it in the Blog link at the top of this site.


And there are other plugins available which should work correctly.
Ah. Oof, I had no idea the author had a reputation. I already bought the plugin though, so its a bit late for me to fuss over its imperfection. 😅

It's okay because your suggestion about xraler's code worked! Thank you all so much!!
Ah. Oof, I had no idea the author had a reputation. I already bought the plugin though, so its a bit late for me to fuss over its imperfection. 😅

It's okay because your suggestion about xraler's code worked! Thank you all so much!!
No problem!

Original thread: https://forums.rpgmakerweb.com/threads/disabling-click-movement-in-mz.173375/