/* * -------------------------------------------------- * MNKR_TowardPlayer.js * Ver.0.0.1 * Copyright (c) 2021 Munokura * This software is released under the MIT license. * http://opensource.org/licenses/mit-license.php * -------------------------------------------------- */ /*: @target MZ MV @url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_TowardPlayer.js @plugindesc Changed the event so that it doesn't return to its original direction after the player interacts with it. @author munokura @license MIT License @help This changes the event so that it does not return to its original direction after the player interacts with it. There are no plugin commands. # Terms of Use MIT License. http://opensource.org/licenses/mit-license.php You may modify and redistribute this without permission, and there are no restrictions on its use (commercial, R18, etc.). */ /*:ja @target MZ MV @url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_TowardPlayer.js @plugindesc プレイヤーがイベントに話しかけた後にイベントが元の方向に戻らないように変更します。 @author munokura @help プレイヤーがイベントに話しかけた後に イベントが元の方向に戻らないように変更します。 プラグインコマンドはありません。 # 利用規約 MITライセンスです。 http://opensource.org/licenses/mit-license.php 作者に無断で改変、再配布が可能で、 利用形態(商用、18禁利用等)についても制限はありません。 */ (() => { "use strict"; Game_Event.prototype.lock = function () { if (!this._locked) { this._prelockDirection = this.direction(); this.turnTowardPlayer(); } }; })();