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.
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