49 lines
1.7 KiB
JavaScript
49 lines
1.7 KiB
JavaScript
/*=============================================================================
|
||
TouchActionThere.js
|
||
----------------------------------------------------------------------------
|
||
(C)2021 Triacontane
|
||
This software is released under the MIT License.
|
||
http://opensource.org/licenses/mit-license.php
|
||
----------------------------------------------------------------------------
|
||
Version
|
||
1.0.0 2021/07/15 初版
|
||
----------------------------------------------------------------------------
|
||
[Blog] : https://triacontane.blogspot.jp/
|
||
[Twitter]: https://twitter.com/triacontane/
|
||
[GitHub] : https://github.com/triacontane/
|
||
=============================================================================*/
|
||
|
||
/*:
|
||
* @target MZ
|
||
* @plugindesc タッチ移動による決定トリガープラグイン
|
||
* @author トリアコンタン
|
||
*
|
||
* @help TouchActionThere.js
|
||
*
|
||
* タッチ移動時に前方のイベントの決定ボタントリガーを作動するよう
|
||
* 仕様変更します。
|
||
*
|
||
* このプラグインにはプラグインコマンドはありません。
|
||
*
|
||
* 利用規約:
|
||
* 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等)
|
||
* についても制限はありません。
|
||
* このプラグインはもうあなたのものです。
|
||
*/
|
||
|
||
(function () {
|
||
"use strict";
|
||
|
||
var _Game_Player_triggerTouchAction =
|
||
Game_Player.prototype.triggerTouchAction;
|
||
Game_Player.prototype.triggerTouchAction = function () {
|
||
var result = _Game_Player_triggerTouchAction.apply(this, arguments);
|
||
if ($gameTemp.isDestinationValid() && !result) {
|
||
this.checkEventTriggerThere([0, 1, 2]);
|
||
if ($gameMap.setupStartingEvent()) {
|
||
return true;
|
||
}
|
||
}
|
||
return result;
|
||
};
|
||
})();
|