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

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

MZ plugins

AWY Motion Presetter - AWY_MotionPresetter.js

Plugin desc : Expand your motion capabilities.

License : MIT License

Author : あわやまたな (Awaya_Matana)

Website : https://awaya3ji.seesaa.net/

Desc page : https://awaya3ji.seesaa.net/article/501228970.html

File name : AWY_MotionPresetter.js

Help of plugin :

* @target MZ
* @base AWY_MotionMaker
* @orderAfter PluginCommonBase
* @orderAfter OptimizedMovementRoute
* @plugindesc Expand your motion capabilities.
* @author あわやまたな (Awaya_Matana)
* @url https://awaya3ji.seesaa.net/article/501228970.html
* @help Ver.2.0.2
* 【How to Use】
* Create a motion preset by placing the plug-in command
* and movement route in the common event specified by the parameter.
* The method of creating motion is exactly the same as AWY_MotionMaker.
* Created motions can be called using plugin commands or scripts.
*
* 【Scripts (Event)】
* this.character(characterId).motionName() //Each Character
* $gamePlayer.motionName() //Player
* //Gets the name of the current motion.
*
* 【Scripts (Movement Route)】
* this.callMotion("name");
* this.callMotion("name", wait);
* this.callMotion("name", wait, loop);
* this.callMotion("name", wait, loop, speed);
* //Call the motion.
* Enter the motion name in "name",
* the truth value (true/false) to indicate whether to wait for completion in "wait",
* the playback speed in "speed",
* and the number of loops in "loop". .
* If "wait" is not entered, the preset will be followed.
* If "loop" is not input, it will follow the preset, and if it is -1, it will loop infinitely.
* If "speed" is not entered, the preset will be followed.
* this.waitForMotion();  //Wait until the motion is finished.
*
* @param commonEventId
* @text Common Event
* @desc Specify common events for creating presets.
* @type common_event
* @default 1
*
* @command callMotion
* @text Call Motion
* @desc Call up a preset motion.
*
* @arg characterId
* @text Character ID
* @desc If it is left blank, it will be the last target.
*
* @arg name
* @text Motion Name
* @desc The name of the motion to call.
* @type combo
* @option It is useful.
* @option to edit these
* @option and add motion names
* @option Motion1
* @option Motion2
*
* @arg loop
* @text Number of Loops
* @desc If left blank, the preset will be followed.
* Infinite loop with either 無限, infinity, or -1
* @type combo
* @option infinity
*
* @arg speed
* @text Speed
* @desc Specify as a percentage. 100 is the same size.
*
* @arg wait
* @text Wait for Completion
* @desc Wait until the motion ends.
* If left blank, the preset will be followed.
* @type boolean
*
* @arg script
* @text Script
* @desc This is a script that is always executed when the motion ends or is interrupted.
* @type multiline_string
*
* @command presetMotion
* @text Preset Motion
* @desc Add the movement route settings to the preset.
* It will not remain in the save data.
*
* @arg name
* @text Motion Name
* @desc This is the name when calling.
*
* @arg loop
* @text Number of Loops
* @desc If left blank, the movement route option will be followed.
* Infinite loop with either 無限, infinity, or -1
* @type combo
* @option infinity
*
* @arg speed
* @text Speed
* @desc Specify as a percentage. 100 is the same size.
* @default 100
*
* @arg script
* @text Script
* @desc This is a script that is always executed when the motion ends or is interrupted.
* @type multiline_string
*

スポンサードリンク

-MZ plugins

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