An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

MNKR Hz Input Command MZ - MNKR_HzInputCommandMZ.js

Plugin desc : Enter commands using the arrow keys and buttons.

License : MIT License

Author : munokura

Website : http://x.com/munokura

Desc page : https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_HzInputCommandMZ.js

File name : MNKR_HzInputCommandMZ.js

Help of plugin :

@target MZ
@url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_HzInputCommandMZ.js
@plugindesc Enter commands using the arrow keys and buttons.
@author munokura
@license MIT License

@help
You can use plugin commands that execute commands using directional keys and
buttons.

-- Input Command [Required]--
Specify the command content.

2: ↓ 4: ← 6: → 8: ↑ z: Z key x: X key

Example: 2486z
↓←↑→Z key

You can also set commands randomly by writing them as follows.
(Multiple commands can be chained.)
<[Keys to include in command],[Number of inputs]>

Example: <2468,2>
Two random ”↓←↑→” keys are set in the command, such as ↓←, ↑↑, and →←.

<2468,4><zx,1>
Four random ”↓←↑→” keys are set in the command, such as ↓←↑→Z key and ↑↑→←X
key, followed by one Z or X key.

Example of incorrect commands:
<2468,4>z
Random and direct commands cannot be mixed.
Please write it as follows: <2468,4><z,1>.

* Setting a Time Limit
If you want to set a time limit, please start the Maker timer beforehand.
When the timer reaches 0 seconds, the command input will be terminated and the
execution will fail.

# Contact Information
This is a plugin originally created for RPG Maker MV that has been ported to
MZ.
Please contact the modifier for any inquiries.

# Terms of Use
MIT License.
http://opensource.org/licenses/mit-license.php
You may modify and redistribute this without permission from the author, and
there are no restrictions on its use (commercial, R18+, etc.).

@param success SE
@text Input success SE
@desc SE when input (success)
@type file
@default Decision2
@require 1
@dir audio/se/

@param miss SE
@text Input failure SE
@desc SE when inputting (failed)
@type file
@default Buzzer1
@require 1
@dir audio/se/

@param penalty
@text Input error disable time
@desc Time (frames) when input is disabled due to input error
@type file
@default 10
@require 1
@dir audio/se/

@command HzCommand
@text Start command input
@desc Enter commands using the arrow keys and buttons.
@arg mode
@text Continue if input error occurs
@desc true: Continue input even if you make a mistake / false: Fail immediately if you make a mistake
@type boolean
@on Continue typing
@off Failed at that point
@default true
@arg switch_no
@text Result Switch ID
@desc Specify the switch number to set the input result
@type switch
@default 0
@arg command_input
@text Input command (required)
@desc Specify the command content. See the help text for details.
@default <2468,2>
@arg command_x
@text Command display position X
@desc Specifies the display position of the command (-1 is the center of the screen).
@type number
@default -1
@min -1
@arg command_y
@text Command display position Y
@desc Specifies the display position of the command (-1 is the center of the screen).
@type number
@default -1
@min -1
@arg command_align
@text Command display criteria
@desc Specify the criteria for displaying commands
@type select
@default center
@option center
@value center
@option left
@value left
@option right
@value right

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.