Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
Picture Call Common - PictureCallCommon.js
Plugin desc : Picture Button Plugin
License : MIT License
Author : Triacontane
Website : https://triacontane.blogspot.com
Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/PictureCallCommon.js
Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/PictureCallCommon.js
File name : PictureCallCommon.js
Help of plugin :
@target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/PictureCallCommon.js @plugindesc Picture Button Plugin @author Triacontane @license MIT License @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/triacontane-MZ-plugins ). Original plugin by Triacontane. Please check the latest official version at: https://triacontane.blogspot.com ----- PictureCallCommon.js You can execute common events and control switches in response to various mouse actions on a picture. (These are called picture events.) Once registered, picture events remain active even if the picture is cleared. They can be canceled using a dedicated plugin command. Mouse actions do not respond to transparent areas of the picture. Picture events are executed promptly and in parallel on both the map screen and the battle screen, without being restricted by other events or situations. In addition, in the frame in which a picture event occurs, other click actions are disabled, and touch-based map navigation, message sending, etc. will not occur. Terms of Use: You may modify and redistribute this plugin without permission, and there are no restrictions on its use (commercial, 18+, etc.). This plugin is now yours. @param PictureIdVariable @text Picture number variable @desc This is the variable ID that stores the picture number where the last event occurred. @type variable @default 0 @param InvalidSwitchId @text Disable Switch @desc When the switch with the specified number is ON, all picture events are disabled. @type switch @default 0 @param FlickDistance @text Effective flick distance @desc The distance (number of pixels) at which flick detection is enabled. @type number @default 60 @param FlickTimeVariable @text Flick Time Variable @desc This is the variable ID that stores the number of frames it took for the flick detection to become effective. The smaller this value, the faster the flick. @type variable @default 0 @param FlickDegreeVariable @text Flick Angle Variable @desc This is the variable ID that stores the flick direction in degrees when flick detection is enabled. @type variable @default 0 @command ADD_PICTURE_EVENT @text Picture Event Registration @desc Registers for events that occur during picture manipulation. @arg pictureId @text Picture Number @desc The picture number to operate on. @type number @default 1 @arg commonEventId @text Common Event Number @desc This is a common event that is called when an event occurs. @type common_event @default 0 @arg switchId @text Switch Number @desc This switch turns ON when an event occurs. @type switch @default 0 @arg variableId @text Variable Number @desc A variable whose value is increased or decreased when an event occurs. @type variable @default 0 @arg operationType @text Operation Type @desc The operation type of the specified variable when the event occurs. @type select @default 0 @option Assignment @value 0 @option Addition @value 1 @option Subtract @value 2 @option Multiplication @value 3 @option division @value 4 @option surplus @value 5 @parent variableId @arg operand @text operand @desc The manipulated value of the specified variable when the event occurs. @type number @default 0 @min -99999999 @parent variableId @arg script @text script @desc The script that will be executed when the event occurs. @type multiline_string @arg buttonBind @text Button Bindings @desc This is the button that will be pressed when the event occurs. @type combo @option ok @option shift @option control @option escape @option left @option up @option right @option down @option pageup @option pagedown @arg triggerType @text Trigger Type @desc The type of mouse or touch operation that will be the trigger. @type select @default 1 @option 1: When clicked @value 1 @option 2: Right-click @value 2 @option 3: When pressed and held @value 3 @option 4: When the mouse is over the picture @value 4 @option 5: When the mouse is released from the picture @value 5 @option 6: When the click is released @value 6 @option 7: Click (and consider repeated long presses) @value 7 @option 8: As long as you click @value 8 @option 9: When wheel clicking (only valid on PC) @value 9 @option 10: When double-clicked @value 10 @option 11: When the mouse is moved within the picture @value 11 @option 12: When you press and move the mouse within the picture @value 12 @option 13: When flicking (moving the mouse over the specified distance while holding it down) @value 13 @arg invalidSwitchId @text Disable Switch @desc If the switch with the specified number is ON, the picture event will be disabled. @type switch @default 0 @command SET_PICTURE_PREFERENCE @text Picture Settings @arg pictureId @text Picture Number @desc The picture number to be changed. @type number @default 1 @arg includeOpacityZero @text Includes transparent parts @desc Whether it responds to transparent parts of the picture. @type boolean @default false @command REMOVE_PICTURE_EVENT @text Picture event cancellation @desc Cancels a registered picture event. @arg pictureId @text Picture Number @desc The picture number to operate on. @type number @default 1