/*:ja * @target MZ MV * @url https://raw.githubusercontent.com/munokura/HIME-MV-plugins-jp/master/HIME_MoveRouteCommands.js * @title Move Route Commands * @author Hime --> HimeWorks (http://himeworks.com) * @version 1.0 * @date Jan 2, 2016 * @filename HIME_MoveRouteCommands.js * * @plugindesc v1.0 イベントの移動ルートにコマンドを追加します。 * @help * 翻訳:ムノクラ * https://fungamemake.com/ * https://twitter.com/munokura/ * * 元プラグイン: * http://himeworks.com/2016/01/move-route-commands/ * * == 説明 == * * このプラグインは、追加の移動ルートコマンドを提供します。 * 現在、以下をサポートしています。 * * * 特定のイベントに向かって移動する * * 特定のイベントから離れる * * 何か希望があれば、私にメッセージを送ってください。 * ライブラリに追加することを検討します。 * * == 使用法 == * * イベントの移動ルート内のスクリプトで使用します。 * * 以下は、このプラグインによって提供される全てのスクリプトです。 * * -- イベントに向けて移動 -- * * イベントを特定のイベントに向けて移動します * * スクリプト: this.moveTowardsEvent(ID); * 例: this.moveTowardsEvent(23); * * -- イベントから離れる -- * * イベントを指定したイベントから離れるよう移動します * * スクリプト: this.moveAwayFromEvent(ID); * 例: this.moveAwayFromEvent(5); * * * == 利用規約 == * * - クレジットを表示する非営利プロジェクトでの使用は無料 * - 商用プロジェクトでの使用は無料ですが、連絡してください * - クレジット表示をHimeWorksにしてください * * == Change Log == * * 1.0 - Jan 2, 2016 * - initial release */ /* * あなたが私の仕事を楽しんでいるなら、 * パトレオンで私への支援を検討してください! * * * https://www.patreon.com/himeworks * * ご質問や懸念がある場合、 * 次のサイトのいずれかで私に連絡できます。 * * * 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/ */ /*: @title Move Route Commands @author Hime --> HimeWorks (http://himeworks.com) @version 1.0 @date Jan 2, 2016 @filename HIME_MoveRouteCommands.js @url http://himeworks.com/2016/01/move-route-commands/ 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.0 - Allows you to have a character move towards a specific event @help == Description == This plugin provides some extra move route comands that might be useful. Currently, it supports the following: * moving towards a specific event * moving away from a specific event If there is anything you would like to see, just send me a message and I'll look into adding it to the library. == 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.0 - Jan 2, 2016 - initial release == Usage == All commands can be used in a move route with the script call command. Below are all of the script calls that are provided by this plugin. -- Move Towards Event -- Moves the character towards a specific event script: this.moveTowardsEvent(ID) example: this.moveTowardsEvent(23) -- Move Away From Event -- Moves the characters away from a specified event script: this.moveAwayFromEvent(ID) example: this.moveAwayFromEvent(5) */ var Imported = Imported || {}; var TH = TH || {}; Imported.TH_MoveRouteCommands = 1; TH.MoveRouteCommands = TH.MoveRouteCommands || {}; (function ($) { Game_Character.prototype.moveTowardsEvent = function (id) { this.moveTowardCharacter($gameMap.event(id)); }; Game_Character.prototype.moveAwayFromEvent = function (id) { this.moveAwayFromCharacter($gameMap.event(id)); }; })(TH.MoveRouteCommands);