[MZ] Event Interaction Hint

ezgif-3-c8472108f2.gif

Plugin name: SDE_InteractPop.js

Author: Dustb0

Version: 1.0 for MZ

Release date:
1.0.0 - 07.07.23
1.2.0 - 06.12.23

Plugin description & usage:
Similar to how other games indicate that the player can interact with something, this plugin shows an "interact" balloon tip whenever the player is in reach of an event that they can interact with.

This is also achievable by purely using Event Commands, but this Plugin makes it much easier! Just add <interact> to an event's note field:
Untitled-2.png


Only want the balloon to show when specific event pages are active? Just add a "\interact" comment on top of the desired event page:
Untitled-1.png


You can choose the Balloon ID the plugin should display in the parameter section. Typically you'll use this with "Action Button"-Trigger events.

You can also overwrite the default Balloon ID by supplying a different ID in the note tag like this:
"\interact[balloon=12]"

You can even specify that the balloon only shows from specific directions (e.g. if the player is standing below the event and looking up towards it)
"\interact[dir=8, balloon=12]"

(8 = up, 6 = right, 2 = down, 4 = left)

◆ Terms of Use
This plugin is released under MIT license.
You can download it by free, make a copy, modify and redistribute it as you want. But you have to credit me as "Dustb0" within your game 🙂

> Download it on itch.io
◆ Update 1.1 for MZ
You can now overwrite the default Balloon ID set in the plugin parameters in the event code:

plg.png


Instead of just writing <interact>, you can now write <interact:balloonID> to overwrite the default setting.
Thank you, this seems perfect for all kinds of interactive events
Dang, this will be really helpful in the future. Thanks!
◆ Update 1.2 for MV & MZ

With this update you can now also show the interact balloons only when specific event pages are active! Just add a "\interact" comment on top of the desired event page:
Untitled-1.png


Typically you want to do this with switches that aren't always active or maybe when you deactivate an event after a player has initially interacted with it (like picking up an item or similar).

Similar to the "global" interact-tag in the note section, you can overwrite the default balloon: "\interact[balloon=12]"
You can even specify that the balloon only shows from specific directions (e.g. if the player is standing below the event and looking up towards it)
"\interact[dir=8, balloon=12]"

(8 = up, 6 = right, 2 = down, 4 = left)

The plugin is now for both RPG Maker MV & MZ - one plugin file for both versions!
as much as I wanna use this... it doesn't work for MV, even though it's supposed to :/
@buttermequeasy334 Can you describe the scenario that doesn't work? I couldn't find any issues with MV.
@buttermequeasy334 Can you describe the scenario that doesn't work? I couldn't find any issues with MV.
FIXED: I fixed whatever the issue was by changing the balloonID to 1. I also added some extensions to the script:

1. Gave it a bigger radius to listen for events nearby.
2. Made it so that when an event switches pages or effectively ends, the notification stops (I think you have a version of this already built-in).
3. In my version the direction check (if (direction && Number(direction[1]) !== $gamePlayer.direction()) { return; }) has been removed. This means the player doesn’t need to be facing the event for the popup to appear.

If you’d like me to send my version let me know!
there is also a small conflict in the way the event is setup.
Mainly what I notice is that you kinda override the core function
which breaks with other plugins doing that, so making the alias
for this also fix it to play nice with other plugins using "startMapEvent"
function, so it is also a bit shorter for personal use for and testing.

I might use it as it works nicely further more.
@ShadowDragon that's a very good point! I'll refactor it, once I have the time 🙂
Very cool of you to release this (and for MV too). I thought it was handy in Numina and was considering adding something similar to my own game.

Edit: It seems to work fine. Only suggestion for improvement is if the player is holding the movement key towards the event, the balloon gets stuck on frame 1. It would be better if it played the entire balloon animation even with the player holding down the input.
it's not working for me (I'm on MZ) no interact hint shows up even though I put <interact> in the comments.
It looks amazing but unfortunately it is not working on MZ.

I am using Beta MZ 1.7.0
FIXED: I fixed whatever the issue was by changing the balloonID to 1. I also added some extensions to the script:

1. Gave it a bigger radius to listen for events nearby.
2. Made it so that when an event switches pages or effectively ends, the notification stops (I think you have a version of this already built-in).
3. In my version the direction check (if (direction && Number(direction[1]) !== $gamePlayer.direction()) { return; }) has been removed. This means the player doesn’t need to be facing the event for the popup to appear.

If you’d like me to send my version let me know!
It works fine in MV for me, I want to ask how can you give it a bigger radius? That and is there any way to keep the balloon icon there without disappearing?
I tried using "Event Interaction Hint" and I'm unable to get anything to render on the events that have it. What is generating that "i" graphic? I tried both the event note and as a comment. No luck. Does this only work in MZ and not MV? Thanks for any info to get this up and running.
I tried using "Event Interaction Hint" and I'm unable to get anything to render on the events that have it. What is generating that "i" graphic? I tried both the event note and as a comment. No luck. Does this only work in MZ and not MV? Thanks for any info to get this up and running.
Download the plugin for MV. Activate it. On a map, put an event that has (Comment: /interact) in its scripting. RPG Maker comes with “balloon” icons, and this just sources them to put one above an event. Let me know how further I can try and help you. 🙂
tried using "Event Interaction Hint" and I'm unable to get anything to render on the events that have it. What is generating that "i" graphic? I tried both the event note and as a comment. No luck. Does this only work in MZ and not MV? Thanks for any info to get this up and running.
it works in both just fine, you need to check the plugin where it is placed.
if you read my previous comment.

any plugin using "startMapEvent" function or overwrite WILL conflict with this plugin.
so if a plugin is above and some other below overwriting it, it does nothing.

you can only alias or try to combine the 2 together.
standalone in project works without problem in MV.
Download the plugin for MV. Activate it. On a map, put an event that has (Comment: /interact) in its scripting. RPG Maker comes with “balloon” icons, and this just sources them to put one above an event. Let me know how further I can try and help you. 🙂
Yes, I tried that and nothing happened, which is why I posted here.

it works in both just fine, you need to check the plugin where it is placed.
if you read my previous comment.

any plugin using "startMapEvent" function or overwrite WILL conflict with this plugin.
so if a plugin is above and some other below overwriting it, it does nothing.

you can only alias or try to combine the 2 together.
standalone in project works without problem in MV.
If this is the issue, how do I fix it?
If this is the issue, how do I fix it?
show the plugins you use for starters or check the plugin for the function.
as I don't know what problem you have.

I kind of aliased for the time being because I use another using hardcoded function.
but I could also intergrate both of them inside 1 function to run correctly.
Here is my long list of plugins that I'm using. I've built some fairly complex systems already so I understand if this plugin is not compatible. But if you see a way I can move it so that it works then I'll try it. Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/mz-event-interaction-hint.159062/