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 Event Command Target - NRP_EventCommandTarget.js

Plugin desc : v1.021 Change the target of the event command.

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

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

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

File name : NRP_EventCommandTarget.js

Help of plugin :

Change the target of an event command.
 * 
 * You can specify the target of the event command by variables or formulas.
 * If the target is 'this event',
 * the process is realized by rewriting the target.
 * 
 * This also allows you to execute commands to your followers
 * (fellow troop walkers) that would normally be impossible.
 * 
 * For example, the following commands can be used.
 * 
 * ・Set Movement Route
 * ・Set Event Location
 * ・Show Animation
 * ・Show Balloon Icon
 * 
 * It also provides the following functions for manipulating followers.
 * 
 * ・Disable automatic tracking of players.
 * ・Enable speed change for each follower.
 *  ※Normally fixed at the same speed as the player.
 * 
 * -------------------------------------------------------------------
 * [MZ Plugin Command]
 * -------------------------------------------------------------------
 * ◆ChangeTarget
 * Change the target characters of "This Event".
 * 
 * When executed, it will target the set character
 * when "This Event" is specified in subsequent event commands.
 * The effect is effective until the event page processing is finished.
 * 
 * The character is specified by the event ID.
 * -1 is a player, -2 or lower is a follower.
 * If it is blank, it will be unset.
 * 
 * ◆BatchOfTargets
 * The command is given for multiple events at once.
 * - 1,3,5: Targets events 1, 3, and 5.
 * - 1~10: Targets events 1~10.
 * - -1~-4: Targets a player and 3 followers.
 * 
 * Target commands are limited to the following.
 * - Set Movement Route
 * - Show Animation
 * - Show Balloon Icon
 * 
 * ◆StopFollow
 * Followers will no longer track the player.
 * 
 * -------------------------------------------------------------------
 * [MV Plugin Command]
 * -------------------------------------------------------------------
 * ◆NRP.EventCommandTarget.ChangeTarget [TargetID]
 * Change the target characters of "This Event".
 * Specify the event ID as a number or formula.
 * -1 is a player, -2 or lower is a follower.
 * If it is blank, it will be unset.
 * 
 * ◆NRP.EventCommandTarget.StopFollow [true/false]
 * Followers will no longer track the player.
 * True (optional) to enable, false to disable.
 * 
 * ※It is not case sensitive. Do not include [].
 * 
 * ■Additional Functions for Followers
 * ◆this.chasePreceding()
 * Calling the above script in the movement route setting
 * will bring you closer to the previous character.
 * 
 * -------------------------------------------------------------------
 * [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 Commands
 * @------------------------------------------------------------------
 * 
 * @command ChangeTarget
 * @desc Change the character to be the target of "this event". If blank, cancel the setting.
 * 
 * @arg TargetId
 * @desc When "this event" is targeted in the called event, the event with the specified ID will be targeted.
 * @type combo
 * @option $gameVariables.value(1) #Variable number events
 * @option -1 #Player
 * @option -2 #Follower
 * @option this._eventId + 1
 * @option followerIdByActorId(1)
 * @option 0 #Set the release
 * 
 * 
 * @command BatchOfTargets
 * @desc Specifies a batch of target characters to be manipulated.
 * If blank, cancel the setting.
 * 
 * @arg TargetsId
 * @desc Processes within the called event, targeting the event(s) with the specified ID(s).
 * @type combo
 * @option 1,2,3 #Multiple
 * @option 1~3 #Range
 * @option -1~-4 #Party
 * 
 * @arg AutoRelease
 * @desc The setting is automatically cancelled when the process is executed once.
 * @type boolean
 * @default true
 * 
 * 
 * @command StopFollow
 * @desc Followers will no longer track the player.
 * 
 * @arg Stop
 * @desc Stops tracking of followers.
 * Deactivates it when set to false.
 * @type boolean
 * @default true
 * 
 * @------------------------------------------------------------------
 * @ Plugin Parameters
 * @------------------------------------------------------------------
 * 
 * @param TerminateStopFollow
 * @desc Automatically release the "StopFollow" function when the event processing is finished.
 * @type boolean
 * @default true

スポンサードリンク

-MZ plugins

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