Can the buttons in the conditional branch be customized?

mark88

Warper
Member
Joined
Feb 27, 2021
Messages
2
Reaction score
0
First Language
chinese
Primarily Uses
N/A
Hello I may need help. I am a beginner and not very familiar with programming, so I need you. I have a problem in MZ. I want to use branch conditions to make a save function, such as pressing the button "S" to save, and "L" to load the game. Do you have any solutions?

Script or plugin
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,339
Reaction score
8,076
First Language
German
Primarily Uses
RMMV
yes and no

full keyboard scripts and plugins have always been developed for the makers - if they don't exist yet for MZ they will become available shortly.

however nothing can change the editor that way, the plugins will only give script functions to enable checking for those other keys.
 

mark88

Warper
Member
Joined
Feb 27, 2021
Messages
2
Reaction score
0
First Language
chinese
Primarily Uses
N/A
yes and no

full keyboard scripts and plugins have always been developed for the makers - if they don't exist yet for MZ they will become available shortly.

however nothing can change the editor that way, the plugins will only give script functions to enable checking for those other keys.
Ok i seem to get it
Although it’s a bit regretful, but I’m glad you answered my question ...

Do you know how to customize buttons using scripts?

Maybe there are other ways?
On the map Prepare a button and use an event to click?
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,365
Reaction score
1,775
First Language
EN
Primarily Uses
RMMZ
As mentioned, the game does not recognise the "L" and "S" buttons by default. So you need a plugin to add the button to the game's key-map, then have some way to link that to an action (load/save). Some key-mapping plugins let you link inputs directly to events. Otherwise, you can try checking for input via the standard script calls, e.g. Conditional Branch > Script:
JavaScript:
Input.isTriggered("ok");
Some plugin options:
  1. DK_FullInput
    • Looks very thorough; keyboard + gamepad; requires paid license for commercial use.
  2. VisuStella MZ Button Common Events
    • I don't know much about this one; it's paid but probably very stable and flexible.
  3. Cae_KeyboardInputs (thread)
    • Set keyboard inputs; optionally bind keys to common events; no gamepad support; free.
 

Latest Threads

Latest Profile Posts

unknown.png

Been feeling that my characters spent too much time exploring caves, so I figured it was time to explore abandoned keeps instead.
Did you had some minor hitches with RMMZ? Come report to my topic where I did the same! [Just another rant from a RM veteran + Suggestions and Solutions] All opinions are welcome!
Squashing some bugs before releasing plugin :LZScool:The testing phase is taking more time than what I expected...

Forum statistics

Threads
110,325
Messages
1,052,358
Members
143,361
Latest member
tenjung
Top