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

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

MZ plugins

NRP Auto State - NRP_AutoState.js

Plugin desc : v1.02 Automatically adds the state.

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Takeshi Sunagawa (https://newrpg.seesaa.net/)

Website : https://github.com/NewRPGProject/MZMV_Plugin/blob/main/NRP_AutoState.js

Desc page : https://newrpg.seesaa.net/article/500375292.html

Download Page : https://raw.githubusercontent.com/NewRPGProject/MZMV_Plugin/main/NRP_AutoState.js

File name : NRP_AutoState.js

Help of plugin :

Automatically adds the state.
 * It can be implemented as a trait of a class, equipment, enemy, etc.
 * 
 * It can also be set to always be in state
 * or only added at the start of battle.
 * 
 * -------------------------------------------------------------------
 * [Usage]
 * -------------------------------------------------------------------
 * Specify the following in the notes for
 * actor, class, enemy, skill, equipment, and state.
 * For skills, these are passive skills
 * that function only by being learned.
 * 
 * <AutoState:15>
 * A state with the specified ID is automatically added.
 * 
 * <AutoState:1 + Math.randomInt(10)>
 * Formulas can also be used.
 * The above adds 1 to 10 states at random.
 * Math.randomInt(10) means 0-9.
 * 
 * <AutoState:1,2>
 * Multiple designations are also possible.
 * 
 * <BattleStartState:99>
 * A state with the specified ID is added at the start of battle.
 * Unlike <AutoState>, the effect is interrupted.
 * Numbers and multiple designations can be specified
 * in the same way as <AutoState>.
 * 
 * <BattleStartStateRate:50>
 * You can specify the probability of adding a state.
 * If omitted, the probability is 100%.
 * 
 * -------------------------------------------------------------------
 * [Terms]
 * -------------------------------------------------------------------
 * There are no restrictions.
 * Modification, redistribution freedom, commercial availability,
 * and rights indication are also optional.
 * The author is not responsible,
 * but will deal with defects to the extent possible.
 * 
 * @-----------------------------------------------------
 * @ [Plugin Parameters]
 * @-----------------------------------------------------
 * 
 * @param AutoStateOnlyBattle
 * @type boolean
 * @default false
 * @desc Limit the effect of auto state to during battle.
 * It will no longer be reflected in the status display.
 * 
 * @param ClearStateOnDead
 * @type boolean
 * @default true
 * @desc During dead, the auto state is suspended.
 * State is re-assigned on revival.

スポンサードリンク

-MZ plugins

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