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

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

MZ plugins

NUUN Party Limit Gauge - NUUN_PartyLimitGauge.js

Plugin desc : Party limit gauge

License : MIT License

Author : NUUN

Website : https://github.com/nuun888/MZ/blob/master/NUUN_PartyLimitGauge.js

Download Page : https://raw.githubusercontent.com/nuun888/MZ/master/NUUN_PartyLimitGauge.js

File name : NUUN_PartyLimitGauge.js

Help of plugin :

* @target MZ
 * @plugindesc  Party limit gauge
 * @author NUUN
 * @version 1.6.5
 * @base NUUN_Base
 * @orderAfter NUUN_Base
 * @orderAfter NUUN_GaugeValueEX
 * 
 * @help
 * Implement gauges shared by party members and enemy groups.
 * Limit points are charged when taking damage, defeating, winning, losing, and escaping.
 * All evaluation expressions are available.
 * 
 * For color settings, you can enter a color code in the text tab.
 * 
 * Get parameters
 * $gameParty._limitGauge Ally's limit gauge
 * $gameTroop._limitGauge Enemy limit gauge
 * 
 * skill notes
 * <limitCost:[cost]> Set the skill cost.
 * [cost]:cost
 * <limitCost:50> Consume 50 limit gauge as skill cost.
 * 
 * <LimitCostWidth:[string]> Specify the display width of the cost as a string. The width of the specified string affects the width of the skill name.
 * [string]:string
 * <LimitCostWidth:00000> Let the length of 00000 be set as the display width of the cost.
 * 
 * Skill or item notes
 * <LimitEffect:10> Increases limit gauge by 10.
 * <LimitEffect:-10> Reduces limit gauge by 10.
 * If the target is an actor, the limit gauge of the ally will increase or decrease, and if it is an enemy, the limit gauge of the enemy group will increase or decrease.
 * 
 * Skill or item notes
 * <LimitAttackStr:[eval]> When attacking with this skill or item, the limit gauge increases. If this description is present, this setting will be applied to the "AttackAmount".
 * <LimitCriticalStr:[eval]> When this skill or item is used, the limit gauge increases when a critical hit is made. If this description exists, this setting will be applied to the "CriticalAmount".
 * <LimitDamageStr:[eval]> When you receive damage from this skill or item, the limit gauge increases. If this description exists, this setting will be applied to "DamageAmount".
 * [eval]:Evaluation formula
 * 
 * Evaluation formula
 * Damage received
 * a: Target damage battler b: Attacker da: Damage battler database damage: Damage value cri: Critical
 * rate:Target attribute resistance value
 * 
 * Successful attack, critical
 * a: Attacker butler da: Attacker butler database cri: Critical success target: Target rate: Target attribute resistance value
 * 
 * Defeat
 * a: Defeated Battler data da: Defeated Battler database
 * 
 * Evaluation formula
 * Damage received
 * a: Damaged battler data da: Damaged battler database damage: Damage value
 * Successful attack, critical
 * a: Attacker's battler data da: Attacker's battler database cri: Critical success
 * Defeat
 * a: Defeated Battler data da: Defeated Battler database
 * 
 * When used together with ”NUUN_GaugeValueEX”
 * Please set the following plug-in parameters with "NUUN_GaugeValueEX".
 * Gauge color 1
 * Gauge color 2
 * 
 * Terms of Use
 * This plugin is distributed under the MIT license.
 * 
 * Log
 * 1/2/2025 Ver.1.6.5
 * Fixed the attack calculation formula to use target and elemental resistance.
 * Fixed the damage calculation formula to use attacker and elemental resistance.
 * 8/22/2024 Ver.1.6.4
 * Fixed an issue where the limit gauge would be displayed after the results were displayed when choosing to end a battle without hiding certain limit gauges.
 * 8/20/2024 Ver.1.6.3
 * Added the ability to hide the gauge in certain situations.
 * 8/9/2024 Ver.1.6.2
 * Added the ability to specify the display priority of gauge sprites.
 * 3/16/2024 Ver.1.6.1
 * Fixed an issue where the limit gauge would disappear on the first turn.
 * 2/17/2024 Ver.1.6.0
 * Added turn time to limit gauge recovery.
 * 7/28/2023 Ver.1.5.2
 * Fixed the problem that display switch of display switch ID was not working.
 * Fixed an issue where enemy limit points were not displayed.
 * 5/20/2023 Ver.1.5.1
 * Fixed typos.
 * Correction of description.
 * 5/13/2023 Ver.1.5.0
 * Added time for successful attack and time for critical hit to the limit gauge recovery settings.
 * 4/1/2023 Ver.1.4.1
 * Fixed limit gauge processing.
 * 4/1/2023 Ver.1.4.0
 * Added function to increase/decrease limit gauge by plug-in command.
 * Unify the display of the gauge when setting the label name with the display of the normal gauge.
 * 1/21/2023 Ver.1.3.0
 * Fixed the problem that the party limit cost overlaps when the cost of MP and TP is set.
 * Added a function that allows you to specify the display width when the skill cost of MP and TP is set.
 * Added a function that allows you to specify the cost display width for each skill that activates the party limit.
 * 12/28/2022 Ver.1.2.1
 * Processing fixes.
 * 12/24/2022 Ver.1.2.0
 * Added a function that allows you to set items and skills that increase or decrease the limit gauge.
 * 12/15/2022 Ver.1.1.2
 * Change the Type of the color specification plug-in parameter to color. (Ver.1.6.0 or later)
 * Fixed an issue that caused an error when imaging a gauge in Gauge Imaging.
 * 6/11/2022 Ver.1.1.1
 * Fixed issue where Party Limit was not reset at the start of battle.
 * 12/20/2021 Ver.1.1.0
 * Supports gauge imaging.
 * 12/19/2021 Ver.1.0.4
 * Fixed the problem that an error occurs when using "NUUN_GaugeValueEX" together.
 * 12/5/2021 Ver.1.0.3
 * Conflict measures with "NUUN_GaugeValueEX".
 * 11/24/2021 Ver.1.0.2
 * Fixed an issue where skills could not be used when limit point cost and remaining cost were the same.
 * 11/24/2021 Ver.1.0.1
 * Fixed an issue where an error occurred when winning a battle or escaping.
 * 11/15/2021 Ver.1.0.0
 * First edition.
 * 
 * @command LimitValue
 * @desc Increases or decreases the limit gauge.
 * @text Increase/decrease limit gauge
 * 
 * @arg Target
 * @text Target
 * @desc Specify the target to increase or decrease the limit gauge.
 * @type select
 * @default 0
 * @option Party member
 * @value 0
 * @option Troop (only in battle)
 * @value 1
 * 
 * @arg Value
 * @type number
 * @default 0
 * @text Increment/decrease value
 * @desc Enter the value to increase or decrease the limit gauge.
 * @min -99999999
 * 
 * 
 * @param MaxLimitValue
 * @desc Max limit gauge.
 * @text Max limit gauge
 * @type number
 * @default 1000
 * 
 * @param BattleStartReset
 * @desc Resets the party limit gauge value at the start of battle.
 * @text Initialize at each battle start
 * @type boolean
 * @default false
 * 
 * @param GaugeSetting
 * @text Gauge setting
 * @default ------------------------------
 * 
 * @param PartyGaugeVisible
 * @desc Displays the party limit gauge.
 * @text Gauge display
 * @type boolean
 * @default true
 * @parent GaugeSetting
 * 
 * @param PartyGaugeShowSwitch
 * @desc Specify a switch to display the party limit gauge. When hidden, the gauge will not accumulate.
 * @text Display switch ID
 * @type switch
 * @default 0
 * @parent GaugeSetting
 * 
 * @param PartyLimitValueVisible
 * @desc Displays party limit points.
 * @text Limit point display
 * @type boolean
 * @default true
 * @parent GaugeSetting
 * 
 * @param PartyGaugeLabel
 * @desc Party gauge label.
 * @text Party gauge label
 * @type string
 * @default 
 * @parent GaugeSetting
 * 
 * @param PartyGauge_LabelFontSize
 * @desc Label font size. (difference from main font)
 * @text Label font size
 * @type number
 * @default 0
 * @min -99
 * @parent GaugeSetting
 * 
 * @param PartyGauge_LabelColor
 * @desc Label text color. (You can fill in the color code in the text tab)
 * @text Label text color
 * @type color
 * @default 16
 * @min 0
 * @parent GaugeSetting
 * 
 * @param PartyGauge_X
 * @desc Set the X coordinate.
 * @text X-coordinate
 * @type number
 * @default 0
 * @min -9999
 * @parent GaugeSetting
 * 
 * @param PartyGauge_Y
 * @desc Set the Y coordinate.
 * @text Y-coordinate
 * @type number
 * @default 0
 * @min -9999
 * @parent GaugeSetting
 * 
 * @param PartyGauge_Width
 * @desc Set the width.
 * @text Gauge width
 * @type number
 * @default 500
 * @min 0
 * @parent GaugeSetting
 * 
 * @param PartyGaugeColor1
 * @desc Specifies color 1 of the gauge. (You can fill in the color code in the text tab)
 * @text Gauge color 1
 * @type color
 * @default 6
 * @parent GaugeSetting
 * 
 * @param PartyGaugeColor2
 * @desc Specifies color 2 of the gauge. (You can fill in the color code in the text tab)
 * @text Gauge color 2
 * @type color
 * @default 14
 * @parent GaugeSetting
 * 
 * @param GaugePriority
 * @text Limit gauge display sprite
 * @desc Specifies the display sprite for the limit gauge.
 * @type select
 * @option Spriteset_Battle
 * @value 'Spriteset_Battle'
 * @option Scene_Battle
 * @value 'Scene_Battle'
 * @option BattleField
 * @value 'BattleField'
 * @default 'Spriteset_Battle'
 * @parent GaugeSetting
 * 
 * @param EnemyGaugeSetting
 * @text Enemy Gauge Settings
 * @default ------------------------------
 * 
 * @param EnemyGaugeVisible
 * @desc Displays enemy party limit gauge.
 * @text Enemy gauge display
 * @type boolean
 * @default true
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGaugeShowSwitch
 * @desc Specify a switch to display the party limit gauge. When hidden, the gauge will not accumulate.
 * @text Display switch ID
 * @type switch
 * @default 0
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyLimitValueVisible
 * @desc Displays enemy limit points.
 * @text Limit point display
 * @type boolean
 * @default false
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGaugeLabel
 * @desc Enemy group gauge label.
 * @text Enemy group gauge label
 * @type string
 * @default 
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGauge_LabelFontSize
 * @desc Label font size. (difference from main font)
 * @text Label font size
 * @type number
 * @default 0
 * @min -99
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGauge_LabelColor
 * @desc Label text color. (You can fill in the color code in the text tab)
 * @text Label text color
 * @type color
 * @default 16
 * @min 0
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGauge_X
 * @desc Set the X coordinate.
 * @text X-coordinate
 * @type number
 * @default 0
 * @min -9999
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGauge_Y
 * @desc Set the Y coordinate.
 * @text Y-coordinate
 * @type number
 * @default 0
 * @min -9999
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGauge_Width
 * @desc Set the width.
 * @text Gauge width
 * @type number
 * @default 500
 * @min 0
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGaugeColor1
 * @desc Specifies color 1 of the gauge. (You can fill in the color code in the text tab)
 * @text Gauge color 1
 * @type color
 * @default 6
 * @parent EnemyGaugeSetting
 * 
 * @param EnemyGaugeColor2
 * @desc Specifies color 2 of the gauge. (You can fill in the color code in the text tab)
 * @text Gauge color 2
 * @type color
 * @default 14
 * @parent EnemyGaugeSetting
 * 
 * @param ChargeSetting
 * @text Charge setting
 * @default ------------------------------
 * 
 * @param DamageAmount
 * @desc Amount of recovery when damaged.
 * @text Recovery amount when damaged
 * @type string
 * @default Math.floor(25 * damage / a.mhp)
 * @parent ChargeSetting
 * 
 * @param AttackAmount
 * @desc Amount recovered from a successful attack.
 * @text Amount recovered after a successful attack
 * @type string
 * @default 
 * @parent ChargeSetting
 * 
 * @param CriticalAmount
 * @desc Critical recovery amount.
 * @text Critical recovery amount
 * @type string
 * @default 
 * @parent ChargeSetting
 * 
 * @param VictoryAmount
 * @desc Amount recovered after winning.
 * @text Victory Recovery Amount
 * @type string
 * @default 
 * @parent ChargeSetting
 * 
 * @param LoseAmount
 * @desc Recovery amount after defeat.
 * @text Loss recovery amount
 * @type string
 * @default 
 * @parent ChargeSetting
 * 
 * @param EscapeAmount
 * @desc Recovery amount when running away.
 * @text Escape Recovery Amount
 * @type string
 * @default 
 * @parent ChargeSetting
 * 
 * @param DieAmount
 * @desc Amount of recovery when defeated. a: defeated battler data da: defeated battler database
 * @text Amount recovered when defeated
 * @type string
 * @default 
 * @parent ChargeSetting
 * 
 * @param TurnAmount
 * @desc Amount of recovery over the course of a turn.
 * @text Recovery amount after turn
 * @type string
 * @default 
 * @parent ChargeSetting
 * 
 * @param CostSetting
 * @text Cost setting
 * @default ------------------------------
 * 
 * @param LimitCostColor
 * @desc Consumption limit gauge cost color number.
 * @text Consumption limit gauge cost color
 * @type color
 * @default 16
 * @parent CostSetting
 * 
 * @param CostWidth
 * @desc Cost range for multiple costs. blank and disabled
 * @text Cost range for multiple costs
 * @type string
 * @default 00000
 * @parent CostSetting
 * 
 * @param OtherSetting
 * @text Other settings
 * @default ------------------------------
 * 
 * @param WindowHideActorPartyLimit
 * @desc Hides the ally limit gauge during certain events.
 * @text Hide ally limit gauge specific gauge
 * @type select[]
 * @option Battle starts
 * @value startBattle
 * @option Battle end
 * @value battleEnd
 * @option Battle event
 * @value battleEvent
 * @option Animation
 * @value animation
 * @default []
 * @parent OtherSetting
 * 
 * @param WindowHideEnemyPartyLimit
 * @desc Hides the enemy limit gauge during certain events.
 * @text Hide specific enemy limit gauge
 * @type select[]
 * @option Battle starts
 * @value startBattle
 * @option Battle end
 * @value battleEnd
 * @option Battle event
 * @value battleEvent
 * @option Animation
 * @value animation
 * @default []
 * @parent OtherSetting
 * 
 *

スポンサードリンク

-MZ plugins

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