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.
本贴来自国际rpgmaker官方论坛作者:whitesphere处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/event-touch-radius.51395/