MZ Show animation when buying in Shop

Hello! I need help modifying the Shop a bit. By default, RPG Maker MZ allows a sound to play when purchasing an item. What I want is that, along with that sound, an animation or an image is displayed on the x and y coordinate when buying an item in the shop.


To clarify, what I want to achieve is simply that when purchasing, a speech bubble saying "Thank you" appears, along with an emotion animation for the shopkeeper. Displaying the animation once is enough. Another option could be showing a static image for a few seconds before it disappears, but the first option is ideal.


I'll make the shopkeeper appear in the background using any plugin that allows changing the shop scene background.


I searched but couldn't find any plugin that allows this specific modification... Could you help me, please? Thanks in advance!!


I'm attaching a reference image of what I want to achieve.
Don't know if it's a 100% match, but did you check VisuStella Shop Bust Style UI?
You can change the shopkeeper bust when buying, so I guess you could put the speech bubble in the shopkeeper pic.
Don't know if it's a 100% match, but did you check VisuStella Shop Bust Style UI?
You can change the shopkeeper bust when buying, so I guess you could put the speech bubble in the shopkeeper pic.
I reviewed the plugin, and I think it can achieve what I'm looking for... The problem is that I want to avoid using VisuStella plugins because they are obfuscated and hard to modify. If I need something in the future, I will likely have difficulties making additional changes to the shop.


Ideally, I’d prefer an alternative to that. Thanks a lot for your response and help anyway! =)
What shop plugin are you using to make the menu like in in your pictures?
Maybe I can help you show animations in the backgorund map. But in order to interact with the map, the game needs to know when you click the buy/sell button.
Maybe you can try editing this plugin if you know how, it functions to display dialogue and picture in the shop scene.


The plugin term is free for commercial and you can edit it.
What shop plugin are you using to make the menu like in in your pictures?
Maybe I can help you show animations in the backgorund map. But in order to interact with the map, the game needs to know when you click the buy/sell button.
Thanks for responding! The image is just for reference (it's from a game, Wonder Boy: The Dragon's Trap, hahaha), it was just to make it clearer.


I'm using the default shop from RPG Maker.


The idea is that when buying any item, weapon, accessory, etc. from the shop, along with the default selling sound, an animation (or an image) appears in a specific part of the screen (e.g., coordinates X: 600, Y: 500).


Do you have any ideas on how to achieve this?


I'll attach an image of the standard shop.

Maybe you can try editing this plugin if you know how, it functions to display dialogue and picture in the shop scene.


The plugin term is free for commercial and you can edit it.
Oooh! I don’t have much knowledge of JavaScript… and I don’t know Japanese either, but I’ll see if I can do something with a translator. Thank you very much! =)
@cozathemaster Forget it. There's an official plugin in the dlc folder that display images in the menu (ExtraImage.js), but you have to edit it to let it react to shopping actions.
EF2L's link seems to do more than what you want.
It already has a welcome message for buy and sell screen, and a thank you message when you are done, for each shopkeeper.
you can set a variable before = gold current
and check gold if lower (from buy only) and if its different, show animation
after leaving.

if you want it show during buying inside the shop scene, than yes,
it require a plugin (same for selling).
Maybe you can try editing this plugin if you know how, it functions to display dialogue and picture in the shop scene.


The plugin term is free for commercial and you can edit it.
I checked it carefully, and the plugin does everything I need and more!! Thank you so much!!
Also, in case anyone finds it useful, it's compatible with VisuStella's base shop plugin.

A thousand thanks!

@cozathemaster Forget it. There's an official plugin in the dlc folder that display images in the menu (ExtraImage.js), but you have to edit it to let it react to shopping actions.
EF2L's link seems to do more than what you want.
It already has a welcome message for buy and sell screen, and a thank you message when you are done, for each shopkeeper.
Indeed, the recommended plugin does everything I need and more. Unfortunately, it wasn't compatible with other plugins I use in my project (I´m using a lot hahaha).

In the end, I followed your suggestion and edited extraimage.js to add the functionality of displaying an image when purchasing, since that was all I needed, and it worked perfectly.


A thousand thanks for your help and suggestion!
you can set a variable before = gold current
and check gold if lower (from buy only) and if its different, show animation
after leaving.

if you want it show during buying inside the shop scene, than yes,
it require a plugin (same for selling).
Thanks for your response. Indeed, I needed it to happen inside the shop, so a plugin was necessary, but I managed to solve it by following the recommendations. =)


The issue is resolved, so you can close this conversation =) 😀
This thread is closed due to being indicated as solved. Report the next one so it’s easy to find! If you need this thread reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/show-animation-when-buying-in-shop.175735/