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 Magic Reflection - NRP_MagicReflection.js

Plugin desc : v1.02 Extend the specification of magic reflection.

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

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

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

Desc page : http://newrpg.seesaa.net/article/483027532.html

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

File name : NRP_MagicReflection.js

Help of plugin :

Various adjustments can be made regarding
 * the specifications of magic reflection.
 * 
 * - Animation can be specified for the source and destination of reflection.
 * - The reflection destination can be changed
 *   to another side instead of the skill user.
 * - Reflections can be set for each skill type.
 *  ※RPG Maker's standard specification is that skills
 *     with a hit type of "Magic Attack" will be reflected.
 * - Can create skills that disable reflection.
 * 
 * For example, it is possible to perform the famous FF series trick
 * of attacking an enemy by reflecting the overall magic cast on your friends.
 * 
 * -------------------------------------------------------------------
 * [Note of states]
 * -------------------------------------------------------------------
 * If you register it in the "SettingList" of the plugin parameters,
 * you will be able to set reflections conditional on the skill type.
 * For example, you can create a state that reflects only "Special".
 * 
 * Enter the "SettingId" registered in "SettingList"
 * in the note field of the state as shown below.
 * 
 * <MagicRefrection:[SettingId]>
 * 
 * ※Do not include [].
 * ※Unlike the standard, the hit type will be ignored.
 * 
 * -------------------------------------------------------------------
 * [Note of skills]
 * -------------------------------------------------------------------
 * You can create a skill that disables magic reflection
 * by specifying the following in the skill's note field.
 * 
 * <NoMagicRefrection>
 * 
 * -------------------------------------------------------------------
 * [Note of objects]
 * -------------------------------------------------------------------
 * The magic used by the battler will not be reflected
 * if the following is set in the note field of
 * each object (actor, enemy, class, equipment, state, and skill).
 * As for skills, they are passive skills
 * that only need to be learned to be effective.
 * 
 * <IgnoreMagicRefrection>
 * 
 * -------------------------------------------------------------------
 * [Notice]
 * -------------------------------------------------------------------
 * ◆About Sound effect
 * I recommend that you leave the magic reflection sound effect,
 * which can be set in "System2", to be none.
 * It is more natural to leave the sound effects to the reflection animation.
 * 
 * ◆About HighSpeedMode
 * Normally, the reflection process is not fast-paced because the message
 * is displayed one by one and other processes are performed.
 * So, I'm working with a damage timing adjustment plugin (NRP_DamageTiming.js)
 * to make it possible to display reflections at high speed.
 * 
 * When "damageSameTime" of NRP_DamageTiming is turned on,
 * the highspeed mode will be enabled automatically.
 * 
 * Also, delay-related items will only function in highspeed mode.
 * 
 * It is possible to force the mode to switch
 * by setting the plugin parameter "HighSpeedMode", but
 * Please note that this will basically result in unnatural behavior.
 * 
 * ◆About ToOriginalAnimation
 * When "ToOriginalAnimation" is turned on,
 * only the animation set in the skill can be displayed.
 * Please note that when combined with plug-ins such as "DynamicAnimation",
 * even the description in the note field will not be executed.
 * 
 * -------------------------------------------------------------------
 * [About Conflict]
 * -------------------------------------------------------------------
 * This plugin should be placed below the aforementioned NRP_DamageTiming.js.
 * 
 * -------------------------------------------------------------------
 * [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.
 * 
 * @param ReflectAnotherSide
 * @type boolean
 * @default false
 * @desc When reflecting magic, change the target to another side and randomly.
 * 
 * @param ReflectFromAnimation
 * @type animation
 * @desc This animation is displayed to the battler performing the reflection.
 * 
 * @param ReflectToAnimation
 * @type animation
 * @desc This is an animation that is displayed to the battler at the reflection destination.
 * 
 * @param ToOriginalAnimation
 * @type boolean
 * @default false
 * @desc When reflecting magic, the original animation is displayed at the reflection destination.
 * 
 * @param Timing
 * 
 * @param HighSpeedMode
 * @parent Timing
 * @type boolean
 * @desc When on, ignore the delay and wait for the message.
 * Normally, this will be determined automatically and can be left blank.
 * 
 * @param ToBaseDelay
 * @parent Timing
 * @type number
 * @default 30
 * @desc Time difference to display the animation on the reflection.
 * Set this value in 1/60 second increments.
 * 
 * @param NextDelay
 * @parent Timing
 * @type number
 * @default 12
 * @desc Time difference for each object when displaying the reflection animation.
 * 
 * @param Detail
 * 
 * @param SettingList
 * @parent Detail
 * @type struct<Setting>[]
 * @desc This is a list of settings related to magic reflection.
 * Useful when you want to specify detailed conditions.

スポンサードリンク

-MZ plugins

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