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 Trigger Setting - NRP_TriggerSetting.js

Plugin desc : v2.02 Adjusted the behavior of event triggers.

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

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

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

File name : NRP_TriggerSetting.js

Help of plugin :

Adjusted the behavior of event triggers.
 * 
 * Switching by plugin parameters is also possible.
 * 
 * -------------------------------------------------------------------
 * [Strict Event Touch]
 * -------------------------------------------------------------------
 * When the trigger is "Event Touch",
 * the event is strictly judged to be activated for the moving player.
 * 
 * The purpose of this function is to have the foot event run
 * before the touch event.
 * 
 * This addresses the problem of foot events not being properly
 * executed in symbol-encountered works.
 * 
 * Set a number for this item.
 * 
 * - If the value is 0, touch is made only when the player is
 *   at the target coordinates, at the moment player reaches
 *   them completely or when player is stationary.
 * - If the value is 0.5, touch is made only
 *   when the player is within 0.5 tiles of the target coordinates.
 * 
 * If not needed, use the DEL key to leave blank.
 * 
 * ※Plug-ins such as half-step movement
 *   are not supported due to specifications.
 * 
 * -------------------------------------------------------------------
 * [Disable Decision Touch]
 * -------------------------------------------------------------------
 * Disables starting with the Action Button
 * for events whose trigger is "Player Touch" or "Event Touch".
 * 
 * It is rather difficult to notice
 * that the above event can be started by the Action Button.
 * However, if the event is designed for touch,
 * it tends to behave unnaturally.
 * 
 * In addition, there is no way to determine
 * that the conditional branching of the Event Command
 * was started by the Action Button.
 * There is a judgment that "Action Button Pressed," but it includes
 * the case where the button is left pressed and touched.
 * 
 * Therefore, I have made it possible
 * to prohibit activation by Action Button.
 * 
 * -------------------------------------------------------------------
 * [Disable Through Collision]
 * -------------------------------------------------------------------
 * Fix a behavior where an event with priority “Normal”
 * and trigger “Player Touch” or “Event Touch” could be activated
 * only when it overlapped with other events
 * when the event was set to slip through.
 * 
 * Due to the specifications, it is more natural to turn it
 * on at the same time as “Disable Decision Touch”.
 * 
 * -------------------------------------------------------------------
 * [Plugin Command]
 * -------------------------------------------------------------------
 * ◆CheckStepsEvent
 * Check if the player is moving
 * and in contact with the event underfoot.
 * If the condition is met, the designated switch is turned on.
 * Otherwise, it is turned off.
 * 
 * -------------------------------------------------------------------
 * [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 Command
 * @------------------------------------------------------------------
 * 
 * @command CheckStepsEvent
 * @desc Check to see if the player is in contact with the event at his feet and turn on the switch.
 * 
 * @arg Switch
 * @type switch
 * @desc This is a switch that turns on. If the condition is not met, it is turned off.
 * 
 * @-----------------------------------------------------
 * @ Plugin Parameters
 * @-----------------------------------------------------
 * 
 * @param StrictEventTouch
 * @type number
 * @min 0
 * @max 1
 * @decimals 2
 * @default 0
 * @desc The lower the number, the more limited the timing of touch from the event to a moving player. Disabled by DEL
 * 
 * @param DisableDecisionTouch
 * @type boolean
 * @default true
 * @desc For events whose trigger is "Player Touch" or "Event Touch", activation with the decision button is prohibited.
 * 
 * @param DisableThroughCollision
 * @type boolean
 * @default true
 * @desc For events whose trigger is “Player Touch” or “Event Touch”, collision in the state of slipping through is prohibited.

スポンサードリンク

-MZ plugins

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