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 Enemy Collapse - NRP_EnemyCollapse.js

Plugin desc : v1.002 Change the effect when an enemy collapses.

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_EnemyCollapse.js

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

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

File name : NRP_EnemyCollapse.js

Help of plugin :

Change the effect when an enemy collapses.
 * 
 * BlendMode and BlendColor can be changed.
 * Other animations can be played back
 * by calling DynamicAnimation&Motion.
 * 
 * -------------------------------------------------------------------
 * [Usage]
 * -------------------------------------------------------------------
 * Register your settings in CollapseList.
 * The ID registered here will be used to link the settings.
 * 
 * The collapse effect can be applied to the entire area
 * by means of a plugin parameter.
 * In addition, it can be specified individually for each enemy.
 * 
 * -------------------------------------------------------------------
 * [Note of Enemies]
 * -------------------------------------------------------------------
 * ◆Specify method of collapse
 * <CollapseId:[ID]>
 * 
 * Link the registered collapse effects to the enemy by ID.
 * Do not include [].
 * 
 * -------------------------------------------------------------------
 * [Sample]
 * -------------------------------------------------------------------
 * The following samples are available in CollapseList.
 * 
 * ◆normal
 * This is exactly the same as the normal enemy collapse direction.
 * Please use for reference only.
 * 
 * ◆boss
 * It is exactly the same as the normal boss collapse direction.
 * 
 * ◆sink
 * It collapses as the enemy sinks.
 * 
 * ◆boss_shake
 * This is a boss collapse direction with screen shaking.
 * 
 * -------------------------------------------------------------------
 * [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 CollapseList
 * @type struct<CollapseData>[]
 * @default ["{¥"Id¥":¥"normal¥",¥"CollapseType¥":¥"Normal¥",¥"Duration¥":¥"32¥",¥"BlendMode¥":¥"1¥",¥"BlendColor¥":¥"[255, 128, 128, 128]¥",¥"ShakeStrength¥":¥"0¥",¥"Sound1¥":¥"Collapse1¥",¥"Sound2¥":¥"¥",¥"Sound2Interval¥":¥"¥",¥"DynamicId¥":¥"¥",¥"Wait¥":¥"¥",¥"Script¥":¥"¥"}","{¥"Id¥":¥"boss¥",¥"CollapseType¥":¥"Sink¥",¥"Duration¥":¥"this.bitmap.height¥",¥"BlendMode¥":¥"1¥",¥"BlendColor¥":¥"[255, 255, 255, 255 - this.opacity]¥",¥"ShakeStrength¥":¥"2¥",¥"Sound1¥":¥"Collapse2¥",¥"Sound2¥":¥"Collapse3¥",¥"Sound2Interval¥":¥"20¥",¥"DynamicId¥":¥"¥",¥"Wait¥":¥"¥",¥"Script¥":¥"¥"}","{¥"Id¥":¥"sink¥",¥"CollapseType¥":¥"Sink¥",¥"Duration¥":¥"32¥",¥"BlendMode¥":¥"1¥",¥"BlendColor¥":¥"[255, 128, 128, 128]¥",¥"ShakeStrength¥":¥"0¥",¥"Sound1¥":¥"Collapse1¥",¥"Sound2¥":¥"¥",¥"Sound2Interval¥":¥"¥",¥"DynamicId¥":¥"¥",¥"Wait¥":¥"¥",¥"Script¥":¥"¥"}","{¥"Id¥":¥"boss_shake¥",¥"CollapseType¥":¥"Sink¥",¥"Duration¥":¥"this.bitmap.height¥",¥"BlendMode¥":¥"1¥",¥"BlendColor¥":¥"[255, 255, 255, 255 - this.opacity]¥",¥"ShakeStrength¥":¥"2¥",¥"Sound1¥":¥"Collapse2¥",¥"Sound2¥":¥"Collapse3¥",¥"Sound2Interval¥":¥"20¥",¥"DynamicId¥":¥"¥",¥"Wait¥":¥"¥",¥"Script¥":¥"$gameScreen.startShake(1, 20, this.bitmap.height);¥"}"]
 * @desc This list defines the collapse effects.
 * 
 * @param DefaultCollapseId
 * @type string
 * @desc Standard collapse effects.
 * CollapseList ID.
 * 
 * @param DefaultBossCollapseId
 * @type string
 * @desc Standard boss collapse effects.
 * CollapseList ID.

スポンサードリンク

-MZ plugins

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