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

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

Picture Call Common - PictureCallCommon.js

Plugin desc : Picture Button Plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com/

Desc page : https://triacontane.blogspot.com/

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MV-plugins/refs/heads/main/PictureCallCommon.js

File name : PictureCallCommon.js

Help of plugin :

@plugindesc Picture Button Plugin
@author Triacontane
@url https://triacontane.blogspot.com/
@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-MV-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----
This plugin provides plugin commands that call common events or turn on
optional switches.

With this plugin, anyone can easily create click- and touch-based games,
even without JavaScript knowledge.

Events can be
executed during battle, but due to Maker MV's specifications,
they are only executed at certain times.

Enabling the parameter "Always execute common events during battle" will
cause events to always be executed,
but some event commands may not function correctly.

Note!
Once associated, a
picture and common event remain valid even if the picture is deleted.
If the picture does not exist, clicking will not respond,
but displaying the picture again with the same number will cause it to
respond.

Plugin Command Details
Execute from the event command "Plugin Command."
(Arguments are separated by a space.)

P_CALL_CE [Picture Number] [Common Event ID] [Trigger] [Consider Transparent Color]
Associates a common event that is called when the trigger conditions are
met within the picture's area.
The triggers are as follows (default is 1).
1: Click
2: Right-click
3: Press and hold
4: Mouse over the picture
5: Mouse off the picture
6: Release the click
7: Click (taking into account repeated presses)
8: While clicking
9: Wheel click (PC only)
10: Double-click
11: Mouse move within the picture
12: Mouse down and move within the picture

The Consider Transparent Color parameter (ON/OFF) allows you to determine
whether to consider transparent colors for each picture.
If left
unspecified, the plugin parameter setting will be applied.
(Previous specification)

Example:
P_CALL_CE 1 3 7 ON
P_CALL_CE ¥v[1] ¥v[2] ¥v[3] OFF

P_CALL_SWITCH [Picture number] [Switch ID] [Trigger] [Consider transparent color]
When the trigger conditions are met within the picture area, a switch is
turned on.
Trigger settings are the same as for picture button.

P_CALL_KEY_BIND [Picture number] [Button name] [Trigger] [Consider transparent color]
When the trigger conditions are met within the picture area, a button is
considered pressed.
Button name settings are as follows: (Windows standard)
ok : Enter, Z
shift : Shift
control : Ctrl, Alt
escape : Esc, X
left : ←
up : ↑
right : →
down : ↓
pageup : PageUp
pagedown : PageDown

P_CALL_CE_REMOVE [picture number]
Removes the association between a picture and a common event or switch.
All triggers are removed.

Example:
P_CALL_CE_REMOVE 1
P_CALL_CE_REMOVE ¥v[1]

P_STROKE [picture number] [variable number] [consider transparent color]
When you move the mouse or touch over
the specified picture, a value corresponding to the speed is added to the
specified variable.
This setting remains in effect even if the picture is replaced or
temporarily hidden.
It accumulates to about 1000 in 10 seconds.
Example:
P_STROKE 1 2 ON
P_STROKE ¥v[1] ¥v[2] OFF

P_STROKE_REMOVE [picture number]
Cancels the stroke setting for the specified picture.

Example:
P_STROKE_REMOVE 1
P_STROKE_REMOVE ¥v[1]

P_POINTER [picture number]
The specified picture will automatically follow touch coordinates.
It will automatically be hidden when not being touched.

Example:
P_POINTER 1
P_POINTER ¥v[1]

P_POINTER_REMOVE [picture number]
Turns the specified picture into a pointer.

Example:
P_POINTER_REMOVE 1
P_POINTER_REMOVE ¥v[1]

# Script (for advanced users)
$gameScreen.isPointerInnerPicture([ID]);
Returns true if the mouse pointer or touch coordinates are within the
picture with the specified [ID].
This script is valid even if you are not using [P_CALL_CE].

Example:
$gameScreen.isPointerInnerPicture(5);

Terms of Use:
You may modify and redistribute this plugin without permission from the
author, and there are no restrictions on its use (commercial, 18+, etc.).
This plugin is now yours.

@param 透明色を考慮
@text Consider transparent colors
@desc If the clicked area is transparent, the click is disabled.
@default true
@type boolean

@param ピクチャ番号の変数番号
@text Picture number variable number
@desc The number of the game variable that stores the picture number when the picture is clicked.
@default 0
@type variable

@param ポインタX座標の変数番号
@text Pointer X coordinate variable number
@desc The number of the game variable that always stores the X coordinate of the mouse cursor or touch position.
@default 0
@type variable

@param ポインタY座標の変数番号
@text Variable number of the pointer Y coordinate
@desc The number of the game variable that always stores the Y coordinate of the mouse cursor or touch position.
@default 0
@type variable

@param タッチ操作抑制
@text Touch operation suppression
@desc Clears touch information when trigger conditions are met. (ON/OFF)
@default false
@type boolean

@param タッチ操作抑制スイッチ
@text Touch-inhibiting switch
@desc If specified, "Touch operation suppression" will be enabled only when the target switch is ON.
@default 0
@type switch

@param 戦闘中常にコモン実行
@text Always execute common during battle
@desc When you click on a picture during battle, a common event will always be executed. (ON/OFF)
@default false
@type boolean

@param 並列処理として実行
@text Run as parallel processes
@desc Common events executed by clicking a picture are executed in parallel.
@default false
@type boolean

@param 無効スイッチ
@text Disable Switch
@desc If the switch with the specified number is ON, all Picture Touches will be disabled.
@default 0
@type switch

スポンサードリンク

-MV plugins

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