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 Stopping Feature - NUUN_StoppingFeature.js

Plugin desc : Stopping feature

License : MIT License

Author : NUUN

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

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

File name : NUUN_StoppingFeature.js

Help of plugin :

* @target MZ
 * @plugindesc Stopping feature
 * @author NUUN
 * @version 1.3.0
 * 
 * @help
 * You can set a feature that when your HP goes from 2 or more to 0 due to damage during battle, your HP will stop at 1 instead of becoming incapacitated.
 * When HP is 1, a stop will not occur.
 * By using it in conjunction with "NUUN_ConditionsBase", you can set a characteristic that stops under certain conditions.
 * 
 * Memo field with characteristics
 * <StoppingRatio:[rate], [ratio], [condMode]> Activates when the specified percentage HP is exceeded.
 * <StoppingValue:[rate], [hp oe more], [condMode]> Activates when the specified HP is exceeded.
 * [rate]:Activation conditions
 * [ratio]:Percentage of HP before damage is activated. Activates if the remaining HP is equal to or higher than the specified HP percentage.
 * [hp oe more]:The number of HP to activate.
 * [condMode]:Mode when specifying conditions in "NUUN_ConditionsBase" *Optional
 * <StoppingRatio:100, 30> When HP is 30% or more and you are unable to fight, there is a 100% chance that the damage will stop at 1.
 * <StoppingValue:100, 10> If your HP is 10 or more and you become incapacitated, there is a 100% chance that the damage will stop at 1.
 * <StoppingRatio:50, 0> There is a 50% chance that when you become incapacitated, your HP will stop at 1.
 * Omit [condMode] if "NUUN_ConditionsBase" is not installed.
 * 
 * The following tags require "NUUN_ConditionsBase".
 * <StoppingCond:[id], [id], [id]...> Activated when the attacking battler meets the specified ID conditions.
 * <TargetStoppingCond:[id], [id], [id]...> Activated when the defeated battler meets the specified ID conditions.
 * <PartyStoppingCond:[id], [id], [id]...> Activates when party members meet the specified ID conditions.
 * <TroopStoppingCond:[id], [id], [id]...> Activated when a member of the enemy group meets the specified ID conditions.
 * 
 * <StoppingEraseState:[stateId]> Releases the specified state when the stop is successful.
 * [stateId]:State ID.
 * 
 * <MaxStoppingCount:[count]> Specify the number of times you will stop in one battle. If there is more than one, the maximum finite number is applied.
 * [count]:The number of times.
 * 
 * Skill and item notes
 * <InvalidStopping:[rate]> Skills and items with this tag will invalidate the stopping point.
 * [rate]:Probability of invalidating
 * <InvalidStopping:50> When defeated, there is a 50% chance to nullify the stop.
 * 
 * <ResetStoppingCount> Resets the number of stops.
 * 
 * Terms of Use
 * This plugin is distributed under the MIT license.
 * 
 * Log
 * 12/2/2023 Ver.1.3.0
 * Added a function that allows you to set the number of times it can be activated.
 * Changed the method to set the activation probability as an evaluation formula.
 * 10/14/2023 Ver.1.2.0
 * Added a function that can be activated above a fixed value.
 * Modified to activate when HP is 2 or more.
 * 6/22/2023 Ver.1.1.1
 * Processing correction.
 * 6/21/2023 Ver.1.1.0
 * Added a function to cancel the specified state when stopped.
 * 11/18/2021 Ver.1.3.0
 * First edition.
 * 
 * @param ActorMaxStopping
 * @text Actor maximum number of stops
 * @desc Maximum number of stops for the actor. 0 for unlimited
 * @type number
 * @default 0
 * 
 * @param EnemyMaxStopping
 * @text Enemy maximum number of stops
 * @desc Maximum number of stops for the enmey. 0 for unlimited
 * @type number
 * @default 0
 * 
 * @param StoppingMessage
 * @text Message when stopping
 * @desc A message when you stop. %1 user %2 target
 * @default 
 * @type string
 * 
 * @param ActorStoppingRateFormat
 * @text Actor activation probability
 * @desc The activation probability that the actor will stop. this:$gameActor
 * @type combo
 * @option Math.floor(Math.random() * 100) < rate;
 * @default Math.floor(Math.random() * 100) < rate;
 *  
 * @param EnemyStoppingRateFormat
 * @text Enemy activation probability
 * @desc Probability of activation that will stop the enemy. this:$gameEnemy
 * @type combo
 * @option Math.floor(Math.random() * 100) < rate;
 * @default Math.floor(Math.random() * 100) < rate;
 * 
 * @param StoppingSESetting
 * @text SE setting when stopping
 * @default ------------------------------
 * 
 * @param StoppingSE
 * @text SE
 * @desc SE
 * @type file
 * @dir audio/se/
 * @parent StoppingSESetting
 * 
 * @param volume
 * @text Volume
 * @desc Volume
 * @type number
 * @default 90
 * @parent StoppingSESetting
 * 
 * @param pitch
 * @text Pitch
 * @desc Pitch
 * @type number
 * @default 100
 * @parent StoppingSESetting
 * 
 * @param pan
 * @text Pan
 * @desc Pan
 * @type number
 * @default 50
 * @parent StoppingSESetting
 *

スポンサードリンク

-MZ plugins

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