设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2390|回复: 2
打印 上一主题 下一主题

[已经过期] 關於HIME的插件

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
8 小时
注册时间
2017-7-29
帖子
4
跳转到指定楼层
1
发表于 2017-8-22 22:40:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 867ken010 于 2017-8-24 22:46 编辑

https                                                                                        /*請加上   ://
www●youtube●com/watch?v=QgkuvfQVZ6U                                /*請將●改為 .
RPGMaker MV: Follower Event Commands
by HimeWorks
不知在哪可以載到這個件呢
個人找了下
發現需要贊助才能下載這個插件
不是是否有偉大的大大能分享下呢
以下為它的下載位置
https                                                                                        /*請加上   ://
www●patreon●com/posts/beta-test-event-5403439                        /*請將●改為 .

Lv4.逐梦者

梦石
0
星屑
16119
在线时间
3996 小时
注册时间
2015-9-14
帖子
1337

开拓者

2
发表于 2017-8-24 17:52:51 | 只看该作者
作者 姫HimeWorks 網址:http://himeworks.com/2016/01/follower-event-touch-mv/
  1. /*:
  2. -------------------------------------------------------------------------
  3. @title Follower Event Touch
  4. @author Hime --> HimeWorks (http://himeworks.com)
  5. @version 1.1
  6. @date May 13, 2016
  7. @filename HIME_FollowerEventTouch.js
  8. @url http://himeworks.com/2016/01/follower-event-touch-mv/

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

  10. * https://www.patreon.com/himeworks

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

  13. * Main Website: http://himeworks.com
  14. * Facebook: https://www.facebook.com/himeworkscom/
  15. * Twitter: https://twitter.com/HimeWorks
  16. * Youtube: https://www.youtube.com/c/HimeWorks
  17. * Tumblr: http://himeworks.tumblr.com/

  18. -------------------------------------------------------------------------------
  19. @plugindesc v1.1 - when an event touches a follower, the event will be
  20. triggered as if it touched the player.
  21. @help
  22. -------------------------------------------------------------------------------
  23. == Description ==

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

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

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

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

  33. == Terms of Use ==

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

  37. == Change Log ==

  38. 1.1 - May 13, 2016
  39. * Added support for checking which follower is touched
  40. 1.0 - Jan 1, 2016
  41. - initial release

  42. == Usage ==

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

  45.   <follower touch>

  46. Whenever the event touches a *visible* follower, the event will also run.

  47. -- Checking who is touched --

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

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

  51.   this.touchedFollower()
  52.   
  53. Which will either return a reference to a follower, or null.
  54. If a follower exists, you can then check the properties of the follower.

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

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

  58. -------------------------------------------------------------------------------
  59. */
  60. var Imported = Imported || {} ;
  61. var TH = TH || {};
  62. Imported.TH_FollowerEventTouch = 1;
  63. TH.FollowerEventTouch = TH.FollowerEventTouch || {};

  64. (function ($) {

  65.   var TH_GameEvent_checkEventTriggerTouch = Game_Event.prototype.checkEventTriggerTouch;
  66.   Game_Event.prototype.checkEventTriggerTouch = function(x, y) {
  67.     TH_GameEvent_checkEventTriggerTouch.call(this, x, y);   
  68.     this.checkFollowerEventTouch(x, y);   
  69.   };
  70.   
  71.   Game_Event.prototype.checkFollowerEventTouch = function(x, y) {
  72.     if (!$gameMap.isEventRunning()) {
  73.       if (this._trigger === 2 && this._followerTouch) {
  74.         var followers = $gamePlayer.followers().visibleFollowers();
  75.         for (var i = 0; i < followers.length; i++) {
  76.           if (followers[i].pos(x, y)) {
  77.             this.onFollowerTouch(followers[i]);
  78.           }
  79.         }
  80.       }
  81.     }
  82.   };
  83.   
  84.   Game_Event.prototype.onFollowerTouch = function(follower) {   
  85.     if (!this.isJumping() && this.isNormalPriority()) {
  86.       this.start();
  87.     }
  88.   };
  89.   
  90.   var TH_GameEvent_setupPageSettings = Game_Event.prototype.setupPageSettings;
  91.   Game_Event.prototype.setupPageSettings = function() {
  92.     TH_GameEvent_setupPageSettings.call(this);
  93.     var page = this.page();
  94.     var list = page.list;
  95.     for (var i = 0; i < list.length; i++) {
  96.       var cmd = list[i];
  97.       
  98.       if (cmd.code === 108 && cmd.parameters[0].contains("<follower touch>")) {
  99.         this._followerTouch = true;
  100.         break;
  101.       }
  102.     }
  103.   };
  104.   
  105.   var TH_GameEvent_clearPageSettings = Game_Event.prototype.clearPageSettings;
  106.   Game_Event.prototype.clearPageSettings = function() {
  107.     TH_GameEvent_clearPageSettings.call(this);
  108.     this._followerTouch = false;
  109.   };
  110.    
  111.   var TH_GameEvent_onFollowerTouch = Game_Event.prototype.onFollowerTouch;
  112.   Game_Event.prototype.onFollowerTouch = function(follower) {   
  113.     TH_GameEvent_onFollowerTouch.call(this, follower);
  114.     this._touchedFollower = follower;
  115.   };
  116.   
  117.   Game_Event.prototype.touchedFollower = function() {
  118.     return this._touchedFollower;
  119.   };
  120.   
  121.   Game_Event.prototype.clearTouchedFollower = function() {
  122.     this._touchedFollower = null;
  123.   };  
  124.   
  125.   var TH_GameInterpreter_setup = Game_Interpreter.prototype.setup;
  126.   Game_Interpreter.prototype.setup = function(list, eventId) {
  127.     TH_GameInterpreter_setup.call(this, list, eventId);
  128.     var event = $gameMap.event(eventId);
  129.     if (event) {
  130.       this._touchedFollower = event.touchedFollower();
  131.       event.clearTouchedFollower()
  132.     }
  133.   };
  134.   
  135.   Game_Interpreter.prototype.touchedFollower = function() {
  136.     return this._touchedFollower;
  137.   };
  138. })(TH.FollowerEventTouch);
复制代码
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
8 小时
注册时间
2017-7-29
帖子
4
3
 楼主| 发表于 2017-8-24 22:40:55 | 只看该作者
wabcmcc 发表于 2017-8-24 17:52
作者 姫HimeWorks 網址:http://himeworks.com/2016/01/follower-event-touch-mv/

謝謝你的回覆
不過這個我已經有了
我在找HIME的其他插件
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-12-31 06:51

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表