Skip to content

Instantly share code, notes, and snippets.

View triacontane's full-sized avatar

トリアコンタン triacontane

View GitHub Profile
@triacontane
triacontane / EnemyPosition.js
Created May 29, 2021 00:31
敵キャラの表示座標
var troopId = 1;
var enemyIndex = 0;
$dataTroops[troopId].members[enemyIndex].x;
$dataTroops[troopId].members[enemyIndex].y;
@triacontane
triacontane / MenuCommandHeight.js
Created May 19, 2021 16:09
メニューコマンドの高さ変更
(function() {
'use strict';
Window_MenuCommand.prototype.lineHeight = function() {
return 64;
};
})();
@triacontane
triacontane / OutlineColorMz.js
Created May 10, 2021 11:26
MZでアウトラインカラーを変更
/*:
* @plugindesc サンプルコード
* @target MZ
*/
(()=> {
'use strict';
const _Window_Base_createContents = Window_Base.prototype.createContents;
Window_Base.prototype.createContents = function() {
_Window_Base_createContents.apply(this, arguments);
this.contents.outlineWidth = 20;
@triacontane
triacontane / OutOfWindowLayer.js
Created May 4, 2021 04:38
ウィンドウレイヤーからウィンドウを外すことでマスキングを無効化
/*:
* @plugindesc サンプルコード
* @target MZ
*/
(()=> {
const _Scene_Message_createNameBoxWindow = Scene_Message.prototype.createNameBoxWindow;
Scene_Message.prototype.createNameBoxWindow = function() {
_Scene_Message_createNameBoxWindow.apply(this, arguments);
this.addChild(this._nameBoxWindow);
};
@triacontane
triacontane / StatusWindowResize.js
Created April 30, 2021 15:52
ステータス画面のウィンドウの高さを調整
(()=> {
'use strict';
Scene_Status.prototype.statusParamsHeight = function() {
return 300;
}
})();
@triacontane
triacontane / GaugeWidth.js
Created April 30, 2021 04:28
ゲージの長さ変更
(()=> {
'use strict';
Sprite_Gauge.prototype.bitmapWidth = function() {
return 200;
};
})();
@triacontane
triacontane / PartySome.js
Created April 28, 2021 17:00
パーティーの誰かが武器やスキルを持っているか
// パーティーの誰かがID[5]の防具を装備しているか
$gameParty.members().some(actor => actor.hasArmor($dataArmors[5]));
// パーティーの誰かがID[6]の武器を装備しているか
$gameParty.members().some(actor => actor.hasWeapon($dataWeapons[6]));
// パーティーの誰かがID[7]のスキルを習得しているか
$gameParty.members().some(actor => actor.hasSkill(7));
@triacontane
triacontane / RemakeOnRestrict.js
Created April 24, 2021 08:43
行動制約ステート時に行動を作り直し
(function() {
'use strict';
var _Game_Battler_onRestrict = Game_Battler.prototype.onRestrict;
Game_Battler.prototype.onRestrict = function() {
_Game_Battler_onRestrict.apply(this, arguments);
this.makeActions();
};
})();
@triacontane
triacontane / isExistPlugin
Last active April 20, 2021 08:46
プラグイン存在判定
!!PluginManager._parameters['dtextpicture'];
@triacontane
triacontane / AddKeyA.js
Created April 12, 2021 13:53
キーボードのAを追加
(function() {
'use strict';
Input.keyMapper[65] = 'A';
})();