Auto Generate Trigger Distance | Improving UX, plug and play

Auto Generate Trigger Distance
v.1.0.0 by Sang Hendrix: Ideas, debug, the brain. ChatGPT: Code, debug

Description

If you play AAA games like Skyrim, you'll notice that you only need to be close to an event to interact with it. In RPG Maker, you can only interact with an event by standing right next to it.


FEATURES
  1. Allows setting the trigger range for events based on the grid before the game starts. Entering 1 will increase the range by 1 grid.
  2. If there are too many events close together, the plugin will automatically create additional conditional statements and prioritize triggering events that are closest to the player.
  3. Optimizes performance: The plugin will only create trigger areas for events that are within range of the position that the player is standing, avoiding checking all events on the map at the same time. This helps improve the FPS, especially on mobile devices.
  4. Can be combined with the Galz_ActionIndicators plugin to display an icon on events that can be triggered, helping players identify which events are within range. (https://galvs-scripts.com/2021/01/02/mz-action-indicators/)
  5. Blink effect when events within range can be triggered. This is also useful if you don't want to use Galv_ActionIndicators.
  6. Allows disabling trigger ranges by adding the note tag <gachongne> to events.
  7. Events that do not have content on the current page will also be automatically excluded from the plugin to optimize performance. When you activate a switch or something that switches said events to a page with content, the plugin will create a trigger area for that event.
  8. Plug and play, the plugin is completely automatic as I created it to optimize UX (user experience) so you won't have to do anything. For players, they won't have to suffer from the strict rule which requires them to face to face an event to interact with it.
Nice job thank you! Was there a certain pixel moment plugin you used in the video with it?
thanks again!
Nice job thank you! Was there a certain pixel moment plugin you used in the video with it?
thanks again!
I did use SAN_AnalogMove and SAN_AnalogStick because my game had a real-time combat system I made using events, but this plugin can work without SAN. 🙂
I did use SAN_AnalogMove and SAN_AnalogStick because my game had a real-time combat system I made using events, but this plugin can work without SAN. 🙂

Sounds good! I'll try it out. Thank you!
Another fantastic plugin from you, thank you! 🙂
Hi!
Thanks for the nice plugin.
I have a question:
Don't you have any possibility to add one or two features to this plugin (well, or redesign it a bit)?

Thanks to your advice, I'm using GALV_ActionIndicatorsMZ.js in conjunction with your plugin, but the thing is that I mainly don't need a distance event activation, but a popup icon above the event when approaching a certain distance.

With <gachongne> you can save the effect of the popup icon over the event and disable the automatic triggering of the event, but for me there are 2 small nasty problems.

1
I have many, many events in my game, and if I want to use your plugin, I need to put <gachongne> in 90%-95% of all my events.

2
Some plugins also require some tags to be entered in the note line for their functionality.

Question:
Could you please add a feature to the plugin settings
<gachongne> on and off for all events?
(Or better yet, but probably more complicated, to have the trigger event automatically trigger only in events where a command is entered in the note).

Thanks again for your work.
Hi!
Thanks for the nice plugin.
I have a question:
Don't you have any possibility to add one or two features to this plugin (well, or redesign it a bit)?

Thanks to your advice, I'm using GALV_ActionIndicatorsMZ.js in conjunction with your plugin, but the thing is that I mainly don't need a distance event activation, but a popup icon above the event when approaching a certain distance.

With <gachongne> you can save the effect of the popup icon over the event and disable the automatic triggering of the event, but for me there are 2 small nasty problems.

1
I have many, many events in my game, and if I want to use your plugin, I need to put <gachongne> in 90%-95% of all my events.

2
Some plugins also require some tags to be entered in the note line for their functionality.

Question:
Could you please add a feature to the plugin settings
<gachongne> on and off for all events?
(Or better yet, but probably more complicated, to have the trigger event automatically trigger only in events where a command is entered in the note).

Thanks again for your work.
Hi! So you want a plugin command that if enabled, it'll create trigger distance for all events and if it's disabled, it'll turn off the whole plugin, correct?
Well, to be honest, I'm not sure.
Looks like I'm a little confused about your plugin.
I thought <gachongne> would disable the automatic triggering of events when approaching.
I thought that somehow the plugin continues to read when the Galvo widget is triggered by events, but it doesn't seem to work that way.
(a little confused about events)

Example:
1
I create an event, add a comment to it from the Galva plugin, <actionIcon: 200.10|-10> is allowed
2
Then, with the help of your plugin, the sprite now appears above the event a few hexes before it.

3
I need the events to work according to the classical scheme and not be activated when approaching, but the icon above it will be activated.

It's probably correct to say that I need a series of triggers to fire icons on an event, but I don't need an automatic trigger for that event.
Example: a character is searching the area and in an area of 3-4 hexes he will notice various things or details, but in order to interact with them, he must activate the event by clicking or colliding.

In any case, thanks for the answer, but I think it will be quite difficult to implement.
I guess I need to keep looking.
Well, to be honest, I'm not sure.
Looks like I'm a little confused about your plugin.
I thought <gachongne> would disable the automatic triggering of events when approaching.
I thought that somehow the plugin continues to read when the Galvo widget is triggered by events, but it doesn't seem to work that way.
(a little confused about events)

Example:
1
I create an event, add a comment to it from the Galva plugin, <actionIcon: 200.10|-10> is allowed
2
Then, with the help of your plugin, the sprite now appears above the event a few hexes before it.

3
I need the events to work according to the classical scheme and not be activated when approaching, but the icon above it will be activated.

It's probably correct to say that I need a series of triggers to fire icons on an event, but I don't need an automatic trigger for that event.
Example: a character is searching the area and in an area of 3-4 hexes he will notice various things or details, but in order to interact with them, he must activate the event by clicking or colliding.

In any case, thanks for the answer, but I think it will be quite difficult to implement.
I guess I need to keep looking.
Not gonna lie, I'm confused. I think what you're looking for is something that you can manually control, while this plugin was all about "you don't need to do much, just plug the plugin in and done". I'm sorry I can't help you and I hope you'll find a suitable plugin for your project.
Haha)
All OK.
In any case, thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/auto-generate-trigger-distance-improving-ux-plug-and-play.156454/