- Pokémon Essentials Version
- v21.1 ✅
The Charge Bar Zone Minigame adds a fully customizable timing-bar mechanic to Pokémon Essentials.
This plugin lets you display a bar on screen where the player must hold the confirm key to fill a gauge and release it inside a target zone.
Supports the following:
Use from any event with a single script call, and branch using variables for precise control over outcomes.
Setup Instructions:
1. Download the zip file and extract the folder into the Plugins folder of your project.
2. Add your bar outline graphic to Graphics/Pictures/ (Example: Graphics/Pictures/baroutline.png)
Calling the minigame from the event editor
Use the script command in an event. An example is as follows:
The following parameters have to be set in the exact same order:
outline_name: Filename in Graphics/Pictures for the outline sprite. Required.
zone_size: Width of the zone as a percentage of the bar width (a value from 0 to 1)
zone_center: Horizontal position of the zone’s center. (a value from 0 to 1)
zone_color: Overlay color of the zone (default is red, should be a color in the format Color.new(r, g, b, a))
fill_color: Color of the filling bar (default is green, should be a color in the format Color.new(r, g, b, a))
speed: How fast the bar fills up. (pixels per frame, minimum is 1)
This plugin lets you display a bar on screen where the player must hold the confirm key to fill a gauge and release it inside a target zone.
Supports the following:
- Custom outline sprite (auto-sized from your image)
- Adjustable zone size and zone position
- Custom zone color and fill color
- Adjustable fill speed
- Event branching with four result codes (Success / Too Low / Too High / Backed Out)
Use from any event with a single script call, and branch using variables for precise control over outcomes.
Setup Instructions:
1. Download the zip file and extract the folder into the Plugins folder of your project.
2. Add your bar outline graphic to Graphics/Pictures/ (Example: Graphics/Pictures/baroutline.png)
Calling the minigame from the event editor
Use the script command in an event. An example is as follows:
Ruby:
$game_variables[10] = pbChargeBarZone(
"BarOutline", # Outline sprite (required)
0.25, # Zone size
0.70, # Zone center position
Color.new(255,50,50,160), # Zone color
Color.new(50,230,255), # Fill color
5 # Fill speed (pixels per frame)
)
The following parameters have to be set in the exact same order:
outline_name: Filename in Graphics/Pictures for the outline sprite. Required.
zone_size: Width of the zone as a percentage of the bar width (a value from 0 to 1)
zone_center: Horizontal position of the zone’s center. (a value from 0 to 1)
zone_color: Overlay color of the zone (default is red, should be a color in the format Color.new(r, g, b, a))
fill_color: Color of the filling bar (default is green, should be a color in the format Color.new(r, g, b, a))
speed: How fast the bar fills up. (pixels per frame, minimum is 1)
- Credits
- moonlitjazz