An open library of RPG Maker MV plugins, powered by the community.

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

HIME Follower Event Touch - HIME_FollowerEventTouch.js

Plugin desc : v1.1 - when an event touches a follower, the event will be

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Hime

Website : https://himeworks.com/

Desc page : https://himeworks.com/2016/01/follower-event-touch-mv/

Download Page : https://raw.githubusercontent.com/munokura/HIME-MV-plugins-jp/master/HIME_FollowerEventTouch.js

File name : HIME_FollowerEventTouch.js

Help of plugin :

@title Follower Event Touch
@author Hime --> HimeWorks (http://himeworks.com)
@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/

@plugindesc v1.1 - when an event touches a follower, the event will be
triggered as if it touched the player.
@help 
== 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 a *visible* follower, 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

スポンサードリンク

-MV plugins

Copyright© PGMV - The Community-Driven Plugin Library for RPG Maker MV , 2026 All Rights Reserved.