Skip to content

Instantly share code, notes, and snippets.

View triacontane's full-sized avatar

トリアコンタン triacontane

View GitHub Profile
@triacontane
triacontane / AddTimer.js
Created July 13, 2021 12:48
タイマーの秒数を加減
$gameTimer._frames += 1 * 60;
@triacontane
triacontane / WeaponBreak.js
Created July 8, 2021 15:55
装備武器ロスト
$gameActors.actor(1).forceChangeEquip(0, null);
@triacontane
triacontane / followerBalloon.js
Created June 29, 2021 15:30
フォロワーにバルーン表示(完了までウェイト付き)
var follower = $gamePlayer.followers().follower(0);
if (follower) {
this._character = follower;
this._character.requestBalloon(1);
this.setWaitMode('balloon');
}
@triacontane
triacontane / FindPluginName.js
Created June 21, 2021 17:00
プラグインパス取得
const name = document.currentScript.src.replace(/^.*\/plugins\/(.*).js$/,
(s, a1)=> decodeURIComponent(a1));
@triacontane
triacontane / PrefabEraseAll.js
Created June 14, 2021 15:37
全ての動的イベントを消去
$gameMap.events()
.filter(e => e.isPrefab())
.forEach(e => $gameMap.eraseEvent(e.eventId()));
@triacontane
triacontane / NoHpGauge.js
Created June 12, 2021 02:56
HPゲージを非表示HPゲージを非表示
/*:
* @plugindesc HPゲージを消す
* @target MZ
*/
(()=> {
'use strict';
Window_StatusBase.prototype.placeBasicGauges = function(actor, x, y) {
//this.placeGauge(actor, "hp", x, y);
this.placeGauge(actor, "mp", x, y + this.gaugeLineHeight());
@triacontane
triacontane / BalloonScript.js
Created June 3, 2021 15:28
移動ルート指定からのフキダシ表示スクリプト
$gameTemp.requestBalloon(this, 2);
@triacontane
triacontane / InvalidDashButton.js
Created May 30, 2021 18:02
ダッシュボタンによるダッシュを無効化
(function() {
'use strict';
Game_Player.prototype.isDashButtonPressed = function() {
return ConfigManager.alwaysDash;
};
})();
@triacontane
triacontane / VictoryMessage.js
Created May 30, 2021 17:47
戦闘勝利時にメッセージ表示を追加
/*:
* @plugindesc サンプルコード
* @target MZ
*/
(()=> {
'use strict';
const _BattleManager_displayVictoryMessage = BattleManager.displayVictoryMessage;
BattleManager.displayVictoryMessage = function() {
_BattleManager_displayVictoryMessage.apply(this, arguments);
@triacontane
triacontane / ActorParam.js
Created May 29, 2021 01:11
指定したIDのアクターのパラメータを変数に格納
$gameActors.actor(1).paramBase(3) + $gameActors.actor(1)._paramPlus[3]