RMMV *SOLVED*How to get Galv's Tools to use tool when 'ok' is pressed, but not overwrite 'ok' functionality

patternBlue

Villager
Member
Joined
Jan 31, 2020
Messages
15
Reaction score
7
First Language
English
Primarily Uses
RMMV
I am using the plugin Galv's Tools (https://galvs-scripts.com/2016/11/20/mv-tools/). It allows you to setup which keyboard button you want to press when using the tools. When you press the button to use the tool, it checks if the event in front has a specific note tag, and if so, it calls a common event that you define inside the tool item. By default, the button to use tools is 'alt'.

If I set up the plugin options for Galv's Tools to use the 'ok' button for tools instead of the 'alt' button, then it overwrites the normal 'ok' function and I can no longer activate events.

What I want to do is have the 'ok' button activate events as normal, but also be the same button for using tools.

So, for example, if my player is using spacebar to talk to NPCs, dismiss messages, etc, I want them to also be able to use spacebar when they are in front of an event with <crop> note tag to water the plant (or use whatever is the current tool).


Any suggestions on how I can get one key to do both?
 

patternBlue

Villager
Member
Joined
Jan 31, 2020
Messages
15
Reaction score
7
First Language
English
Primarily Uses
RMMV
I figured it out on my own, actually :kaoswt:
 

Latest Threads

Latest Posts

Latest Profile Posts

Finally finished the first hand-drawn map! It took me a week, but I'm so proud!
Actual line of code I just had to write for a plugin:

return Object.keys(this._shopStock).map(key => key.split(",")).map(element => element.map(value => Number(value))).filter(key => key[0] === mapId && key[1] === eventId);
SF_Vehicle2 and SF_People2_8 added!
index.php

Forum statistics

Threads
118,444
Messages
1,116,035
Members
155,407
Latest member
RobertSkinner
Top