Event Touch Radius

whitesphere

Veteran
Veteran
Joined
Mar 14, 2014
Messages
1,688
Reaction score
785
First Language
English
EventTouchRadius 0.1.0

whitesphere

 

Introduction

This little plug-in can trigger any "Event Touch" action when the player gets within a specified

distance.  You can specify a EventTouchRadius per-event, per-map or set defaults for every event.

This is extremely helpful for visible enemy encounters on the map.

 

Features

- Configurable event radius, per event, per map or default

- Event radius compensates for the size of the event sprite (helpful for large events like Dragons)

 

How to Use

After installing and enabling the plug-in, add an <EventTouchRadius: (radius)> note-tag for each Event.  When the player gets within (radius) tiles, the event's "Event Touch" will trigger.  If the event is not currently responding to "Event Touch," this does nothing.

 

You may also add the same tag in the Map.  If so, every event in the map inherits the Event Touch radius, unless it already has one specified in its own note tag.

 

Finally, the plug-in parameter lets you set the radius for every event in your game.  Use this with care.

 

Any events which do NOT have an event touch radius after all of the above will function normally.

 

Script

 

The plug-in is available here:

 

 

http://pastebin.com/embed_js.php?i=Ty58ZkQU

 

 

FAQ

 

Q: Why isn't my event triggering when the player walks close by?

A: The plug-in only checks for the player when the event normally would --- when the event moves.

 

Terms of Use

This plug-in may be used for commercial or non-commercial use, as long as credit is given.

 

 
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,134
Reaction score
12,406
First Language
English
Primarily Uses
RMMV
Nice plugin. What are your terms of use (and could you please add them to your other plugin threads if you don't already have them listed)?
 

Unmercyful

Veteran
Veteran
Joined
Oct 25, 2015
Messages
123
Reaction score
30
First Language
English
This is truly an awesome plugin! Just wanted to pop in and say thank you very much for making this.

Just one question: Is it possible to to shut the plugin off on the maps it is not needed? Just having a little conflict with a couple other plugins and would work if there was a plugin command to turn it off. Thanks for your time.
 
Last edited by a moderator:

XoeXoeXoeXoeXoe

Villager
Member
Joined
Jul 25, 2016
Messages
7
Reaction score
2
First Language
English
Primarily Uses
Thanks for the script, I think I will be able to use this in a project I'm currently working on!


Or at least I'll give it a shot, thank you!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Stream will be live shortly! Going to do another art stream tonight so that I can finish my Fauna Focus piece~ Feel free to drop by!
Humans are fallible creatures, we all know that. It's when we're forced to look at ourselves that we start to disagree. :p
Expectation: Working on boss battle.
Reality: "Look at how awful are these code and database organization. Let me clean this mess", *yet, casually adding more modules that I have no idea if I would use it later*
Trying to learn to read Japanese so I read my manga. I like to buy them without all the edits made during translation.
The only thing getting me through today so far is coffee. And lots of it.

Forum statistics

Threads
97,852
Messages
947,384
Members
129,079
Latest member
DerLaPux
Top