Triggering an Event with a button press

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
286
Reaction score
336
First Language
English
Primarily Uses
RMMV
I am not sure where I should post this problem. Anyways I am using MV and I am trying to trigger an event when you press a button. For example, if I press the "X" key it causes an event to trigger.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,682
First Language
English
Primarily Uses
RMMZ
Parallel Process event: add a conditional branch and set the button condition on the 4th page.
 

mathmaster74

just...John
Veteran
Joined
Jun 12, 2016
Messages
285
Reaction score
193
First Language
English
Primarily Uses
RMMV
@KazukiT In the setup mentioned by @MushroomCake28 you would want to select the 'Cancel' option on the button drop down list to make it work with the "X" key specifically, since "X" is used to cancel along with Escape. This does, however, if I am not mistaken, mean that any use of either button would potentially trigger the event...so if a player were to, say, exit a menu while on the map and press escape an extra time, they might trigger the event. Another option might be to use PageUp and/or PageDown for such events as they go more or less unused.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
@Math - yeah, most buttons that share a function usually have the same internal symbol used. So if he wants to use "X" any other button that shares the same internal key will also trigger the event

Unless he gets a keyboard plugin which changes this behavior.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Tech Support is for when you can't get the engine to run.

[move]RPGMaker MV[/move]
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top