じ☆ve冰风 发表于 2026-7-24 19:21:25

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
https://www.youtube.com/embed/zxxA7ru0aTk
Spoiler: Event

Spoiler: Common Event


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"






Download
Right click and save as
Download​

Terms and Credits
All credits goes to the original creator of this plugin : Yoji Ojima
This was simply me having too much time.


本贴来自国际rpgmaker官方论坛作者:Artille处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/button-picture-update.142058/
页: [1]
查看完整版本: Button Picture Update