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 Timing Bar MZ - MNKR_HzTimingBarMZ.js

Plugin desc : Execute the timing bar by inputting buttons in time.

License : MIT License

Author : munokura

Website : http://x.com/munokura

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

File name : MNKR_HzTimingBarMZ.js

Help of plugin :

@target MZ
@url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_HzTimingBarMZ.js
@plugindesc Execute the timing bar by inputting buttons in time.
@author munokura
@license MIT License

@help
Executes a timing bar, requiring button presses in time.
Set and execute the timing bar using a plugin command.

The cursor moves toward the bar’s end point.
The bar will end when an empty area is filled in and a value of 0 is assigned.
The variable will be assigned the higher of the Hit (1) or Critical (2) points
entered by the end.
However, if there is a required input range, 0 will be assigned if that range
is not filled in.

The variable will be assigned and the bar will end when the bar’s end is
reached or the clear condition (all required, hit, and critical conditions
have been met).

Command Help Supplement
[hit_area]
Sets the minimum and maximum values of the hit area between 0 and 100.
min-max
Example:
70-90

[critical_area]
Sets the minimum and maximum values of the critical area between 0 and 100.
min-max
Example)
90-95

[require_area]
Set the minimum and maximum values for the required input range(s) between 0
and 100.
min-max,min-max,...
If you do not enter all required inputs, button presses within the hit and
critical ranges will result in a miss.
* Be sure to set the required inputs before the hit and critical ranges.
Example)
10-20 # Required area is between 10 and 20
20-30,50-60 # Required area is between 20 and 30, between 50 and 60
No input # No required area

# Contact
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
Modifications and redistribution are permitted without permission from the
author, and there are no restrictions on use (commercial, 18+, etc.).

Ver. 0.0.1 by munokura (April 11, 2022)
Ported to MZ
Fixed an issue where values were not assigned to variables.

Ver. 0.0.2 by munokura (April 12, 2022)
Fixed an issue where an infinite loop would occur if no text was displayed
after a plugin command.
Fixed an issue where a required area would always result in a miss if it was
placed after another area.

Ver. 0.0.3 by munokura (May 7, 2023)
Fixed an issue where the hit value would be obtained when scoring a hit after
a critical hit.

Ver. 0.0.4 by munokura (May 7, 2023)
Fixed an issue where the previous score would affect subsequent attempts.

Ver. 0.1.0 by munokura (May 7, 2023)
Changed the game so that if the clearing conditions are met at the time of a
hit, the game clears without waiting until the end.

@param bar width
@text Bar Width
@desc Bar Width
@type number
@default 500

@param required SE
@text Required area hit sound effect
@desc Sound effects when hitting a required area
@type file
@default Decision2
@dir audio/se/

@param hit SE
@text Hit area hit sound effect
@desc Sound effect when hitting the hit area
@type file
@default Attack2
@dir audio/se/

@param critical SE
@text Critical area hit sound effect
@desc Sound effect when hitting a critical area
@type file
@default Attack3
@dir audio/se/

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

@command HzTimingBar
@text Timing bar execution
@desc Run the timing bar.
@arg varNumber
@text Result assignment variable ID
@desc The variable number that returns the result. If it’s a miss, 0 is returned, if it’s a hit, 1 is returned, and if it’s a critical hit, 2 is returned.
@type variable
@default 0
@arg hitArea
@text Hit Range
@desc Set the minimum and maximum values of the hit range between 0 and 100. min-max
@default 70-90
@arg criticalArea
@text Critical Range
@desc Set the minimum and maximum values of the critical range between 0 and 100. min-max
@default 10-20
@arg requireArea
@text Required input range
@desc Set the minimum and maximum values of the required input range (multiple values allowed) between 0 and 100. min-max,min-max. If not used, leave blank.
@arg x
@text Command Position X
@desc Specify the display position of the command. -1 is the center of the screen.
@type number
@default -1
@min -1
@arg y
@text Command position Y
@desc Specify the display position of the command. -1 is the center of the screen.
@type number
@default -1
@min -1

スポンサードリンク

-MZ plugins

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