あるイベントがフォロワーに触れると、そのイベントはあたかもプレーヤーに触れたかのようにトリガーされます – HIME_FollowerEventTouch.js

タイトル
- when an event touches a follower, the event will be triggered as if it touched the player.
作者名
ヘルプ
-------------------------------------------------------------------------------
== Description ==

In RPG Maker, the "event touch" trigger allows you to create events that will
execute when they touch the player.

"Touch" means when they try to move in a certain direction, but are unable to
move because there is something blocking the way. In this case, the only
object they check for is the player.

If one of the player's followers is in the way, they will not be able to move,
but they won't run their commands either.

With this plugin, you can have events triggered when they touch either the
player or the player's followers.

== Terms of Use ==

- Free for use in non-commercial projects with credits
- Free for use in commercial projects, but it would be nice to let me know
- Please provide credits to HimeWorks

== Change Log ==

1.1 - May 13, 2016
Added support for checking which follower is touched
1.0 - Jan 1, 2016
- initial release

== Usage ==

To have an event triggered when they touch a follower, set their trigger type
to "event touch", and then create a comment and write

<follower touch>

Whenever the event touches avisiblefollower, the event will also run.

-- Checking who is touched --

When an event is triggered, you may be able to access properties of the
touched follower, assuming a follower was touched.

In your events, you can access the currently touched follower using

this.touchedFollower()

Which will either return a reference to a follower, or null.
If a follower exists, you can then check the properties of the follower.

For example, to check if the follower is facing down if one exists, you
can use this script in a conditional branch:

var f = this.touchedFollower(); f && f.direction() == 2

-------------------------------------------------------------------------------
パラメータ
title Follower Event Touch
version 1.1
date May 13, 2016
filename HIME_FollowerEventTouch.js
url http://himeworks.com/2016/01/follower-event-touch-mv/

If you enjoy my work, consider supporting me on Patreon!

https://www.patreon.com/himeworks

If you have any questions or concerns, you can contact me at any of
the following sites:

Main Website: http://himeworks.com
Facebook: https://www.facebook.com/himeworkscom/
Twitter: https://twitter.com/HimeWorks
Youtube: https://www.youtube.com/c/HimeWorks
Tumblr: http://himeworks.tumblr.com/

-------------------------------------------------------------------------------
ライセンス表記
- Free for use in non-commercial projects with credits
- Free for use in commercial projects, but it would be nice to let me know

紹介ページ http://himeworks.com/2016/01/follower-event-touch-mv/