Button Picture Update

ButtonPicture.js v1.01
Yoji Ojima
​

Introduction
A small update on the ButtonPicture.js plugin which comes with every new project.
Original features allow to click on any picture which then activate a common event.
The problem I encountered is, when you use alot of clickable images, you will need a common event for each and every one of them.
This new version adds the possibility to attach a value to a picture.
This will allow to regroup every clickable pictures in just one common event and act based on the variable value.

Features
Enables a picture to have a specific value based on a variable.

Screenshots
Spoiler: Video

Spoiler: Event
1.PNG
Spoiler: Common Event
2.PNG

How to Use
Use it in the following procedure.
1. Execute "Show Picture" to display your button image.
2. Call the plugin command "Set Button Picture".
3. Set Variable ID and value to assign to said Picture ID.
Note : variable value may be a number or a string, however you will need to use the script part in Branch Condition.
Spoiler: Example
JavaScript:
$gameVariables.value(ID) == "value"
3.PNG




Terms and Credits
All credits goes to the original creator of this plugin : Yoji Ojima
This was simply me having too much time.
This is a me problem, but I don't actually understand what the new options to set actually does for me. They don't seem to be doing anything to the regular game variables. You said it allows you to use fewer common events, but I genuinely don't understand how.
This is a me problem, but I don't actually understand what the new options to set actually does for me. They don't seem to be doing anything to the regular game variables. You said it allows you to use fewer common events, but I genuinely don't understand how.
My bad, I didn't set this topic into my watch list and did not get notification of the reply.

I remember putting a variable to the plugin command section, hence allowing you to apply an ID and value

So you can call for the plugin command, the command name is Set Button Picture
Then use it like this :

Picture number (the picture ID you want to make clickable)
Common Event (the common event ID you want to trigger when clicked)
Variable ID (the variable ID you want to assign to the picture)
Variable Value (the variable value you want to assigne to the picture)

This should enable to regroup picture events to a single common event, while having different values for eventing.
Just as a suggestion, you might consider replacing your screenshots with your editor set to English so people can more easily understand your examples.
Just as a suggestion, you might consider replacing your screenshots with your editor set to English so people can more easily understand your examples.
I replaced all my editors in English since, but the plugin is almost identical to the original one so I don't think replacing the screenshots is worth much.
does it work for RPG MV either?
does it work for RPG MV either?
I don't think it does, no.
Is it possible activate a switch or common switch?
Thanks for our great job.
Is it possible activate a switch or common switch?
Thanks for our great job.

The plugin does not allow for swtiches to be updated, but you can event this through the common event if needed.
Is there a way to customize the plugin to highlight images when hovering over them? This could increase the visual feedback.
Is there a way to customize the plugin to highlight images when hovering over them? This could increase the visual feedback.
I can think of a few ways to do that, the classic version would be to use a tint on the image when the mouse is hover the image object.
Though I'm pretty sure other plugins would do this more in depth, should you need it.
Hi guys! I'm new here.. I'm trying to use this plugin (ButtonPictures), but it's not working. When I click on the Button Pictures I create (they are 4), nothing appened. Can you tell me why? Here are my screen of the Event page and Common Event (this show only the first button, but there are others under the first).
Prova1.jpg
Prova2.jpg
Hi guys! I'm new here.. I'm trying to use this plugin (ButtonPictures), but it's not working. When I click on the Button Pictures I create (they are 4), nothing appened. Can you tell me why? Here are my screen of the Event page and Common Event (this show only the first button, but there are others under the first).View attachment 362781View attachment 362782
You are showing your images through an "Action button trigger" map event, which has no image attached to it and cannot be run over (priority : same as character)

If you meant to make these images appear without player interraction, you should use parrallel trigger, make sure to use auto switch at the end to prevent it from looping indefinitely.
You are showing your images through an "Action button trigger" map event, which has no image attached to it and cannot be run over (priority : same as character)

If you meant to make these images appear without player interraction, you should use parrallel trigger, make sure to use auto switch at the end to prevent it from looping indefinitely.
I use "Action Button" because it's an ATM, so when I interact with it, all buttons pictures appears. They really appears ingame, but when I click them, nothing happen. Here are my 4 picture buttons called VERSA, PRELEVA, SALDO, ESCI. But they don't works when I click them.
My experience with the plugin is that whenever you draw or change a picture you want to have be a button, the next thing has to be the plugin command.
My experience with the plugin is that whenever you draw or change a picture you want to have be a button, the next thing has to be the plugin command.
I'll take a look into that, because it doesn't sound right, although I really did not change alot of the original plugin.

I use "Action Button" because it's an ATM, so when I interact with it, all buttons pictures appears. They really appears ingame, but when I click them, nothing happen. Here are my 4 picture buttons called VERSA, PRELEVA, SALDO, ESCI. But they don't works when I click them.
I will give it a look and try and understand 🙂

Original thread: https://forums.rpgmakerweb.com/threads/button-picture-update.142058/