Select Choices with Mouse Only

mogneto

Gureito Eventer
Member
Joined
Oct 2, 2016
Messages
18
Reaction score
6
First Language
Portuguese
Primarily Uses
RMMV
So, I am doing a Visual Novel game. I've been playing a lot of VNs during the quarentine period and, a thing that i noticed is that in most of them the player can only select the choices with the mouse, meaning you cannot use the space button (the OK button) to do it. I think that's pretty good, since there are players that keep pressing the space button to rapidly pass the dialog when you cannot use the Skip function and it would be a shame for them if they accidentally select a choice they didn't want.

What I want is to do the same in RPG Maker: disable the use of the OK button to select the choices and use only de Left Mouse Button. I want to know if there is a way to do it or a plugin that does it. Thank you.
 
Joined
Dec 16, 2017
Messages
181
Reaction score
596
First Language
English
Primarily Uses
RMMV
If you go into the rpg_core.js you'll find the keyMapper. i think you might be able to just comment out the ok key handling.

edit: actually, that will prevent you from using the enter / space key anywhere, which might be inconvenient.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
Code:
Window_ChoiceList.prototype.isOkTriggered = function() {return false;};
For best compatibility place the plugin file below any other plugins that modify "Window_ChoiceList"
Works well for me. Let me know how it goes. :popcorn:

More info:
To toggle on/off with a Game Switch ;)
Code:
Window_ChoiceList.prototype.isOkTriggered = function() {return $gameSwitches.value(1);};
Replace 1 with the ID you want to use.
 

Attachments

Last edited:

mogneto

Gureito Eventer
Member
Joined
Oct 2, 2016
Messages
18
Reaction score
6
First Language
Portuguese
Primarily Uses
RMMV
Code:
Window_ChoiceList.prototype.isOkTriggered = function() {return false;};
For best compatibility place the plugin file below any other plugins that modify "Window_ChoiceList"
Works well for me. Let me know how it goes. :popcorn:

More info:
To toggle on/off with a Game Switch ;)
Code:
Window_ChoiceList.prototype.isOkTriggered = function() {return $gameSwitches.value(1);};
Replace 1 with the ID you want to use.
It worked! Thank you!
And thank you all for the fast reply. You guys are awesome. <3
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top