52 lines
1.6 KiB
JavaScript
52 lines
1.6 KiB
JavaScript
//=============================================================================
|
|
// Shiga_Addkey.js
|
|
// ----------------------------------------------------------------------------
|
|
// Copyright (c) 2021 Shiganoko
|
|
// ----------------------------------------------------------------------------
|
|
// Version
|
|
// 1.0.0 2021/01/22 初版
|
|
// ----------------------------------------------------------------------------
|
|
// [Blog] : http://shihanoko.livedoor.blog/
|
|
// [Twitter]: https://twitter.com/shiga_child
|
|
// [Ci-en] : https://ci-en.dlsite.com/creator/2320
|
|
//=============================================================================
|
|
|
|
/*:
|
|
*
|
|
* このプラグインにはプラグインコマンドはありません。
|
|
*
|
|
*/
|
|
/*:ja
|
|
* @plugindesc 戦闘中キー追加プラグイン
|
|
* @author しがのこ
|
|
*
|
|
* このプラグインにはプラグインコマンドはありません。
|
|
*
|
|
*
|
|
*/
|
|
|
|
//=============================================================================
|
|
// Window_ActorCommand
|
|
//=============================================================================
|
|
|
|
(function () {
|
|
Input.keyMapper[18] = 'Alt';
|
|
Input.keyMapper[83] = 'Skey';
|
|
})();
|
|
|
|
Window_ActorCommand.prototype.processHandling = function() {
|
|
if ($gameParty.inBattle(true)) {
|
|
if (Input.isTriggered('Skey')){
|
|
$gameSwitches.setValue(7,true)
|
|
}
|
|
if (Input.isTriggered('Alt')){
|
|
$gameSwitches.setValue(8,true)
|
|
}
|
|
Window_Selectable.prototype.processHandling.call(this);
|
|
if (Input.isTriggered('Alt')){
|
|
null;
|
|
}
|
|
}
|
|
};
|
|
|
|
|