Interact NPCs with custom keys

Hello everyone!
I would like to figure it out, how to interact NPCs with custom keys.
I use Conditional Branch, then I set up a script " Input.isTriggered('q') " (I set up the q key into the Input.keyMapper before)
And it works too. The problem is that if I want to make it work, I have to run towards the NPC (with Trigger: Event Touch and with Trigger: Player Touch too). If I just stand besides them, it doesn't interact with them...
How can I solve this?

I've moved this thread to MV Support. Thank you.

Hi there!

To interact with an event with the trigger Action Button, the button needs to be mapped as "ok".
So on the key mapper:
Input.keyMapper[Q CODE] = "ok"

Another way would be to go into the proper functions of the Game Player class and add the condition of the q button triggered into them to trigger the event.

Or you can try one of my plugins that let you do activate events with other keyboards button:


You need my core plugin too:
or you can use [HIME_EventTriggerLabels], as they use the base keys
available, with a keymapper plugin, you cam use the entire keyboard.

Eliaquim plugins might works a slightly different on the trigger part,
so you need to see which one works best for you.
Thank you both for the answers. Right now, neither is good enough. Right now I just can't buy Eliaquim's plugin.
The HIME_EventTriggerLabels is a great plugin, it is work if I want to interact with an NPC. My bad, I didn't tell you why I need it. I'm making a battle system, so E button is a simple attack, Q is a magic attack. It is work correctly with the plugin. BUT... The enemy has to be on Trigger: Event Touch, so they can attack me too. But if it is on Event Touch, when they tries to attack me, it runs the entire event page, even if I don't press any buttons.
Thank you both for the answers. Right now, neither is good enough. Right now I just can't buy Eliaquim's plugin.
The HIME_EventTriggerLabels is a great plugin, it is work if I want to interact with an NPC. My bad, I didn't tell you why I need it. I'm making a battle system, so E button is a simple attack, Q is a magic attack. It is work correctly with the plugin. BUT... The enemy has to be on Trigger: Event Touch, so they can attack me too. But if it is on Event Touch, when they tries to attack me, it runs the entire event page, even if I don't press any buttons.
My plugin also has a free version. See if it can help you.
My plugin also has a free version. See if it can help you.
Really? I saw that $8 version only but I'll check it again tomorrow after work. Thank you 🙂 I hope that will work.
I had no time for it 😀
Okay, now I'm trying to make Eliaquim's plugin work... But I can't... Do you have a discord or something? I'd buy the plugin if I can make it work, because in a clean project, it works as I want it to work. I just can't make it work on my main project. I tried to deactivate some of the plugins, but still nothing...

Original thread: https://forums.rpgmakerweb.com/threads/interact-npcs-with-custom-keys.149821/