Custom Battle Buttons

I want to make buttons that activate attack, skill (magic), guard, and item on screen that you can actually click, like in omori

Screenshot 2024-11-25 192041.png


I have moghunter battle ui, but that's only for visual HUD, not interactive buttons like i need.

i also have hud maker ultra, but that can once again only make visual images rather than clickable, and I am not willing to drop $40 on the pro dev tools version just for that.

I also saw that visuStella has "picture common events", that could totally work, but can go call an attack action, and skill menu (for each actor), from common events?

so is there any way to either

A. have clickable buttons on the battle screen that can open skill window and attack action

or

B. Call attack action, Skill select window, item select window, and guard for specific actors from common events (sounds far fetched)


I am willing to use plugins, but i draw the line at around $10 for pricing.
The free alternative to VisuStella Picture Common Events is Triacontane's PictureCallCommon and it works in the battle scene. I dunno how to tie it to battle actions though.
The free alternative to VisuStella Picture Common Events is Triacontane's PictureCallCommon and it works in the battle scene. I dunno how to tie it to battle actions though.
could you please send me a link to that? nothing but forums come up when i search "triacontanes picture call common rpg maker mz"
sorry, i dont speak japenese...

if you could just explain what the parameters mean that would be amazing
Screenshot 2024-11-25 200754.png
If you're using Chrome you can click the raw file, right click the page and tell it to translate it
1732594237024.png
If you're using Chrome you can click the raw file, right click the page and tell it to translate it
View attachment 323837
Does it mean "click" instead of "flick"? Also I'm assuming you put the picture in the "pictures" folder, right (duh)?, but how do you get it to show? The "show picture" command? Or is there a plugin command? And how do you attach pictures to common events? Sorry, it's just none of it is described
No it says flick and it asks for an angle if you use it. You need to click the raw file, right click it and tell it to translate. Here is a direct URL to the raw file but you could have just clicked the Raw button
No it says flick and it asks for an angle if you use it. You need to click the raw file, right click it and tell it to translate. Here is a direct URL to the raw file but you could have just clicked the Raw button
I do not have chrome
Ok, here is the help section
Code:
@plugindesc Picture button plug-in
 * @target MZ
 * @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/PictureCallCommon.js
 * @base PluginCommonBase
 * @author Triacontan
 *
 * @param PictureIdVariable
 * @text Picture number variable
 * @desc This is the variable ID that stores the picture number where the last event occurred.
 * @default 0
 * @type variable
 *
 * @param InvalidSwitchId
 * @text Disable switch
 * @desc When the switch with the specified number is ON, all picture events will be disabled.
 * @default 0
 * @type switch
 *
 * @param FlickDistance
 * @text Flick effective distance
 * @desc The distance (in pixels) at which flick detection is enabled.
 * @default 60
 * @type number
 *
 * @param FlickTimeVariable
 * @text Flick time variable
 * @desc The variable ID that stores the number of frames it took for the flick to be recognized. The smaller this value, the faster the flick.
 * @default 0
 * @type variable
 *
 * @param FlickDegreeVariable
 * @text Flick angle variable
 * @desc The variable ID that stores the flick direction in degrees when flick detection is enabled.
 * @default 0
 * @type variable
 *
 * @command ADD_PICTURE_EVENT
 * @text Picture event registration
 * @desc Registers events that occur during picture operations.
 *
 * @arg pictureId
 * @text Picture number
 * @desc The picture number to be operated on.
 * @default 1
 * @type number
 *
 * @arg commonEventId
 * @text Common event number
 * @desc This is a common event that is called when an event occurs.
 * @default 0
 * @type common_event
 *
 * @arg switchId
 * @text Switch number
 * @desc A switch that turns ON when an event occurs.
 * @default 0
 * @type switch
 *
 * @arg variableId
 * @text variable number
 * @desc A variable whose value is increased or decreased when an event occurs.
 * @default 0
 * @type variable
 *
 * @arg operationType
 * @parent variableId
 * @text Operation type
 * @desc The operation type of the specified variable when the event occurs.
 * @default 0
 * @type select
 * @option assignment
 * @value 0
 * @option add
 * @value 1
 * @option subtract
 * @value 2
 * @option multiplication
 * @value 3
 * @option division
 * @value 4
 * @option remainder
 * @value 5
 *
 * @arg operand
 * @parent variableId
 * @text operand
 * @desc The operation value of the specified variable when the event occurs.
 * @default 0
 * @type number
 * @min -99999999
 *
 * @arg script
 * @text Script
 * @desc The script that is executed when the event occurs.
 * @type multiline_string
 *
 * @arg buttonBind
 * @text Button binding
 * @desc The button that will be pressed when the event occurs.
 * @default
 * @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 trigger the action.
 * @default 1
 * @type select
 * @option 1: When clicked
 * @value 1
 * @option 2: Right-click
 * @value 2
 * @option 3: If you press and hold
 * @value 3
 * @option 4: When the mouse is over the picture
 * @value 4
 * @option 5: When the mouse leaves the picture
 * @value 5
 * @option 6: When you release the click
 * @value 6
 * @option 7: When clicked (and considering repeats when long pressing)
 * @value 7
 * @option 8: As long as you click
 * @value 8
 * @option 9: When you click the wheel (only available on PC)
 * @value 9
 * @option 10: If you double-click
 * @value 10
 * @option 11: When the mouse is moved within the picture
 * @value 11
 * @option 12: When you hold down the mouse and move it within the picture
 * @value 12
 * @option 13: When flicking (moving the mouse over a 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.
 * @default 0
 * @type switch
 *
 * @command SET_PICTURE_PREFERENCE
 * @text Picture setting
 * @desc Change the picture event settings.
 *
 * @arg pictureId
 * @text Picture number
 * @desc The picture number to be changed.
 * @default 1
 * @type number
 *
 * @arg includeOpacityZero
 * @text Includes transparent parts
 * @desc Whether or not it responds to transparent parts of the picture.
 * @default false
 * @type boolean
 *
 * @command REMOVE_PICTURE_EVENT
 * @text Picture event release
 * @desc Cancels a registered picture event.
 *
 * @arg pictureId
 * @text Picture number
 * @desc The picture number to be operated on.
 * @default 1
 * @type number
 *
 * @help PictureCallCommon.js
 *
 * Execute common events in response to various mouse operations on the picture.
 * Switch control is possible (This is called a picture event).
 * Once a picture event is registered, it remains valid even if the picture is deleted.
 *Cancellation is possible using a dedicated plugin command.
 *
 * Mouse actions will not react to transparent parts of the picture.
 *
 * Picture events can be played on both the map screen and the battle screen.
 * They are executed in parallel without being restricted by other events or circumstances.
 * Also, in the frame where the picture event occurs, other click processing is
 * This will be disabled and you will not be able to move around the map or send messages by touching the screen.
 *
 * terms of service:
 * It is possible to modify and redistribute it without permission from the author, and the usage form (commercial use, 18+ use, etc.)
 *There are no restrictions.
 * This plugin is now yours.
 */
No it says flick and it asks for an angle if you use it. You need to click the raw file, right click it and tell it to translate. Here is a direct URL to the raw file but you could have just clicked the Raw button
Okay, I translated it through my phone and I only have 1 question: how do you assign a picture an ID?
Do you not select an ID when you use the Show Picture command? I don't use MZ but that's how it works in MV
Ok, here is the help section
Code:
@plugindesc Picture button plug-in
 * @target MZ
 * @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/PictureCallCommon.js
 * @base PluginCommonBase
 * @author Triacontan
 *
 * @param PictureIdVariable
 * @text Picture number variable
 * @desc This is the variable ID that stores the picture number where the last event occurred.
 * @default 0
 * @type variable
 *
 * @param InvalidSwitchId
 * @text Disable switch
 * @desc When the switch with the specified number is ON, all picture events will be disabled.
 * @default 0
 * @type switch
 *
 * @param FlickDistance
 * @text Flick effective distance
 * @desc The distance (in pixels) at which flick detection is enabled.
 * @default 60
 * @type number
 *
 * @param FlickTimeVariable
 * @text Flick time variable
 * @desc The variable ID that stores the number of frames it took for the flick to be recognized. The smaller this value, the faster the flick.
 * @default 0
 * @type variable
 *
 * @param FlickDegreeVariable
 * @text Flick angle variable
 * @desc The variable ID that stores the flick direction in degrees when flick detection is enabled.
 * @default 0
 * @type variable
 *
 * @command ADD_PICTURE_EVENT
 * @text Picture event registration
 * @desc Registers events that occur during picture operations.
 *
 * @arg pictureId
 * @text Picture number
 * @desc The picture number to be operated on.
 * @default 1
 * @type number
 *
 * @arg commonEventId
 * @text Common event number
 * @desc This is a common event that is called when an event occurs.
 * @default 0
 * @type common_event
 *
 * @arg switchId
 * @text Switch number
 * @desc A switch that turns ON when an event occurs.
 * @default 0
 * @type switch
 *
 * @arg variableId
 * @text variable number
 * @desc A variable whose value is increased or decreased when an event occurs.
 * @default 0
 * @type variable
 *
 * @arg operationType
 * @parent variableId
 * @text Operation type
 * @desc The operation type of the specified variable when the event occurs.
 * @default 0
 * @type select
 * @option assignment
 * @value 0
 * @option add
 * @value 1
 * @option subtract
 * @value 2
 * @option multiplication
 * @value 3
 * @option division
 * @value 4
 * @option remainder
 * @value 5
 *
 * @arg operand
 * @parent variableId
 * @text operand
 * @desc The operation value of the specified variable when the event occurs.
 * @default 0
 * @type number
 * @min -99999999
 *
 * @arg script
 * @text Script
 * @desc The script that is executed when the event occurs.
 * @type multiline_string
 *
 * @arg buttonBind
 * @text Button binding
 * @desc The button that will be pressed when the event occurs.
 * @default
 * @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 trigger the action.
 * @default 1
 * @type select
 * @option 1: When clicked
 * @value 1
 * @option 2: Right-click
 * @value 2
 * @option 3: If you press and hold
 * @value 3
 * @option 4: When the mouse is over the picture
 * @value 4
 * @option 5: When the mouse leaves the picture
 * @value 5
 * @option 6: When you release the click
 * @value 6
 * @option 7: When clicked (and considering repeats when long pressing)
 * @value 7
 * @option 8: As long as you click
 * @value 8
 * @option 9: When you click the wheel (only available on PC)
 * @value 9
 * @option 10: If you double-click
 * @value 10
 * @option 11: When the mouse is moved within the picture
 * @value 11
 * @option 12: When you hold down the mouse and move it within the picture
 * @value 12
 * @option 13: When flicking (moving the mouse over a 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.
 * @default 0
 * @type switch
 *
 * @command SET_PICTURE_PREFERENCE
 * @text Picture setting
 * @desc Change the picture event settings.
 *
 * @arg pictureId
 * @text Picture number
 * @desc The picture number to be changed.
 * @default 1
 * @type number
 *
 * @arg includeOpacityZero
 * @text Includes transparent parts
 * @desc Whether or not it responds to transparent parts of the picture.
 * @default false
 * @type boolean
 *
 * @command REMOVE_PICTURE_EVENT
 * @text Picture event release
 * @desc Cancels a registered picture event.
 *
 * @arg pictureId
 * @text Picture number
 * @desc The picture number to be operated on.
 * @default 1
 * @type number
 *
 * @help PictureCallCommon.js
 *
 * Execute common events in response to various mouse operations on the picture.
 * Switch control is possible (This is called a picture event).
 * Once a picture event is registered, it remains valid even if the picture is deleted.
 *Cancellation is possible using a dedicated plugin command.
 *
 * Mouse actions will not react to transparent parts of the picture.
 *
 * Picture events can be played on both the map screen and the battle screen.
 * They are executed in parallel without being restricted by other events or circumstances.
 * Also, in the frame where the picture event occurs, other click processing is
 * This will be disabled and you will not be able to move around the map or send messages by touching the screen.
 *
 * terms of service:
 * It is possible to modify and redistribute it without permission from the author, and the usage form (commercial use, 18+ use, etc.)
 *There are no restrictions.
 * This plugin is now yours.
 */
It says i need "plugin common base", but i can only find "PluginCommonBaseSample" on the page

Do you not select an ID when you use the Show Picture command? I don't use MZ but that's how it works in MV
wait, is this plugin for MV? im using MZ
There is an MV version that has English instructions but this is the MZ version that is Japanese only.
PluginCommonBase is an official plugin

For Windows and Store version

C:\Program Files\KADOKAWA\RPGMZ\dlc\BasicResources\plugins\official
For Windows and Steam version

C:\Program Files (x86)\Steam\steamapps\common\RPG Maker MZ\dlc\BasicResources\plugins\official
Link Didn't Work
Those aren't links. You're supposed to navigate your own PC's directory to get the file.
Those aren't links. You're supposed to navigate your own PC's directory to get the file.
okay, that works, but nothing shows up because none of the pictures have an ID on them
I don't know what MZ looks like but it looks like this in MV when you use Show Picture
1732599247474.png
I don't know what MZ looks like but it looks like this in MV when you use Show Picture
View attachment 323839
yup that what MZ has too, but that won't pull up a picture that opens a common event, that's just a picture. to make a clickable picture, you need the plugin command, and the only way to specify what picture it is is through the ID, right? Or is it not supposed to create a picture, but instead attach a common event to the previous picture? Solved!
So... It sounds like you are trying to do something when you aren't even familiar with the basic functions of the software.
Before diving into plugins, I highly recommend you do some tutorials and practice games that are built using only the default functions of the engine since plugins build on top of existing functions.

Original thread: https://forums.rpgmakerweb.com/threads/custom-battle-buttons.173462/